cs=1,
dc=9,
backlight=12,
- #rotation=270,
- rotation=90,
+ rotation=270,
+ #rotation=90, # flip upside down wrt enviro+ default orientation
spi_speed_hz=10000000
)
# schedule.every().minute.at(":45").do(updateBuffer)
# schedule.every().minute.at(":50").do(updateBuffer)
# schedule.every().minute.at(":55").do(updateBuffer)
+ pollSensors() # initial run to start up sensors
+ time.sleep(1) # pause to give sensors time to initialize
updateBuffer() # initial run
- pollSensors() # initial run
+
while True:
proximity = ltr559.get_proximity()