Arduino Programming

Arduino IDE

Getting Started

 Arduinos can make decisions on where to output energy and they can take in analog input, allowing for a lot more complexity to be incorporated into the circuitry. The only difference with arduino programming is that you have to program on your computer and then upload it to the arduino.

 Arduinos natively support C and C++ code. Although it isn't most friendly language, it is the best langauge for arduinos and what they are meant to do. C++ allows for the code to run just what is needed, and allows for direct communication with the hardware.

C/C++ Quick Reference

//This is a comment

/*
* This is a multiple line comment
*/

#define <math> //This is an import statement

using name std;

Examples

Who are you, my warranty?! Oh, but you can. But you may have to metaphorically make a deal with the devil. And by "devil", I mean Robot Devil. And by "metaphorically", I mean get your coat. Stop! Don't shoot fire stick in space canoe! Cause explosive decompression!

Switzerland is small and neutral! We are more like Germany, ambitious and misunderstood! Who are those horrible orange men? Your best is an idiot! What are their names? For one beautiful night I knew what it was like to be a grandmother. Subjugated, yet honored.

Oh no! The professor will hit me! But if Zoidberg 'fixes' it… then perhaps gifts! We'll need to have a look inside you with this camera. The key to victory is discipline, and that means a well made bed. You will practice until you can make your bed in your sleep.

They're like sex, except I'm having them! It's a T. It goes "tuh". And then the battle's not so bad? Guards! Bring me the forms I need to fill out to have her taken away! We don't have a brig.

Are you crazy? I can't swallow that. No argument here. You won't have time for sleeping, soldier, not with all the bed making you'll be doing. Of all the friends I've had… you're the first. Do a flip!