DrJoe Posted October 31, 2018 at 07:03 PM Share Posted October 31, 2018 at 07:03 PM Hello, i have a problem with the new LCD 128x64 Bricklet in python 2.7.3 running on a raspberry. When i run this code: #!/usr/bin/env python # -*- coding: utf-8 -*- HOST = "localhost" PORT = 4223 UID = "XYZ" # Change XYZ to the UID of your LCD 128x64 Bricklet from tinkerforge.ip_connection import IPConnection from tinkerforge.bricklet_lcd_128x64 import BrickletLCD128x64 if __name__ == "__main__": ipcon = IPConnection() # Create IP connection lcd = BrickletLCD128x64(UID, ipcon) # Create device object ipcon.connect(HOST, PORT) # Connect to brickd # Don't use device before ipcon is connected # Clear display lcd.clear_display() # Write "Hello World" starting from upper left corner of the screen lcd.write_line(0, 0, "Hello World") raw_input("Press key to exit\n") # Use input() in Python 3 ipcon.disconnect() this error is shown: Traceback (most recent call last): File "display.py", line 13, in <module> from tinkerforge.bricklet_lcd_128x64 import BrickletLCD128x64 ImportError: No module named bricklet_lcd_128x64[/color] Can anyone help me? Quote Link to comment Share on other sites More sharing options...
borg Posted November 10, 2018 at 10:15 AM Share Posted November 10, 2018 at 10:15 AM It looks like your Python Bindings are too old? Quote Link to comment Share on other sites More sharing options...
MV Posted November 26, 2018 at 10:50 AM Share Posted November 26, 2018 at 10:50 AM i am running it with python 3 on the red brick and get the same error. how does one solve it though ? Quote Link to comment Share on other sites More sharing options...
borg Posted November 26, 2018 at 10:57 AM Share Posted November 26, 2018 at 10:57 AM You can either use the newest RED Brick image (1.13), it comes with the LCD128x64 Bindings or you can update them with the Brick Viewer. Quote Link to comment Share on other sites More sharing options...
borg Posted November 26, 2018 at 11:31 AM Share Posted November 26, 2018 at 11:31 AM Did you check the UID? Maybe you are using the UID of a wrong Bricklet, that could explain the exception here. Quote Link to comment Share on other sites More sharing options...
MV Posted November 26, 2018 at 11:33 AM Share Posted November 26, 2018 at 11:33 AM I did yes, I made an error hence I also deleted my post. Thanks fot he big help! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.