-
Export .ino file and rename to .cpp
-
Add
#include <Arduino.h>
to top of the file -
run
avr-g++ -I /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/ -I /Applications/Arduino.app/Contents/Java//hardware/arduino/avr/variants/standard -x c++ -MMD -c -mmcu=atmega328p -Wall -DF_CPU=16000000L -Wall -Os SR04_Example.cpp
-
avr-objdump -S SR04_Example.o >> SR04_Example.lst
Last active
May 14, 2019 16:13
-
-
Save kevincolten/6705a02916b871293b7b1e1e702de15d to your computer and use it in GitHub Desktop.
Compile arduino sketch to assembly on a Mac
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment