|
H753_CPP_SPI_BT817_EVE_02 1.0
STM32H753 draws its own touch screens on a Bridgetek BT817 (ME817EV + DP-0701-01A) over SPI with the STM32_Bridgetek_EVE_API library: a two-page widget tour
|
BT817 "widget tour": page 1 has a button, a toggle with an LED and a slider that drives a gauge and a progress bar; page 2 has a keypad, an analog clock and a dial. All drawn in code with the Bridgetek EVE library (no EVE Screen Designer). More...
Go to the source code of this file.
Functions | |
| void | widgetTourInit (void) |
| Starts the BT817 and prepares the widget tour. | |
| void | widgetTourRun (void) |
| Runs the widget tour forever: read touch, redraw, short pause. | |
BT817 "widget tour": page 1 has a button, a toggle with an LED and a slider that drives a gauge and a progress bar; page 2 has a keypad, an analog clock and a dial. All drawn in code with the Bridgetek EVE library (no EVE Screen Designer).
Two pages, switched with "Next >" and "< Back". Screen size comes from EVE_DISP_WIDTH / EVE_DISP_HEIGHT (800 x 480 for the DP-0701-01A panel). Touch input uses EVE tags:
Definition in file widgetTour.h.
| void widgetTourInit | ( | void | ) |
Starts the BT817 and prepares the widget tour.
Initialises the EVE library (BT817 reset, clocks, panel timing), runs the touch calibration and registers the slider and dial trackers. Stops in Error_Handler() with a message if the BT817 is not found.
Definition at line 465 of file widgetTour.c.
References calibrateTouch(), and registerTrackers().
Referenced by main().
| void widgetTourRun | ( | void | ) |
Runs the widget tour forever: read touch, redraw, short pause.
Does not return.
Definition at line 482 of file widgetTour.c.
References drawScreen(), FRAME_DELAY_MS, and readTouch().
Referenced by main().