|
Re: Pwm and pot
Actually, you'd have to do something more like:
Code:
pwm01 = Get_Analog_Value(rc_ana_in01) >> 2;
The controller doesn't sample the analog inputs until you call Get_Analog_Value, and the shift is to convert the 10-bit analog input to the 8-bit PWM output.
__________________
Shift to the left, shift to the right!
Pop up, push down, byte, byte, byte!
|