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

@@ -9,6 +9,11 @@ except ImportError:
from neopixel import Adafruit_NeoPixel as PixelStrip, Color
__version__ = "legacy"
try:
raw_input # Python 2
except NameError:
raw_input = input # Python 3
# LED strip configuration:
LED_COUNT = 8 # Number of LED pixels.
LED_PIN = 18 # GPIO pin connected to the pixels (must support PWM!).