20-sim code generation template for Arduino (AVR/ARM)
Download the code generation template using the "Download ZIP" button on Github or using a "git clone"
- Extract the zip file
- Copy the folder Arduino to a location on your 20-sim PC.
- Open 20-sim
- Choose from the Menu: Tools | Options
- Choose Folders
- Choose C-Code Folders
- Add the folder you copied in step 2.
- To export a submodel for Arduino, choose Tools | Real Time Toolbox | C-Code Generation and select "20-sim submodel for Arduino (Github)".
Install the Arduino IDE to compile the generated code and upload it to your Arduino.