Skip to content

Instantly share code, notes, and snippets.

@shikarunochi
Created October 8, 2018 04:03
Show Gist options
  • Save shikarunochi/a335add99b1d6b00eb46855c863dab4c to your computer and use it in GitHub Desktop.
Save shikarunochi/a335add99b1d6b00eb46855c863dab4c to your computer and use it in GitHub Desktop.
M5Stack Photocell Sender
from m5stack import lcd
import time
lcd.clear()
lcd.setColor(lcd.WHITE)
count = 0
while True:
if count == 0:
lcd.clear(lcd.WHITE)
count = 1
else:
lcd.clear(lcd.BLACK)
count = 0
#1秒待ち
time.sleep_ms(800)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment