mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-09-03 13:28:59 +00:00
ws2812: add support for 168MHz (e.g. Adafruit Feather STM32F405)
This commit is contained in:
committed by
Ron Evans
parent
7a2b1b8c90
commit
259593e608
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user