aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/lib/ws2812b.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/lib/ws2812b.c b/firmware/lib/ws2812b.c
index 4af5268..e481730 100644
--- a/firmware/lib/ws2812b.c
+++ b/firmware/lib/ws2812b.c
@@ -173,12 +173,12 @@ void ws2812b_show(void)
while (!reset_code); // wait for previous reset code to finish
- // use inline assembly to handle precise timing constraints, and volatile to prevent optimisation of the code
- cli(); // disable interrupt for time cirtical code
+ // use in-line assembly to handle precise timing constraints, and volatile to prevent optimisation of the code
+ cli(); // disable interrupt for time critical code
__asm__ __volatile__ (
"0:" "\n\t" // clock start,duration,stop instruction (use local label = number)
"out %[port], %[high]" "\n\t" // -1,1,0 start bit, set signal to high
- "sbiw %[count], 1" "\n\t" // 0,2,2 decrement the number of bits to send (do it here to be able to compare immediatly)
+ "sbiw %[count], 1" "\n\t" // 0,2,2 decrement the number of bits to send (do it here to be able to compare immediately)
"breq 1f" "\n\t" // 2,1-2,3-4 if this was the last bit, start the reset procedure (go "f"orward to 1)
"or %[out], %[low]" "\n\t" // 3,1,4 combine bit and port values
"nop" "\n\t" // 4,1,5 wait before outputing bit value