![]() |
MSPM0_ValvanoWare
1.0
ECE445L starter code
|
LCD on MKII boosterpack. More...
Go to the source code of this file.
Macros | |
| #define | LCD_BLACK 0x0000 |
| The following constants are possible colors for the LCD in RGB format. | |
| #define | LCD_BLUE 0x001F |
| #define | LCD_DARKBLUE 0x34BF |
| #define | LCD_RED 0xF800 |
| #define | LCD_GREEN 0x07E0 |
| #define | LCD_LIGHTGREEN 0x07EF |
| #define | LCD_ORANGE 0xFD60 |
| #define | LCD_CYAN 0x07FF |
| #define | LCD_MAGENTA 0xF81F |
| #define | LCD_YELLOW 0xFFE0 |
| #define | LCD_WHITE 0xFFFF |
| #define | LCD_GREY 0x8410 |
| #define | STANDARD_GALACTIC_ALPHABET 0 |
| Set STANDARD_GALACTIC_ALPHABET to 1 for Commander Keen alphabet. | |
Functions | |
| void | LCD_Init (void) |
| Initialize MKII LCD. More... | |
| void | LCD_DrawPixel (int16_t x, int16_t y, uint16_t color) |
| Color one pixel. More... | |
| void | LCD_DrawFastVLine (int16_t x, int16_t y, int16_t h, uint16_t color) |
| Draw a vertical line. More... | |
| void | LCD_DrawFastHLine (int16_t x, int16_t y, int16_t w, uint16_t color) |
| Draw a horizontal line. More... | |
| void | LCD_FillScreen (uint16_t color) |
| Fill the screen. More... | |
| void | LCD_FillRect (int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color) |
| Draw a filled rectangle. More... | |
| uint16_t | LCD_Color565 (uint8_t r, uint8_t g, uint8_t b) |
| RGB to color creation. More... | |
| uint16_t | LCD_SwapColor (uint16_t x) |
| Swaps red and blue. More... | |
| void | LCD_DrawBitmap (int16_t x, int16_t y, const uint16_t *image, int16_t w, int16_t h) |
| Displays a BMP image. More... | |
| void | LCD_DrawCharS (int16_t x, int16_t y, char c, int16_t textColor, int16_t bgColor, uint8_t size) |
| Draw a character. More... | |
| void | LCD_DrawChar (int16_t x, int16_t y, char c, int16_t textColor, int16_t bgColor, uint8_t size) |
| Draw a character. More... | |
| uint32_t | LCD_DrawString (uint16_t x, uint16_t y, char *pt, int16_t textColor) |
| Draw a string. More... | |
| void | LCD_SetCursor (uint32_t newX, uint32_t newY) |
| Move the cursor. More... | |
| void | LCD_OutUDec (uint32_t n, int16_t textColor) |
| Output an unsigned decimal. More... | |
| void | LCD_OutUDec4 (uint32_t n, int16_t textColor) |
| Output a 4-digit unsigned decimal. More... | |
| void | LCD_OutUDec5 (uint32_t n, int16_t textColor) |
| Output a 5-digit unsigned decimal. More... | |
| void | LCD_OutUFix2_1 (uint32_t n, int16_t textColor) |
| Output a 2-digit fixed-point decimal. More... | |
| void | LCD_OutUHex2 (uint32_t n, int16_t textColor) |
| Output a 2-digit hexadecimal number. More... | |
| void | LCD_OutChar (char ch) |
| Output a character. More... | |
| void | LCD_OutString (char *ptr) |
| Output a string. More... | |
| void | LCD_SetTextColor (uint16_t color) |
| sets the text color More... | |
| void | LCD_Drawaxes (uint16_t axisColor, uint16_t bgColor, char *xLabel, char *yLabel1, uint16_t label1Color, char *yLabel2, uint16_t label2Color, int32_t ymax, int32_t ymin) |
| Initializes a plot. More... | |
| void | LCD_PlotPoint (int32_t data1, uint16_t color1) |
| Plot one point. More... | |
| void | LCD_PlotIncrement (void) |
| Moves the plot cursor in time. More... | |
LCD on MKII boosterpack.
Software driver functions for joystick on MKII boosterpack
https://www.ti.com/tool/BOOSTXL-EDUMKII
Runs with an Educational BoosterPack MKII (BOOSTXL-EDUMKII). This file contains the function prototypes for the software interface to the MKII BoosterPack. This board support package (BSP) is an abstraction layer, forming a bridge between the low-level hardware and the high-level software. The Crystalfontz CFAF128128B-0145T color 128x128-pixel TFT LCD supports display updates up to 20 frames per second (FPS) while only requiring a few lines to control the TFT LCD module through the SPI interface. This module has a color depth of 262K colors and a contrast ratio of 350. The reference designator for the color LCD is LCD1. More information on the color LCD can be found at
https://www.crystalfontz.com