st7735.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /****************************************************************************
  2. * drivers/lcd/st7735.h
  3. *
  4. * Licensed to the Apache Software Foundation (ASF) under one or more
  5. * contributor license agreements. See the NOTICE file distributed with
  6. * this work for additional information regarding copyright ownership. The
  7. * ASF licenses this file to you under the Apache License, Version 2.0 (the
  8. * "License"); you may not use this file except in compliance with the
  9. * License. You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  15. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  16. * License for the specific language governing permissions and limitations
  17. * under the License.
  18. *
  19. ****************************************************************************/
  20. #ifndef __DRIVERS_LCD_ST7735_H
  21. #define __DRIVERS_LCD_ST7735_H
  22. /****************************************************************************
  23. * Included Files
  24. ****************************************************************************/
  25. /****************************************************************************
  26. * Pre-processor Definitions
  27. ****************************************************************************/
  28. #define ST7735_NOP 0x00 /* No Operation */
  29. #define ST7735_SWRESET 0x01 /* Software Reset */
  30. #define ST7735_RDDID 0x04 /* Read Display ID */
  31. #define ST7735_RDDST 0x09 /* Read Display Status */
  32. #define ST7735_RDDPM 0x0a /* Read Display Power */
  33. #define ST7735_SLPIN 0x10 /* Sleep In & Booster Off */
  34. #define ST7735_SLPOUT 0x11 /* Sleep Out & Booster On */
  35. #define ST7735_PTLON 0x12 /* Partial Mode On */
  36. #define ST7735_NORON 0x13 /* Partial Mode Off */
  37. #define ST7735_INVOFF 0x20 /* Display Inversion Off */
  38. #define ST7735_INVON 0x21 /* Display Inversion On */
  39. #define ST7735_DISPOFF 0x28 /* Display Off */
  40. #define ST7735_DISPON 0x29 /* Display On */
  41. #define ST7735_CASET 0x2a /* Column Address Set */
  42. #define ST7735_RASET 0x2b /* Row Address Set */
  43. #define ST7735_RAMWR 0x2c /* Memory Write */
  44. #define ST7735_RAMRD 0x2e /* Memory Read */
  45. #define ST7735_IDMOFF 0x38 /* Idle Mode Off */
  46. #define ST7735_IDMON 0x39 /* Idle Mode On */
  47. #define ST7735_COLMOD 0x3a /* Interface Pixel Format */
  48. #endif /* __DRIVERS_LCD_ST7735_H */