Exemple #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()))
Exemple #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()))

 def receive(self):
     on = chargetimes.getLed(receiveRate)
     return self.addOne(on, time())
 def receive(self):
     on = chargetimes.getLed(receiveRate)
     return self.addOne(on, time())