Beispiel #1
0
bool _backlight_init()
{
    /* GPIO B1 controls backlight */
    GPIOB_DIR |= (1 << 1);
    ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x91);
    GPIOB_PIN(1) = (1 << 1);
    
    return true;
}
Beispiel #2
0
void _backlight_off(void)
{
    lcd_enable(false);
    ascodec_write(0x25, ascodec_read(0x25) & ~2);    /* lcd power */
    ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x0);
}
void _backlight_off(void)
{
    lcd_enable(false);
    ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x0);
}
Beispiel #4
0
void _backlight_on(void)
{
    ascodec_write(0x25, ascodec_read(0x25) | 2);    /* lcd power */
    ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x90);
    lcd_enable(true);
}
void _backlight_on(void)
{
    ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x90);
    lcd_enable(true);
}