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?
Raspberry Pi Plate - Trouble with variable types
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 5
- Joined: Thu Mar 21, 2013 2:14 am
- pburgess
- Posts: 4161
- Joined: Sun Oct 26, 2008 2:29 am
Re: Raspberry Pi Plate - Trouble with variable types
Sorry, this was a bug introduced in a recent change to the Adafruit_CharLCDPlate library. I just fixed and put the latest on Github.
-
- Posts: 5
- Joined: Thu Mar 21, 2013 2:14 am
Re: Raspberry Pi Plate - Trouble with variable types
Wonderful! Thanks for the help!
Please be positive and constructive with your questions and comments.