Datasheet
14
grovepi.fourDigit_score(display,12,59)
time.sleep(.5)
print "Test 9) Monitor analog pin"
seconds = 10
grovepi.fourDigit_monitor(display,sensor,seconds)
time.sleep(.5)
print "Test 10) Switch all on"
grovepi.fourDigit_on(display)
time.sleep(.5)
print "Test 11) Switch all off"
grovepi.fourDigit_off(display)
time.sleep(.5)
except KeyboardInterrupt:
grovepi.fourDigit_off(display)
break
except IOError:
print "Error"
5. Run the demo.
sudo python grove_4_digit_display.py
5. This demo may not work if your grovepi dosen't have the newest firmware, update the firmware.
cd yourpath/GrovePi/Firmware
sudo ./firmware_update.sh