R. Steve McKown [Wed, 7 Dec 2011 00:16:33 +0000 (17:16 -0700)]
Clock loop start to loop start using Timer 0
Timer 0 is configured to overflow every 32 msec, which is the period we
wait when driving the main control loop. Once a loop iteration has
completed its processing, it calls timer_owait() to wait on the next
overflow.
R. Steve McKown [Tue, 6 Dec 2011 18:36:13 +0000 (11:36 -0700)]
Run at Fosc = 4MHz
* Run on internal oscillator at 4 MHz
* Get rid of the RUNAT32MHz definition
* Adjust PWM for ~ 1 kHz frequency, at Fosc = 4 MHz
* Loop processing <= 12 ms, out of a period of 32 ms
R. Steve McKown [Sun, 4 Dec 2011 22:57:55 +0000 (15:57 -0700)]
Closer to a full featured setup
Rocker switch is power switch.
* Off: lamp is off, PWM off, CPU in sleep
* On (right): Random time to fade between colors, with a random time
staying in each color.
* Off (left): No fade between colors, with a random time in each color.
The push button speeds up fade and incolor times by a factor of 8.
R. Steve McKown [Wed, 30 Nov 2011 23:49:33 +0000 (16:49 -0700)]
Alter PWM in small increments
* Use unsigned char, as unsigned short is a 16-bit value
* Increment and decrement PWM value by 1 instead of 16
* Alternate fixed LED state based on increasing/decreasing PWM duty
* Ignore /funclist file