© Norman Dunbar 2024
N. DunbarArduino Software InternalsMaker Innovations Serieshttps://doi.org/10.1007/979-8-8688-0171-6_5

5. Converting to the AVR Language

Norman Dunbar1  
(1)
Rawdon, West Yorkshire, UK
 

This chapter briefly explains how you can begin to wean yourself off of the helpful features of the Arduino Language and write code that is in the AVR’s own variant of C/C++. A small change to convert an Arduino function can often greatly reduce the size of your compiled code and could make the difference between fitting your project into an ATtiny85, for example, rather than needing a full-blown ATmega328P.

Writing AVR C/C++ also turns off all the hand-holding that the Arduino gives you. You are talking directly to the device, rather than having ...

Get Arduino Software Internals: A Complete Guide to How Your Arduino Language and Hardware Work Together now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.