From bc096344f5884c72c1bfd9c1de7f264094418d99 Mon Sep 17 00:00:00 2001 From: Zach Eveland Date: Fri, 16 Sep 2011 11:18:39 -0400 Subject: faster LED breathing animation in bootloader --- bootloaders/diskloader/src/DiskLoader.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bootloaders/diskloader/src') diff --git a/bootloaders/diskloader/src/DiskLoader.cpp b/bootloaders/diskloader/src/DiskLoader.cpp index f854fd1..1771d02 100644 --- a/bootloaders/diskloader/src/DiskLoader.cpp +++ b/bootloaders/diskloader/src/DiskLoader.cpp @@ -220,10 +220,10 @@ int main() u16 _pulse; void LEDPulse() { - _pulse++; - u8 p = _pulse >> 8; - if (p > 127) - p = 255-p; + _pulse += 4; + u8 p = _pulse >> 9; + if (p > 63) + p = 127-p; p += p; if (((u8)_pulse) > p) LED0; -- cgit v1.2.3-18-g5258