Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup()
- {
- Serial.begin(9600);
- }
- void loop()
- {
- Serial.println("String"); // Imprime String
- Serial.println(0x31); // Imprime valor decimal 49 para 31 hexadecimal
- Serial.println(6); // Imprime 6
- Serial.println(44, HEX); // Imprime valor hexadecimal 2C para o decimal 44
- Serial.println(75, BIN); // Imprime Bina'rio 100 1011 = HEX 4B hexadecimal para o decimal 75
- Serial.println(0x0A, DEC); // Imprime 10 = Decimal para o Hexadecimal 0x0A
- Serial.write("String"); // Imprime String
- Serial.println(" ");
- Serial.write(0x31); // Imprime Character 1 valor para o Hexadecimal 0x31
- Serial.println(" ");
- Serial.write(56); // Imprime Character 8 valor para o Decimal 56 (Hexa 38)
- Serial.println(" ");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement