Hello! Can someone please help me identify where I am going wrong in this code. I am trying to print out the hexidecimal value exactly as it is shown.
char msgString[128];
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial.println("<Arduino is ready>");
}
void loop() {
// put your main code here, to run repeatedly:
uint64_t receivedMsg = 0x1000000100000000;
sprintf(msgString, "Incoming message: 0x%.16llX",receivedMsg);
Serial.println(msgString);
delay(1000);
}
I am mainly printing it for verification purposes at the moment. I just want some way of seeing if I am correctly doing bitwise operations and things like that. It's for a larger project and I'm struggling with some of the basics. Thanks for linking that post though, I will go check it out