![]() Generate color codes from the values of r, g, and b. Uint16_t color24to16(uint32_t rgb888) Parameter Uint8_t color16to8(uint16_t rgb565) ParameterĬonvert color code from RGB888(24bit) to RGB565(16bit). ![]() ![]() Uint32_t color16to24(uint16_t rgb565) ParameterĬonvert color code from RGB565(16bit) to RGB332(8bit). Void clearDisplay(uint32_t color = 0) ParameterĬonvert color code from RGB565(16bit) to RGB888(24bit). If an argument is specified, the display is initialized with that color. put your main code here, to run repeatedly:Ĭlear the display. calibrateTouch(touch_point, BLACK, YELLOW) Void calibrateTouch(uint16_t* parameters, const T &color_fg, const T &color_bg) Parameterĭisplay. You can record this value in flash, etc., and useĪt the next startup to omit manual calibration. Pass a pointer to uint16_t as the first argument to obtain a calibration value that can be used in setTouchCalibrate.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |