Skip to content

Instantly share code, notes, and snippets.

@elktros
elktros / lcdPi.py
Created August 31, 2017 08:47
Interfacing 16x2 LCD with Raspberry Pi
#!/usr/bin/env python
import RPi.GPIO as GPIO
from time import sleep
# Define GPIO to LCD mapping
LCD_RS = 7
LCD_E = 8
LCD_D4 = 25
LCD_D5 = 24
LCD_D6 = 23