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/

Adafruit_CharLCD.py NEED HELP

by ahws18 on Sat Apr 06, 2013 10:34 am

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
ahws18
 
Posts: 5
Joined: Sat Apr 06, 2013 10:29 am

Re: Adafruit_CharLCD.py NEED HELP

by adafruit_support_mike on Mon Apr 08, 2013 9:17 am

(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.
When you void a product warranty, you give up your right to sue the manufacturer if something goes wrong and accept full responsibility for whatever happens next. And then you truly own the product.
User avatar
adafruit_support_mike
 
Posts: 7214
Joined: Thu Feb 11, 2010 1:51 pm