Define raw_input() in Python 3 (#473)

Many thanks
This commit is contained in:
cclauss
2018-08-12 19:58:11 +02:00
committed by Dave Conway-Jones
parent 335c46ac06
commit 8fe2478a0b
7 changed files with 36 additions and 3 deletions

View File

@@ -30,6 +30,12 @@ import threading
from sense_hat import SenseHat
try:
StandardError # Python 2
except NameError:
StandardError = Exception # Python 3
EVENT_FORMAT = 'llHHI'
EVENT_SIZE = struct.calcsize(EVENT_FORMAT)
EVENT_NAMES = {103:'U',105:'L',106:'R',108:'D',28:'E'}