MicroPython メモ 11 / micro:bit の内部ストレージにデータを書き込む、内部ストレージからデータを読み取る

参考: Programming the BBC micro:bit: Getting Started with MicroPython, p.69-71
 

from microbit import *

with open("test.txt", "w") as sute:
    sute.write("ABC")
        
with open("test.txt") as sute:
    message = sute.read()

while True:
    display.scroll(message, monospace = False)