(SOLVED) Problem during initialization of Adafruit 16x2 Char

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
qnitech
 
Posts: 2
Joined: Thu Mar 20, 2014 2:32 am

(SOLVED) Problem during initialization of Adafruit 16x2 Char

Post by qnitech »

Hello all,
I have a problem that I can't figure when I try to initialize my Adafruit 16x2 Character LCD + Keypad on my Raspberry Pi.

Every steps of http://learn.adafruit.com/adafruit-16x2 ... y-pi/usage had been followed and successfull until initialization, when I type :
lcd = Adafruit_CharLCDPlate()
The return is : bash error with the unexpected "(" .... or someting like that because it's in french "-bash: Erreur de syntaxe près du symbole inattendu « ( »

I wonder what I've missed ... especially after all that success :)

Note : Raspbian is up to date, all dependencies are satisfied (although I think so)
Thank you.
Last edited by qnitech on Fri Mar 21, 2014 2:06 am, edited 1 time in total.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Problem during initialization of Adafruit 16x2 Character

Post by adafruit_support_rick »

qnitech wrote:lcd = Adafruit_CharLCDPlate()
That's not a command line instruction - that's a line from the python program.You're supposed to edit that line if python has a problem finding your plate.

You should be running the python program from the command line:

Code: Select all

sudo python Adafruit_CharLCDPlate.py

qnitech
 
Posts: 2
Joined: Thu Mar 20, 2014 2:32 am

Re: Problem during initialization of Adafruit 16x2 Character

Post by qnitech »

... aw ... ok ... make sens now thanks M. Rick.
Anyways, I still have trouble to display what's in the LCDTest.py ...
sudo python Adafruit_I2C.py "Default I2C bus is accessible"

..but no display ... :? .. but ... but ... wait ... just turn a little the contrast ... and voila !!
Sorry ... I'm learning .. I'm learning :lol:

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”