Archive for 27 Nov 2010

Tips and Tricks (7)

Previous T&T An other very surprising trick which really puzzled me! See this very simple sketch: uint8_t runOnce = 0x00; void setup() { Serial.begin(115200); Serial.println(“Ready…”); } void loop() { if (runOnce == 0x00) { runOnce = 0x01; for (uint8_t i = 0; i < 32; i++) { uint32_t j = (1 << i); Serial.print(i, DEC); […]