예제 #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()))
예제 #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()))

예제 #3
0
 def receive(self):
     on = chargetimes.getLed(receiveRate)
     return self.addOne(on, time())
예제 #4
0
 def receive(self):
     on = chargetimes.getLed(receiveRate)
     return self.addOne(on, time())