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

Uploaded Source

File details

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

File metadata

  • Download URL: htlib-0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 22a4c2d9f29840c9dc5b1811f1dd90f997bd9794f1104b3f16697e995ce62554
MD5 1140c6e66b2529b6c31fbde1b2362e93
BLAKE2b-256 663d4a5eab888804d87833858c74ce5c2c617cbb0d2b86dd18f892931b8cba7c

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