more backups
[rb-clock.git] / python / lcd-clear.py
diff --git a/python/lcd-clear.py b/python/lcd-clear.py
new file mode 100644 (file)
index 0000000..2914f25
--- /dev/null
@@ -0,0 +1,13 @@
+import RPi.GPIO as GPIO
+from RPLCD.gpio import CharLCD
+import socket
+import fcntl
+import struct
+import time
+from signal import signal, SIGINT
+from sys import exit
+
+lcd = CharLCD(cols=40, rows=2, pin_rs=37, pin_e=35, pins_data=[33, 31, 29, 23], numbering_mode=GPIO.BOARD)
+lcd.clear()
+lcd.clear()
+lcd.close()