]> git.donarmstrong.com Git - kiibohd-controller.git/blob - Scan/STLcd/capabilities.kll
Adding 16-bit brightness control to LCD backlight
[kiibohd-controller.git] / Scan / STLcd / capabilities.kll
1 Name = STLcdCapabilities;
2 Version = 0.1;
3 Author = "HaaTa (Jacob Alexander) 2015";
4 KLL = 0.3c;
5
6 # Modified Date
7 Date = 2015-08-01;
8
9 # Defines available to the STLcd sub-module
10
11 # PWM Prescalar
12 # In general this can be left alone
13 # A higher prescalar should be lower power usage (less switching)
14 # However, flickering may be noticeable.
15 #
16 # Here's a calculation table valid at a 72 MHz system clock
17 # Prescalars range from 0 to 7 (1 to 128)
18 # 0 -      72 MHz - Highest power usage/best result
19 # 1 -      36 MHz
20 # 2 -      18 MHz
21 # 3 -       9 MHz - Slightly visible flicker (peripheral vision)
22 # 4 -   4 500 kHz - Visible flickering
23 # 5 -   2 250 kHz
24 # 6 -   1 125 kHz
25 # 7 - 562 500  Hz
26 # Defaulting to no prescalar, looks the best
27 STLcdBacklightPrescalar => STLcdBacklightPrescalar_define;
28 STLcdBacklightPrescalar = 0;
29
30 # Default Backlight Channel Brightness
31 # There are 3 channels, RGB
32 # In order to get other colors you must mix the 3 colors
33 # Each channel is a 16-bit register (65536 levels)
34 # Technically, this means, the backlight is a 48-bit RGB pixel
35 # In practice, it may be difficult to get color consistency at times if too bright or too dim
36 STLcdBacklightRed   => STLcdBacklightRed_define;
37 STLcdBacklightGreen => STLcdBacklightGreen_define;
38 STLcdBacklightBlue  => STLcdBacklightBlue_define;
39
40 # Defaults to 6% brightness, white
41 STLcdBacklightRed   = 0xFFF;
42 STLcdBacklightGreen = 0xFFF;
43 STLcdBacklightBlue  = 0xFFF;
44