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
+1 -1
View File
@@ -35,7 +35,7 @@ import (
// from wp.josh.com seem to be fine for the ws2812.
// Clock frequencies to support, in MHz.
var clockFrequencies = []int{16, 48, 64, 120}
var clockFrequencies = []int{16, 48, 64, 120, 168}
func writeImplementation(f *os.File, megahertz int) error {
cycleTimeNS := 1 / float64(megahertz)