Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PWM demo for non-Device Tree #1

Merged
merged 4 commits into from
Jan 4, 2021
Merged

Fix PWM demo for non-Device Tree #1

merged 4 commits into from
Jan 4, 2021

Conversation

lupyuen
Copy link
Owner

@lupyuen lupyuen commented Jan 4, 2021

Modified PWM commands for use without Device Tree...

  • pwm_init command now accepts Frequency (2,000 to 800,000)...

    pwm_init 1 11 2000
  • Add pwm_duty_set and pwm_freq_set to set Duty Cycle (percentage from 0 to 100) and Frequency...

    pwm_duty_set 1 50
    pwm_freq_set 1 2000
  • Add pwm_duty_get to display Duty Cycle...

    pwm_duty_get 1

@lupyuen lupyuen merged commit 4ab3010 into master Jan 4, 2021
dacut pushed a commit to dacut/bl_iot_sdk that referenced this pull request Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant