Skip to content
Snippets Groups Projects
Select Git revision
  • 71be1ddeb128e6068d2f1df605ec9c8c10f67091
  • master default protected
  • schneider/ir
  • rahix/user-space-ctx
  • schneider/iaq-python
  • schneider/ble-mini-demo
  • schneider/ble-ecg-stream-visu
  • schneider/mp-exception-print
  • schneider/sleep-display
  • schneider/deepsleep4
  • schneider/deepsleep2
  • schneider/deepsleep
  • schneider/ble-central
  • rahix/bluetooth-app-favorite
  • schneider/v1.17-changelog
  • schneider/ancs
  • schneider/png
  • schneider/freertos-list-debug
  • schneider/212-reset-hardware-when-entering-repl
  • schneider/bonding-fail-if-full
  • schneider/ble-fixes-2020-3
  • v1.18
  • v1.17
  • v1.16
  • v1.15
  • v1.14
  • v1.13
  • v1.12
  • v1.11
  • v1.10
  • v1.9
  • v1.8
  • v1.7
  • v1.6
  • v1.5
  • v1.4
  • v1.3
  • v1.2
  • v1.1
  • v1.0
  • release-1
41 results

LCD_Driver.h

Blame
  • user avatar
    schneider authored
    Timer frequency is now held close to a value which can be achieved both
    with a 48 MHz PCLK (96 MHz system clock) and a 7.5 MHz PCLK (15 MHz
    system clock).
    
    If even lower PCLKs should be supported, the frequency of the timer has
    to be changed as well.
    47b02df1
    History
    LCD_Driver.h 2.18 KiB
    /*****************************************************************************
    * | File      	:		LCD_Driver.h
    * | Author      :   Waveshare team
    * | Function    :   Electronic paper driver
    * | Info        :
    *----------------
    * |	This version:   V1.0
    * | Date        :   2018-11-18
    * | Info        :   
    #
    # Permission is hereby granted, free of charge, to any person obtaining a copy
    # of this software and associated documnetation 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
    # furished 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 OR 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 __LCD_DRIVER_H
    #define __LCD_DRIVER_H
    
    #include "DEV_Config.h"
    #include "framebuffer.h"
    
    #define LCD_WIDTH   160 //LCD width
    #define LCD_HEIGHT  80 //LCD height
    
    
    void LCD_WriteData_Byte(UBYTE da); 
    void LCD_WriteData_Word(UWORD da);
    void LCD_WriteReg(UBYTE da);
    
    void LCD_SetCursor(UWORD x1, UWORD y1, UWORD x2,UWORD y2);
    void LCD_SetUWORD(UWORD x, UWORD y, UWORD Color);
    
    void LCD_Init(void);
    void LCD_SetBacklight(UWORD Value);
    void LCD_UpdateBacklightClock(void);
    void LCD_Clear(UWORD Color);
    void LCD_ClearWindow(UWORD Xstart, UWORD Ystart, UWORD Xend, UWORD Yend, UWORD UWORD);
    uint8_t *LCD_Framebuffer(void);
    
    void LCD_Set(uint8_t *data, int len);
    void LCD_Update(void);
    
    struct framebuffer *LCD_framebuffer(void);
    
    #endif