Jump to content

problem with the new LCD 128x64 Bricklet in python 2.7.3


Recommended Posts

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?

 

 

Link zu diesem Kommentar
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

×   Du hast formatierten Text eingefügt.   Formatierung jetzt entfernen

  Only 75 emoji are allowed.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Clear editor

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

×
×
  • Neu erstellen...