博文

目前显示的是标签为“MAX78000FTHR”的博文

How to port LVGL to MAX78000?

图片
 Here’s a practical, battle-tested path to get LVGL running on MAX78000 / MAX78000FTHR (Cortex-M4F @ 100 MHz). 0) What you need MSDK (Maxim/ADI SDK) installed + board support for MAX78000 (projects build with makefile/VS Code or Eclipse).  MAX78000 User Guide / datasheet handy (clocks, SPI, DMA, cache).  A SPI TFT (e.g., ILI9341 240×320 or ST7789 240×240) and—if it’s a touch panel—an I²C/SPI touch controller. Examples/projects using MAX78000 with SPI TFTs exist and are a good reference.  LVGL docs (use v9 porting guide if you’re on LVGL 9.x).  1) Create a minimal LVGL “port” layer LVGL needs 3 things from your MCU side: Ticks – call lv_tick_inc(ms) periodically Handler – call lv_timer_handler() in your main loop (or a 1–5 ms task) Drivers – display flush_cb (+ optional input device) 1.1 Ticks Use a hardware timer or SysTick at 1 kHz : // in 1ms timer ISR void SysTick_Handler ( void ) { lv_tick_inc( 1 ); } Conf...