Ich muss um Verzeihung bitten.
Der R4 kennt die Funktion sehrwohl!
#include <Streaming.h> // die Lib findest du selber ;-)
Print &cout = Serial; // cout Emulation für "Arme"
void setup()
{
Serial.begin(9600);
cout << F("Start: ") << F(__FILE__) << endl;
}
byte i;
void loop()
{
cout << i << " " << __builtin_parity(i) << endl;
delay(1000);
i++;
}
Sagt:
Start: E:\Programme\arduino\portable\sketchbook\sketch_jul22e\sketch_jul22e.ino
0 0
1 1
2 1
3 0
4 1
5 0
6 0
7 1
8 1
9 0
10 0
11 1
usw.