Skip to main content

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.9.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file htlib-0.9.tar.gz.

File metadata

  • Download URL: htlib-0.9.tar.gz
  • Upload date:
  • Size: 2.2 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

Hashes for htlib-0.9.tar.gz
Algorithm Hash digest
SHA256 91d055f5739f1a608a7d7e7d46255f68ac7dc3403595b01e12c99b19f668e5a2
MD5 c3e5c121bcb50f3b3a074c8d81b2b1db
BLAKE2b-256 d7c9e89ed1a4eff51d99e2b6d88c683cdd4df2568c22b6ced5595889c98e65cf

See more details on using hashes here.

Supported by

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