1 Name = STLcdCapabilities;
3 Author = "HaaTa (Jacob Alexander) 2015";
9 # Defines available to the STLcd sub-module
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.
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
21 # 3 - 9 MHz - Slightly visible flicker (peripheral vision)
22 # 4 - 4 500 kHz - Visible flickering
26 # Defaulting to no prescalar, looks the best
27 STLcdBacklightPrescalar => STLcdBacklightPrescalar_define;
28 STLcdBacklightPrescalar = 0;
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;
40 # Defaults to 6% brightness, white
41 STLcdBacklightRed = 0xFFF;
42 STLcdBacklightGreen = 0xFFF;
43 STLcdBacklightBlue = 0xFFF;