Category Archives: code

Simple PWM in PicBasic Pro

This is an example of pulsewidth modulation for the PIC. The value received from an analog input is used to dim an LED, using the PWM command. The LED is on RD2, and the analog in is on RA0. The … Continue reading

Posted in code, PicBasic Pro | 2 Comments