question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

module 'board' has no attribute 'TX'

See original GitHub issue

When I configure following line it gives me module 'board' has no attribute 'TX' error.

import board, busio
uart = busio.UART(board.TX, board.RX, baudrate=9600, timeout=10)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
indramalcommented, Jun 7, 2020

I found the solution. Thank you very much for helping me. I can not use this, uart = busio.UART(board.TX, board.RX, baudrate=9600, timeout=10) Instead I can use,

import serial
uart = serial.Serial("/dev/ttyTHS1", baudrate=9600, timeout=3000)
0reactions
jerryneedellcommented, Jun 7, 2020

hmmm – sorry - I have no experience with that board. Hopefully someone else can help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AttributeError: module 'board' has no attribute 'I2C' · Issue #7
Summary of Issue Attempting to initialize the class object from ServoKit results in the following error: Traceback (most recent call last): ...
Read more >
module 'board' has no attribute 'SCK'' I am using raspberry pi ...
I don't know what the problem is. import board import busio import digitalio import adafruit_max31865 spi = busio.SPI(board.SCLK, MOSI= ...
Read more >
AttributeError: 'module' object has no attribute 'SCL' - Reddit
Hello! Im trying to make an i2c display work on my tiny 2040, im doing it with circuitpython cause that was easier for...
Read more >
FT232H: module board has no attribute C0 - Adafruit forums
Update: it works now. I don't know why, but the only thing I did was export BLINKA_FT232H=1 again (I had verified it was...
Read more >
AdaFruit Ultimate GPS Python Code Error
Attribute Error: module"board" has no attribute "RX". ... For other boards set RX = GPS module TX, and TX = GPS module RX...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found