open-dynamic-robot-initiative / power-board

Power Management and distribution board for Open Dynamic Robot Initiative Robots
BSD 2-Clause "Simplified" License
6 stars 3 forks source link

move WS2812 LED control from bitbang to DMA_PWM #3

Open flforget opened 2 years ago

flforget commented 2 years ago

uses Timer 2 (PWM Mode 1, no prescaler, upcounting to 90 -> 800kHz) PWM changes through DMA1 Channel 7 (Memory to Peripheral)