Subversion Repositories group.NITPanels

Rev

Rev 20 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20 Rev 21
Line 139... Line 139...
139
 
139
 
140
	setLeds();						// Set default LED status
140
	setLeds();						// Set default LED status
141
 
141
 
142
	analogInit();					// Init the ADC for PC0 (ADC0)
142
	analogInit();					// Init the ADC for PC0 (ADC0)
143
 
143
 
-
 
144
	/*
-
 
145
	 * @TODO: PowerSave - Only read ADC every 100ms
-
 
146
	 * @TODO: PowerSave - Only set leds on change
-
 
147
	 * @TODO: PowerSave - Sleep for a few us each cycle
-
 
148
	 */
144
    for(;;){
149
    for(;;){
145
        wdt_reset();
150
        wdt_reset();
146
        usbPoll();					// Poll USB port (Every ~10ms!)
151
        usbPoll();					// Poll USB port (Every ~10ms!)
147
        currKeys = getKey();		// Check the button presses
152
        currKeys = getKey();		// Check the button presses
148
        analogPin = analogRead(0);	// Read the pot (VolControl)
153
        analogPin = analogRead(0);	// Read the pot (VolControl)