pdf-icon

PIN

Feature Description

Custom pin configuration

Init Pin mode Pull Set pin mode

set HIGH Set pin to high level

set LOW Set pin to low level

Get Value Get pin value

Set Value Set pin value

Instructions

Set pin 5 to pull-up output high level

Pin Servo

Control the servo

Init Pin, freq, min, max, angle range Servo initialization settings, Pin=pin, freq=servo signal frequency, min=minimum pulse width, max=maximum pulse width, angle=servo angle range

rotate to degree Rotate servo to a specific degree

write us High-level duration

Usage Instructions

Control the servo to switch between 0° and 90°

PWM

Feature Description

PWM feature settings

Init in Pin freq duty use timer Set channel pin frequency, duty cycle, and timer

set freq to Change frequency

set duty to Change duty cycle

Pause Disable PWM feature

Resume Re-enable PWM feature

Usage Instructions

Set PWM0 pin 25 with timer 0 to frequency 500 and duty cycle 50

On This Page