by MTset on Thu Mar 21, 2013 1:31 am

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

by pburgess on Thu Mar 21, 2013 1:13 pm

Sorry, this was a bug introduced in a recent change to the Adafruit_CharLCDPlate library. I just fixed and put the latest on Github.
User avatar
pburgess
 
Posts: 2171
Joined: Sun Oct 26, 2008 1:29 am

by MTset on Fri Mar 22, 2013 4:16 pm

Wonderful! Thanks for the help!
MTset
 
Posts: 5
Joined: Thu Mar 21, 2013 1:14 am