ws2812: add support for 168MHz (e.g. Adafruit Feather STM32F405)

This commit is contained in:
Ayke van Laethem
2021-08-23 23:59:22 +02:00
committed by Ron Evans
parent 7a2b1b8c90
commit 259593e608
3 changed files with 398 additions and 1 deletions
+3
View File
@@ -29,6 +29,9 @@ func (d Device) WriteByte(c byte) error {
case 120_000_000: // 120MHz
d.writeByte120(c)
return nil
case 168_000_000: // 168MHz, e.g. stm32f405
d.writeByte168(c)
return nil
default:
return errUnknownClockSpeed
}