Thanks for the reply! What I'm trying to run is the Adafruit_CharLCD.py sample mentioned in the tutorial for the Adafruit 16x2 LCD, to be gotten from GITHUB... followed the instructions in the tutorial, and the error message was the result... I'm certainly not above beating my way through the code shoving things around to deal with this, but a) shouldn't the samples be reasonably @ready to run@?, and b), how to know what the author intended the indentation to be?
Here's the code in the area you mentioned.....
- Code: Select all | TOGGLE FULL SIZE
def __init__(self, pin_rs=25, pin_e=24, pins_db=[23, 17, 21, 22], GPIO = None):
# Emulate the old behavior of using RPi.GPIO if we haven't been given
# an explicit GPIO interface to use
if not GPIO:
import RPi.GPIO as GPIO
self.GPIO = GPIO
self.pin_rs = pin_rs
self.pin_e = pin_e
self.pins_db = pins_db
Now it's complaining about another section further down... I'm not sure what the author intended.....
Thanks again for any light you can shed on this (so far) rather murky subject!