-
Notifications
You must be signed in to change notification settings - Fork 18
Input Output: Set PWM pin () to frequency () hertzs and duty () %
Jaume Olivé Petrus edited this page Oct 29, 2017
·
1 revision
This block is an Input / Output block that generates a PWM signal on a GPIO at a specified frequency and duty value.
In this example a buzzer is connected to a GPIO and an alarm sound is generated. Try to generate other type of sounds, or change the frequency / duty values.
Instructions:
- Connect a buzzer to GPIO26
Run this example in The Whitecat IDE.