Exemple #1
0
void led_wave_off(LED_BLOCK block)
{
    switch(block)
    {
        case LED_PIN_ESC:
            timer3PWMCOff();
            break;
        case LED_PIN_Fx:
            timer3PWMAOff();
            break;
        case LED_PIN_PAD:
            timer0PWMOff();
            
#ifdef KBDMOD_M5            
            if(!isLED3000)
                timer1PWMAOff();
#endif
            break;
        case LED_PIN_BASE:
            timer3PWMBOff();
            break;
        case LED_PIN_WASD:
            timer1PWMCOff();
            break;
        case LED_PIN_ARROW18:
            timer1PWMBOff();
#ifdef KBDMOD_M5            
            if(isLED3000)
                timer1PWMAOff();
#endif
            break;

        case LED_PIN_VESEL:
            timer1PWMAOff();
            break;

        case LED_PIN_ALL:
            timer3PWMCOff();
            timer3PWMAOff();
            timer3PWMBOff();
            timer1PWMCOff();
            timer1PWMBOff();
            timer1PWMAOff();
            timer0PWMOff();
            break;
        default:
            break;
    }
}
Exemple #2
0
void neutral(void)
{
   // both motors coast, disable
   timer1PWMAOff();
   timer1PWMBOff();
}