Squirrels have fuzzy tails.
0 Members and 1 Guest are viewing this topic.
void setup() { pinMode(2, OUTPUT);}void loop() { int x = 0; while (true) { digitalWrite(2, x ^= 1); delay(1000); }}
Just wondering, what does ^ mean? I am familiar with += and *= etc, but I have never seen ^.
Quote from: Razor Concepts on March 12, 2010, 04:39:48 AMJust wondering, what does ^ mean? I am familiar with += and *= etc, but I have never seen ^.^ is xor. He is toggling the output on and off.
Quote from: chelmi on March 12, 2010, 08:30:37 AMQuote from: Razor Concepts on March 12, 2010, 04:39:48 AMJust wondering, what does ^ mean? I am familiar with += and *= etc, but I have never seen ^.^ is xor. He is toggling the output on and off.Are there any sites that show these different symbols and what they do? Google fails at searching for those symbols.
[...] suddenly automagically stop responding completely after about 2-3 hours.[...]Disconnecting and reconnecting power doesn't help, but apparently leaving it off for a few hours before reconnecting does (but it will die in another few hours).EDIT: tried powering it with a battery (NiMH regulated down to 5V), no change.