瀏覽代碼

Add files via upload

Owen Diffey 9 年之前
父節點
當前提交
4fb351e8f9
共有 1 個文件被更改,包括 14 次插入0 次删除
  1. 14 0
      microbit-start.py

+ 14 - 0
microbit-start.py

@@ -0,0 +1,14 @@
+from microbit import *
+
+startup = 0
+
+while True:
+    if startup == 0:
+        display.scroll("Started")
+        startup = 1
+    else:
+        display.show(Image.HEART)
+        if button_a.is_pressed():
+            display.show("Text")
+        elif button_b.is_pressed():
+            display.show(str(3*5))