Adafruit_CharLCD.py NEED HELP

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
ahws18
 
Posts: 5
Joined: Sat Apr 06, 2013 11:29 am

Adafruit_CharLCD.py NEED HELP

Post by ahws18 »

Hi I have got everything set up right and done everything on the tutorial (Drive a 16x2 LCD with the Raspberry Pi) but when I try and run Adafruit_CharLCD.py it comes up with 'inconsistent use of tabs and spaces in indenation' I have configured the code in any way and I was wondering if there was another easy way to display on the LCD or if you could tell me if ive missed something. please get back to me

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Adafruit_CharLCD.py NEED HELP

Post by adafruit_support_mike »

(moved the post to the RasPi forum)

in python, whitepsace has meaning. It sounds like some tabs have gotten mixed in with the spaces that indent the code, and the compiler doesn't like that. If you have a word processor that can translate tabs to spaces, ues that to bring everything under the same formatting rules. If not, a find-and-replace that puts four spaces where each tab is usually works.

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”