Data Sheet
UCTRONICS Ultimate Starter Leaning Kit for Raspberry Pi #K0064
73 www.uctronics.com
● p = GPIO.PWM(channel, frequency)
This is used for creating a PWM.
● p.start(dc)
Start the pwm you have created.
● p.ChangeFrequency(freq)
Change the frequency of pwm.
● p.stop( )
Stop the pwm.
8.7.4 Procedures
1. Build the circuit
2. Program
Python user:
2.1 Edit and save the code with vim or nano.
(https://github.com/UCTRONICS/Arducam_Starter_Kit_Python_Code_for_RPi.git)
2.2 Run the program
$ sudo python 07_breathingLed.py
Now, you should see the LED gradually from dark to brighter, and then from brighter to dark,