* drivers/lcd/st7735.h
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/
#ifndef __DRIVERS_LCD_ST7735_H
#define __DRIVERS_LCD_ST7735_H
* Included Files
****************************************************************************/
* Pre-processor Definitions
****************************************************************************/
#define ST7735_NOP 0x00
#define ST7735_SWRESET 0x01
#define ST7735_RDDID 0x04
#define ST7735_RDDST 0x09
#define ST7735_RDDPM 0x0a
#define ST7735_SLPIN 0x10
#define ST7735_SLPOUT 0x11
#define ST7735_PTLON 0x12
#define ST7735_NORON 0x13
#define ST7735_INVOFF 0x20
#define ST7735_INVON 0x21
#define ST7735_DISPOFF 0x28
#define ST7735_DISPON 0x29
#define ST7735_CASET 0x2a
#define ST7735_RASET 0x2b
#define ST7735_RAMWR 0x2c
#define ST7735_RAMRD 0x2e
#define ST7735_MADCTL 0x36
#define ST7735_MADCTL_MY (1<<7)
#define ST7735_MADCTL_MX (1<<6)
#define ST7735_MADCTL_MV (1<<5)
#define ST7735_MADCTL_ML (1<<4)
#define ST7735_MADCTL_BGR (1<<3)
#define ST7735_MADCTL_MH (1<<2)
#define ST7735_IDMOFF 0x38
#define ST7735_IDMON 0x39
#define ST7735_COLMOD 0x3a
FAR struct lcd_dev_s *st7735_lcdinitialize(FAR struct spi_dev_s *spi);
#endif