Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup() {
- Serial.begin(115200);
- unsigned int var1 = 0xFFFE;
- unsigned int var2 = 0xFFFFFFFE;
- unsigned long var3 = 0xFFFFFFFE;
- unsigned long var4 = 0xFFFFFFFFFFFFFFFE;
- uint64_t var5 = 0xFFFFFFFFFFFFFFFE;
- float var6 = 122.3 / 3333.3;
- Serial.println(" ");
- #ifdef ESP8266
- Serial.println("ESPxxx");
- printf("var1 int = %u\n", var1);
- printf("var2 int = %u\n", var2);
- printf("var3 long = %u\n", var3);
- printf("var4 long = %u\n", var4);
- printf("var long long = %u\n", var5);
- printf("var6 float = %2.16f\n", var6);
- #else
- Serial.println("Arduino ");
- Serial.print("var1 int "); Serial.println(var1);
- Serial.print("var2 int "); Serial.println(var2);
- Serial.print("var3 long "); Serial.println(var3);
- Serial.print("var4 long "); Serial.println(var4);
- Serial.println("não imprime formato long long");
- Serial.print("var6 float "); Serial.println(var6, 16);
- #endif
- }
- void loop() {
- ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement