No project description provided
Project description
HTSERIAL
def action_read(value):#function to print value that receive from serial port
print(value)
s = BSerial(port='COM1',baudrate=9600)
s.start_read_string_port(action_read)#start to read serial port
while True:
valor = input("Ingrese un valor - x para terminar")
if valor == "x":break
s.write_string_port(valor)
sleep(1)#only for sthetic, if you wish try like comment
s.stop_read_string_port()
s.close()
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
htlib-0.11.tar.gz
(3.8 kB
view details)
File details
Details for the file htlib-0.11.tar.gz.
File metadata
- Download URL: htlib-0.11.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6643cbb8d273fccdd7a888c065b1fa7d1215cd9c24a99c433f2a60e6481bedc0
|
|
| MD5 |
e8783394df3894c86ac07b3756d3cc0e
|
|
| BLAKE2b-256 |
81780739129142f0dc2f9329465532de80cdae5fb836d5ec77f97dd9f0d80305
|