Running this little example
I get this error in I2C_LCD_driver.py taken from https://www.circuitbasics.com/raspberry-...ogramming/
1 2 3 4 |
import I2C_LCD_driver from time import * mylcd = I2C_LCD_drive.lcd() mylcd.lcd_display_string( "Hello Python!" , 1 ) |
Error:Python 3.7.3 (/usr/bin/python3)
>>> %Run lcd_test.py
Traceback (most recent call last):
File "/home/pi/Documents/lcd_test.py", line 3, in <module>
mylcd = I2C_LCD_driver.lcd()
File "/home/pi/Code/I2C_LCD_driver.py", line 109, in __init__
self.lcd_device = i2c_device(ADDRESS)
File "/home/pi/Code/I2C_LCD_driver.py", line 30, in __init__
self.bus = smbus.SMBus(port)
FileNotFoundError: [Errno 2] No such file or directory
>>>
buran write Jan-31-2021, 03:04 PM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Please, post the entire traceback that you get. We need to see the whole thing. Do not just give us the last line.
Take a time to read What to include in a post
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Please, post the entire traceback that you get. We need to see the whole thing. Do not just give us the last line.
Take a time to read What to include in a post