2015-08-02 04:59:43 +00:00
|
|
|
Name = STLcdCapabilities;
|
|
|
|
Version = 0.1;
|
|
|
|
Author = "HaaTa (Jacob Alexander) 2015";
|
|
|
|
KLL = 0.3c;
|
|
|
|
|
|
|
|
# Modified Date
|
|
|
|
Date = 2015-08-01;
|
|
|
|
|
|
|
|
# Defines available to the STLcd sub-module
|
|
|
|
|
|
|
|
# PWM Prescalar
|
|
|
|
# In general this can be left alone
|
|
|
|
# A higher prescalar should be lower power usage (less switching)
|
|
|
|
# However, flickering may be noticeable.
|
|
|
|
#
|
|
|
|
# Here's a calculation table valid at a 72 MHz system clock
|
|
|
|
# Prescalars range from 0 to 7 (1 to 128)
|
2015-08-02 05:47:34 +00:00
|
|
|
|
|
|
|
# Base FTM clock selection (72 MHz system clock)
|
2015-08-02 07:00:11 +00:00
|
|
|
# @ 0xFFFF period, 72 MHz / (0xFFFF * 2) = Actual period
|
2015-08-02 05:47:34 +00:00
|
|
|
# Higher pre-scalar will use the most power (also look the best)
|
|
|
|
# Pre-scalar calculations
|
|
|
|
# 0 - 72 MHz -> 549 Hz
|
|
|
|
# 1 - 36 MHz -> 275 Hz
|
|
|
|
# 2 - 18 MHz -> 137 Hz
|
|
|
|
# 3 - 9 MHz -> 69 Hz (Slightly visible flicker)
|
|
|
|
# 4 - 4 500 kHz -> 34 Hz (Visible flickering)
|
|
|
|
# 5 - 2 250 kHz -> 17 Hz
|
|
|
|
# 6 - 1 125 kHz -> 9 Hz
|
|
|
|
# 7 - 562 500 Hz -> 4 Hz
|
2015-08-02 04:59:43 +00:00
|
|
|
STLcdBacklightPrescalar => STLcdBacklightPrescalar_define;
|
|
|
|
STLcdBacklightPrescalar = 0;
|
|
|
|
|
|
|
|
# Default Backlight Channel Brightness
|
|
|
|
# There are 3 channels, RGB
|
|
|
|
# In order to get other colors you must mix the 3 colors
|
|
|
|
# Each channel is a 16-bit register (65536 levels)
|
|
|
|
# Technically, this means, the backlight is a 48-bit RGB pixel
|
|
|
|
# In practice, it may be difficult to get color consistency at times if too bright or too dim
|
|
|
|
STLcdBacklightRed => STLcdBacklightRed_define;
|
|
|
|
STLcdBacklightGreen => STLcdBacklightGreen_define;
|
|
|
|
STLcdBacklightBlue => STLcdBacklightBlue_define;
|
|
|
|
|
|
|
|
# Defaults to 6% brightness, white
|
2015-08-02 05:47:34 +00:00
|
|
|
STLcdBacklightRed = 0x0FFF;
|
|
|
|
STLcdBacklightGreen = 0x0FFF;
|
|
|
|
STLcdBacklightBlue = 0x0FFF;
|
2015-08-02 04:59:43 +00:00
|
|
|
|
2015-08-02 06:13:19 +00:00
|
|
|
|
|
|
|
# Default LCD Image
|
|
|
|
#
|
|
|
|
# The easiest way to generate this data is using the bitmap2Struct.py script in this folder
|
|
|
|
# It will output the necessary uint8_t array to set here
|
|
|
|
#
|
|
|
|
STLcdDefaultImage => STLcdDefaultImage_define;
|
|
|
|
|
|
|
|
# Only the data portion is required
|
|
|
|
# Must be on a single line
|
2015-08-02 20:43:28 +00:00
|
|
|
STLcdDefaultImage = "
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x03, 0x03, 0x03, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x03, 0x03, 0x03, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
|
|
";
|
2015-08-02 06:13:19 +00:00
|
|
|
|
2015-08-18 08:10:44 +00:00
|
|
|
|
|
|
|
# Layer Status Display
|
|
|
|
|
|
|
|
LCDLayerDisplay => LCD_layerStack_capability();
|
|
|
|
|
|
|
|
|
|
|
|
# LCD Module Enabled
|
|
|
|
|
|
|
|
LCDEnabled => LCDEnabled_define;
|
|
|
|
LCDEnabled = 1;
|
|
|
|
|