Skip to content

Latest commit

 

History

History

arduino

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

nmtools Arduino examples

Requirements

  • platformio
  • simavr (optional, for arduino simulation)
  • avr-gcc 9+, required to override the default AVR toolchain which doesn't have complete core C++17 language features.

Running the examples

Go to manip or ufuncs, then:

platformio run --target upload
platformio device monitor

Build only (for simavr)

platformio run --verbose -e mega

Using simavr

  • Arduino UNO
simavr --mcu "atmega328p" .pio/build/uno/firmware.elf
  • Arduino MEGA
simavr --mcu "atmega2560" .pio/build/mega/firmware.elf

STM32

platformio run --target upload -e nucleo_f401re && platformio device monitor

Debugging

platformio debug && platformio debug --interface=gdb -x .pioinit