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

Uploaded Source

File details

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

File metadata

  • Download URL: htlib-0.7.tar.gz
  • Upload date:
  • Size: 2.1 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.7.tar.gz
Algorithm Hash digest
SHA256 6882d7fc2e0f8c9d9bdce7ed85151c8eb7b4a1ba4cb9d1917280f2eaae70684a
MD5 3b71c1cdb5a1d57bb978871c168db4df
BLAKE2b-256 1d6e3fed5c3f2f8f55abb986c92ef110b4603b8a97ef055ae5c71046fac72a16

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