mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-06 20:13:40 +00:00
stm32: add pwm for f4 series
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// +build stm32f4disco
|
||||
|
||||
package main
|
||||
|
||||
import "machine"
|
||||
|
||||
var (
|
||||
// These pins correspond to LEDs on the discovery
|
||||
// board
|
||||
pwm = &machine.TIM4
|
||||
pinA = machine.PD12
|
||||
pinB = machine.PD13
|
||||
)
|
||||
Reference in New Issue
Block a user