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/
Please be positive and constructive with your questions and comments.

Adafruit_CharLCD.py NEED HELP

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

Re: Adafruit_CharLCD.py NEED HELP

by adafruit_support_mike on Mon Apr 08, 2013 10: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.

Posts: 44064
Joined: Thu Feb 11, 2010 2:51 pm

Please be positive and constructive with your questions and comments.