Arduino IDE Toolbar: Pin Setup
Arduino IDE Toolbar: Pin Setup
Copyright © 2020 MakeUseOf. For more cheat sheets, head over to www.makeuseof.com
Casting
(type)variable Casts the value of variable to a new type
Serial Communication
Serial.begin(speed) Start serial communication at a specified speed
Serial.end() Close serial communication
Prints DATA to the serial port. DATA can be characters, strings,
Serial.print(DATA) integers and floating point numbers
Return the number of characters available to read in the serial
Serial.available() buffer
Read the first character in the serial buffer (returns -1 if no data is
Serial.read() available)
Write DATA to the serial buffer. DATA can be a character, integer,
Serial.write(DATA) or array
Serial.flush() Clears the serial buffer once outgoing communication is complete
Copyright © 2020 MakeUseOf. For more cheat sheets, head over to www.makeuseof.com