|
Re: Mapping Buttons to PWMs
or even (if you want to be fancy)
pwm03 = p1_sw_trig ? 200 : 127;
as a general rule of thumb, if you're working from the default code without massive modifications, anything dealing with user control (such as button mapping) will go in Default_Routine().
|