Micro Python is a version of Python that runs on microcontrollers. It allows Python code to control microcontrollers like the STM32F4 Discovery board. The document discusses the Micro Python project, the pyboard development board, and demonstrates some example Python code for controlling LEDs, reading switches, and using other hardware on the STM32F4 Discovery board with Micro Python.
6. vs Raspberry Pi
● GPIO
○ Raspberry Pi 䛿䛱䜗䛳䛸ᑡ䛺䜑
○ (Type B+ 䛷ᑡ䛧ቑ䛘䜎䛧䛯)
● Price
○ 3940...
● 㛤Ⓨ䛜㠃ಽ䛟䛥䛔
○ Raspberry Pi 䛾 Linux 䛷㛤Ⓨ䛩䜛 or SSH
○ 䛭䜒䛭䜒䝬䜲䝁䞁䛷䛿䛺䛔...
15. LED ON / OFF
● 䛸䜚䛒䛘䛪 L 䝏䜹
led = pyb.LED(1)
while True:
led.off()
pyb.delay(500)
led.on()
pyb.delay(500)
䛣䜜䛷䜒䜘䛔
led = pyb.LED(1)
while True:
led.toggle()
pyb.delay(500)