// 2009 mlab.uiah.fi/paja // Understanding type of numbers void setup() { Serial.begin(9600); } void loop() { // Prints M as a decimal number in ASCII // Decimal number uses the digits 0 to 9 Serial.println(77, DEC); delay(1000); // Prints M as a hexadecimal number in ASCII // Hexadecimal number uses the digits 0 to f Serial.println(77, HEX); delay(1000); // Prints M as a binary number in ASCII // Binary number uses only 0 and 1 Serial.println(77, BIN); delay(1000); // Print 77 as a single byte. // This means 77 is printed as ASCII charactor in Arduino SW. // 77 is a charactor "M" in ASCII Serial.println(77, BYTE); Serial.println(32, BYTE); //85 is Space in ASCII delay(1000); }