/* lvglDriver for Mbed * Copyright (c) 2019 Johannes Stratmann * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef __LVGLDispDriver_DISCO_F769NI_h__ #define __LVGLDispDriver_DISCO_F769NI_h__ #include "LVGLDispDriverBase.h" #include "LCD_DISCO_F769NI.h" class LVGLDispDISCO_F769NI : public LVGLDispDriver { public: LVGLDispDISCO_F769NI(uint32_t nBufferRows = 10); private: LCD_DISCO_F769NI _lcd; uint32_t _nBufferRows; void init(); static void disp_flush(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_color_t * color_p); void controllerInit(); lv_disp_buf_t _disp_buf_1; lv_color_t *_buf1_1; // display working buffer }; #endif