mruby-mbed is a mruby binding of mbed library. It currently supports only STM32 Nucleo F401RE board.
led = Mbed::DigitalOut.new(Mbed::LED1)
while true
led.write 1
wait 1
led.write 0
wait 1
end
- clone and build mbed-sdk
- edit mrbgem.rake
- change MBED_DIR variable (
/path/to/mbed
) into your mbed-sdk directory - change CTAGS_BIN variable (
/path/to/ctags
) into the path of your Exuberant Ctags binary - add
conf.gem "/path/to/mruby-mbed"
into your mruby directory make
- documentation