Memorial day is 05/25/2015 – Orders will ship out on May 26th. There will not be any deliveries or shipping on Monday. Any order placed after 11am ET on Friday May 22nd will not start to ship out until Tuesday May 26th.

Raspberry Pi Plate - Trouble with variable types
Moderators: adafruit_support_bill, adafruit

Raspberry Pi Plate - Trouble with variable types

by MTset on Thu Mar 21, 2013 2: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 2:14 am

Re: Raspberry Pi Plate - Trouble with variable types

by pburgess on Thu Mar 21, 2013 2: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.

pburgess
 
Posts: 3002
Joined: Sun Oct 26, 2008 2:29 am

Re: Raspberry Pi Plate - Trouble with variable types

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

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