stty
Binary
byte b = B10010; byte b = byte(3);
DDRD=0b00111111; // sets 7+6 to input, sets 5-0 to output DDRB=0b110111 // sets pin 13-8 to output, except 11 to input
Serial.begin(9600); //in setup, 9600 bits per second
Serial.println(val); //prints variable val
Return Length of Serial data read
Serial.available();
Serial.read()
Serial.write() // binary
Serial.print() // prints without linebreak
pinMode(pin, mode)
mode: [INPUT, OUTPUT, INPUT_PULLOUT]
Pin Levels
pinMode == INPUT && readWith == digitalRead && volts > 3v then HIGH
int[] = {0,1};
#define LED 13
replaced by compiler before code is translated into executable
pinMode(13, OUTPUT);
digitalWrite(13, HIGH);
delay(1000); //delay 1 second
toggle = 1 - toggle;
//switches between 1 and 0 everytime its called
val = digitalRead(BUTTON)
val = analogRead(9);
map(x, 0, 1023, 0, 7);