Using the Arduino libraries for regular AVR code

后端 未结 3 958
盖世英雄少女心
盖世英雄少女心 2021-01-31 10:49

I have an Arduino Uno and a Linux environment. Though the Arduino IDE is great and all, however it doesn\'t give me much inputs if something goes wrong. And it also becomes excr

3条回答
  •  走了就别回头了
    2021-01-31 11:03

    You might want to set the Arduino IDE compile options to verbose. Then compile something and watch the IDE's output. It will tell you where it locates the .cpp file and which compiler options it uses. Once you look into the .cpp file you see immediately what you need to include.

    After that the makefiles become much easier to understand. If you have no prior experience with make my advice would be to avoid it and go for scons instead. Scons is written Python. Thus you immediately benefit from much simpler debugging.

提交回复
热议问题