Esempio n. 1
0
import ledOnOff
import chargetimes
import time

ledOnOff.on()
time.sleep(0.1)
print("Detect LED 'on': " + str(chargetimes.getLed()))

ledOnOff.off()
time.sleep(0.1)
print("Detect LED 'off': " + str(not chargetimes.getLed()))
Esempio n. 2
0
import ledOnOff
import chargetimes
import time

ledOnOff.on()
time.sleep(0.1)
print("Detect LED 'on': " + str(chargetimes.getLed()))

ledOnOff.off()
time.sleep(0.1)
print("Detect LED 'off': " +  str(not chargetimes.getLed()))

Esempio n. 3
0
 def receive(self):
     on = chargetimes.getLed(receiveRate)
     return self.addOne(on, time())
Esempio n. 4
0
 def receive(self):
     on = chargetimes.getLed(receiveRate)
     return self.addOne(on, time())