Skip to content

Commit bd7b4ba

Browse files
author
Drew Fustini
committed
changing from BCM to BOARD pin numbering to accomdate pin changes from Raspberry Pi Rev 1.0 and Rev 2.0
1 parent ee702e8 commit bd7b4ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Adafruit_CharLCD/Adafruit_CharLCD.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class Adafruit_CharLCD:
5454

5555

5656

57-
def __init__(self, pin_rs=25, pin_e=24, pins_db=[23, 17, 21, 22], GPIO = None):
57+
def __init__(self, pin_rs=22, pin_e=18, pins_db=[16, 11, 13, 15], GPIO = None):
5858
# Emulate the old behavior of using RPi.GPIO if we haven't been given
5959
# an explicit GPIO interface to use
6060
if not GPIO:
@@ -64,7 +64,7 @@ def __init__(self, pin_rs=25, pin_e=24, pins_db=[23, 17, 21, 22], GPIO = None):
6464
self.pin_e = pin_e
6565
self.pins_db = pins_db
6666

67-
self.GPIO.setmode(GPIO.BCM)
67+
self.GPIO.setmode(GPIO.BOARD)
6868
self.GPIO.setup(self.pin_e, GPIO.OUT)
6969
self.GPIO.setup(self.pin_rs, GPIO.OUT)
7070

0 commit comments

Comments
 (0)