Boilerplate library to get started with LvGL on STM DISCO F746NG board. Adapted from https://os.mbed.com/users/JohnnyK/code/DISCO-F746NG_MbedOs_LvGL_example/
Dependencies: BSP_DISCO_F746NG
example_main.cpp@1:a23fffad1321, 2020-09-10 (annotated)
- Committer:
- elelthvd
- Date:
- Thu Sep 10 09:24:23 2020 +0000
- Revision:
- 1:a23fffad1321
Add usage for Mbed Thread
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
elelthvd | 1:a23fffad1321 | 1 | /* example_main.cpp */ |
elelthvd | 1:a23fffad1321 | 2 | // |
elelthvd | 1:a23fffad1321 | 3 | //#include "lvgl_f746ng.h" |
elelthvd | 1:a23fffad1321 | 4 | //#include "mbed.h" |
elelthvd | 1:a23fffad1321 | 5 | // |
elelthvd | 1:a23fffad1321 | 6 | //int main() { |
elelthvd | 1:a23fffad1321 | 7 | // printf("main from context %p\n", ThisThread::get_id()); |
elelthvd | 1:a23fffad1321 | 8 | // |
elelthvd | 1:a23fffad1321 | 9 | // lvgl_f746ng_init(); // Initialize the LittlevGL |
elelthvd | 1:a23fffad1321 | 10 | // |
elelthvd | 1:a23fffad1321 | 11 | // while (1) { |
elelthvd | 1:a23fffad1321 | 12 | // thread_sleep_for(100); |
elelthvd | 1:a23fffad1321 | 13 | // } |
elelthvd | 1:a23fffad1321 | 14 | //} |
elelthvd | 1:a23fffad1321 | 15 | // |