Skip to main content
1 of 6
Alex Shroyer
  • 437
  • 2
  • 5
  • 9

How to write makefile-compatible sketches?

I'd like to write my sketches so that I can either build/upload them using the Arduino IDE, or optionally using GCC and a makefile.

I know about including the function declarations at the top, but is there anything else to do in order for my sketch to be considered valid C++ by my compiler?

Alex Shroyer
  • 437
  • 2
  • 5
  • 9