Hello all,
I would like to see a code that sends fast to the USB interface 64 bits integers.
below is a copy of a code that does fail, although it is able to send a regular 32 bit integer.
The line that fails to compile is commented out, ( //Serial.write(integer64); )
I am guessing that for sending 64 bits integers one needs to treat them as arrays, and I would appreciate some sugestions.
Sincerely,
Dorin
********Code below ***********
unsigned long long integer64 = 0; // shifted sum of values
unsigned long integer32 = 0;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial.print("Sending integer3 and integer64");
Serial.write(integer32);
//Serial.write(integer64);
}
void loop() {
// put your main code here, to run repeatedly:
}
I would like to see a code that sends fast to the USB interface 64 bits integers.
below is a copy of a code that does fail, although it is able to send a regular 32 bit integer.
The line that fails to compile is commented out, ( //Serial.write(integer64); )
I am guessing that for sending 64 bits integers one needs to treat them as arrays, and I would appreciate some sugestions.
Sincerely,
Dorin
********Code below ***********
unsigned long long integer64 = 0; // shifted sum of values
unsigned long integer32 = 0;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial.print("Sending integer3 and integer64");
Serial.write(integer32);
//Serial.write(integer64);
}
void loop() {
// put your main code here, to run repeatedly:
}