Na Arduinu a jeho odvozeninách s malými (co do počtu vývodů) procesory je jen jedno sériové rozhraní. Na Arduinu Mega jsou další tři.
void setup() {
Serial.begin(9600);
}
int number = 0;
void loop() {
Serial.print("");
Serial.println(number);
number++;
delay(500);
}Na straně počítače můžeme v Linuxu požít tyto programy:
Serial.println(chrValue, BYTE); Serial.println(chrValue, DEC); Serial.println(chrValue, HEX); Serial.println(chrValue, OCT); Serial.println(chrValue, BIN);
