Difference: NeoPixel (6 vs. 7)

Revision 72021-06-17 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="MecrispCubeF405"

NeoPixel

Line: 60 to 60
 .equ T0L, 5 // 0.85 us / (3 * 31.25 ns) = 9.07 -> 5 (4 turns less) .equ T1L, 1 // 0.45 us / (3 * 31.25 ns) = 4.53 -> 1 (4 turns less)
Added:
>
>
.equ RESTIME, 533 // 50 us / (3 * 31.25 ns) = 533
 // Registers .equ GPIO_BSRR, 0x18 // GPIOx->BSRR bit set/reset
Line: 77 to 79
  lsl r3, r1, #16 // clear port pin for BSRR mov r6, #24 // 24 bits
Added:
>
>
// set DOUT pin low and wait reset time str r3, [r0, #GPIO_BSRR] ldr r4, =RESTIME 1: subs r4, r4, #1 1 bne 1b
  cycles bit_loop: lsls r2, r2, #1 // get the next bit -> set the carry bit 1
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback