diff --git a/avr/modules/lcd2/ili9341/backlight.asm b/avr/modules/lcd2/ili9341/backlight.asm new file mode 100644 index 0000000..d89c78f --- /dev/null +++ b/avr/modules/lcd2/ili9341/backlight.asm @@ -0,0 +1,57 @@ +; *************************************************************************** +; copyright : (C) 2026 by Martin Preuss +; email : martin@libchipcard.de +; +; *************************************************************************** +; * This file is part of the project "AqHome". * +; * Please see toplevel file COPYING of that project for license details. * +; *************************************************************************** + +#ifndef AQH_AVR_ILI9341_BACKLIGHT_ASM +#define AQH_AVR_ILI9341_BACKLIGHT_ASM + +; doesn't work with my displays (seems to be binary: either on or off) + +; +; Uses timer 1, set to Fast PWM mode, prescaler 8 +; + +Display_BacklightInit: + sbi ILI9341_BACKLIGHT_DDR, ILI9341_BACKLIGHT_PIN + + ldi r16, (1<