mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Updated some comments
This commit is contained in:
parent
4b14c6910c
commit
d67e637f2f
1 changed files with 2 additions and 2 deletions
|
@ -41,13 +41,13 @@ void loop() {
|
|||
leds <<= 1;
|
||||
if (leds == 0x8000) // All are actually turned off, as there is only 15 LEDs
|
||||
dirUp = false; // If we have reached the end i.e. all LEDs are off, then change direction
|
||||
else if (!(leds & 0x8000)) // If last bit is not set set the lowest bit
|
||||
else if (!(leds & 0x8000)) // If last bit is not set, then set the lowest bit
|
||||
leds |= 1; // Set lowest bit
|
||||
} else {
|
||||
leds >>= 1;
|
||||
if (leds == 0) // Check if all LEDs are off
|
||||
dirUp = true; // If all LEDs are off, then repeat the sequence
|
||||
else if (!(leds & 0x1)) // If last bit is not set set the lowest bit
|
||||
else if (!(leds & 0x1)) // If last bit is not set, then set the top bit
|
||||
leds |= 1 << 15; // Set top bit
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue