package
module
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Sep 22, 2025
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
README
¶
tinygo-pwm
PWM interfaces and functions for TinyGo projects
Documentation
¶
func SetDuty(pwm PWM, channel uint8, pulseMicroseconds, periodMicroseconds uint32)
SetDuty sets the duty cycle of a PWM signal given the pulse width and period width in microseconds.
Parameters:
pwm: PWM to control its signal
channel: PWM channel
pulseMicroseconds: pulse width in microseconds
periodMicroseconds: period width in microseconds
PWM is the interface necessary for controlling PWM signals.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.