Skip to main content

A tool with easy prebuilt function to communicate through PySerial

Project description

SimpleSerial is a small package that can help anyone who needs quick and simple functions for communication with micro controllers. You can do things like read incoming data constantly, check the incoming data, as well as send through multiple very simple functions.

Some simple functions included with the package:

SimpleSerialMain.readDataOnce(data, rate=9600, debug=0) This returns the data of the broadcasted information of the microcontroller once.

You can change the data argument to a string that contains what you want to check the broadcasted information of the microcontroller to. If you have data equal to "Hello, World" in the function and the microcontroller is broadcasting "Hello, World"; The function will return True. Otherwise it will return False. (Optional)

Rate can be changed to your baudrate of the microcontroller (Normally 9600).

Debug can be set to 1 to have coloured progress checks (Optional).

SimpleSerialMain.writeDataOnce(data, rate=9600, debug=0) This writes the variable "data" to the microcontroller.

Rate can be changed to your baudrate of the microcontroller (Normally 9600).

Debug can be set to 1 to have coloured progress checks (Optional).

SimpleSerialMain.readDataForMultipleItemsOnce(data, rate=9600, debug=0) This will check data of the broadcasted information of the microcontroller once for multiple items (data).

You can change the data argument to a list that contains what you want to check the broadcasted information of the microcontroller to. If you have data contain "Hello, World" in the function and the microcontroller is broadcasting "Hello, World"; The function will return True. Otherwise it will keep checking for another item in the list.

Rate can be changed to your baudrate of the microcontroller (Normally 9600).

Debug can be set to 1 to have coloured progress checks (Optional).

SimpleSerialMain.readDataForMultipleItemsConstantly(data, rate=9600, debug=0) This will check data of the broadcasted information of the microcontroller until it finds a wanted item (data).

You can change the data argument to a list that contains what you want to check the broadcasted information of the microcontroller to. If you have data contain "Hello, World" in the function and the microcontroller is broadcasting "Hello, World"; The function will return True. Otherwise it will return False unless it references another item in the list.

Rate can be changed to your baudrate of the microcontroller (Normally 9600).

Debug can be set to 1 to have coloured progress checks (Optional).

SimpleSerialMain.readDataForOneItemConstantly(data, rate=9600, debug=0) This will check data of the broadcasted information of the microcontroller until it finds an item (data).

You can change the data argument to a string that contains what you want to check the broadcasted information of the microcontroller to. If you have data equal to "Hello, World" in the function and the microcontroller is broadcasting "Hello, World"; The function will return True. Otherwise it will keep checking. (Optional)

Rate can be changed to your baudrate of the microcontroller (Normally 9600).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SimpleSerial-0.1.4.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

SimpleSerial-0.1.4-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file SimpleSerial-0.1.4.tar.gz.

File metadata

  • Download URL: SimpleSerial-0.1.4.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for SimpleSerial-0.1.4.tar.gz
Algorithm Hash digest
SHA256 0e04bbd7e2a6c564f2ee36e1c4301da6b8fc3d160a1f89c524fbaad1512a3f3c
MD5 fa8b06355fa946162139ebdf8551d9de
BLAKE2b-256 caed96eff83f1e636add602868823a0f6a9600d8497c115b663dbe41bd018b8b

See more details on using hashes here.

File details

Details for the file SimpleSerial-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for SimpleSerial-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 24138310503d9fcb2eb61d7044057235517d30a501b5e51aaffcbffb9b80883e
MD5 118435fa98b78f22ff6641abb26d58f6
BLAKE2b-256 7735e5ff3542d76442f2953493cbcb5e9e6986da71014f435c8696eac3b05181

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page