led oops
This commit is contained in:
		
							parent
							
								
									64dc4784e4
								
							
						
					
					
						commit
						a538f71e41
					
				
					 4 changed files with 10 additions and 27 deletions
				
			
		| 
						 | 
				
			
			@ -78,7 +78,7 @@ const uint16_t PROGMEM fn_actions[] = {
 | 
			
		|||
};
 | 
			
		||||
 | 
			
		||||
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
 | 
			
		||||
{
 | 
			
		||||
{ 
 | 
			
		||||
    keyevent_t event = record->event;
 | 
			
		||||
    switch (id) {
 | 
			
		||||
        case M_Q0:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -22,13 +22,13 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		|||
 | 
			
		||||
void led_set(uint8_t usb_led)
 | 
			
		||||
{
 | 
			
		||||
    if (usb_led & (1<<USB_LED_FUNCTION)) {
 | 
			
		||||
        // Output high.
 | 
			
		||||
        DDRF |= (1<<0);
 | 
			
		||||
        PORTF |= (1<<0);
 | 
			
		||||
    } else {
 | 
			
		||||
        // Output low.
 | 
			
		||||
        DDRF &= ~(1<<0);
 | 
			
		||||
        PORTF &= ~(1<<0);
 | 
			
		||||
    }
 | 
			
		||||
    // if (usb_led & (1<<USB_LED_FUNCTION)) {
 | 
			
		||||
    //     // Output high.
 | 
			
		||||
    //     DDRF |= (1<<0);
 | 
			
		||||
    //     PORTF |= (1<<0);
 | 
			
		||||
    // } else {
 | 
			
		||||
    //     // Output low.
 | 
			
		||||
    //     DDRF &= ~(1<<0);
 | 
			
		||||
    //     PORTF &= ~(1<<0);
 | 
			
		||||
    // }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue