#!/usr/bin/env python import time import jetduino from jetduino_pins import * display = ARD_D10 jetduino.fourDigit_init(display) time.sleep(0.1) jetduino.fourDigit_number(display,1234, 1) #time.sleep(1) #jetduino.fourDigit_number(display,11, 1) #time.sleep(1) #jetduino.fourDigit_number(display,55, 0) #time.sleep(1) #jetduino.fourDigit_brightness(display,7) #time.sleep(1) #jetduino.fourDigit_brightness(display,0) #time.sleep(1) #jetduino.fourDigit_brightness(display,2) time.sleep(1) jetduino.fourDigit_off(display)
jetduino.fourDigit_init(display) time.sleep(.5) print ("Test 2) Set brightness") for i in range(0,8): jetduino.fourDigit_brightness(display,i) time.sleep(.2) time.sleep(.3) # set to lowest brightness level jetduino.fourDigit_brightness(display,0) time.sleep(.5) print ("Test 3) Set number without leading zeros") leading_zero = 0 jetduino.fourDigit_number(display,1,leading_zero) time.sleep(.5) jetduino.fourDigit_number(display,12,leading_zero) time.sleep(.5) jetduino.fourDigit_number(display,123,leading_zero) time.sleep(.5) jetduino.fourDigit_number(display,1234,leading_zero) time.sleep(.5) print ("Test 4) Set number with leading zeros") leading_zero = 1 jetduino.fourDigit_number(display,5,leading_zero) time.sleep(.5) jetduino.fourDigit_number(display,56,leading_zero) time.sleep(.5) jetduino.fourDigit_number(display,567,leading_zero)