Skip to content

Commit

Permalink
ws2812: add support for 168MHz (e.g. Adafruit Feather STM32F405)
Browse files Browse the repository at this point in the history
  • Loading branch information
aykevl authored and deadprogram committed Sep 17, 2021
1 parent 7a2b1b8 commit 259593e
Show file tree
Hide file tree
Showing 3 changed files with 398 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ws2812/gen-ws2812-arm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading

0 comments on commit 259593e

Please sign in to comment.