Raspberry Pi Plate - Trouble with variable types

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
MTset
 
Posts: 5
Joined: Thu Mar 21, 2013 2:14 am

Raspberry Pi Plate - Trouble with variable types

Post by MTset »

Bit of a newbie, so if it needs saying feel free. I assembled and tested my second 16x2 LCD Pi Plate Kit and I am having a bit of trouble getting the unit to display integer variable types. Prints strings just fine but the lcd.message() function seems not to like printing integers (due to the carriage return in the Def possibly?). Error is as follows:

AttributeError: 'int' object has no attribute 'split'

When using:
lcd.message(y) #where y is an integer value

I am new to python but somewhat experienced in c/c++ I am sincerely hoping that I will not have to do all of my variable math with strings... Any suggestions?

Also any suggestions on where to start on reading up on this sort of thing?

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: Raspberry Pi Plate - Trouble with variable types

Post by pburgess »

Sorry, this was a bug introduced in a recent change to the Adafruit_CharLCDPlate library. I just fixed and put the latest on Github.

MTset
 
Posts: 5
Joined: Thu Mar 21, 2013 2:14 am

Re: Raspberry Pi Plate - Trouble with variable types

Post by MTset »

Wonderful! Thanks for the help!

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

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