Skip to content

Instantly share code, notes, and snippets.

@khwas
Created February 26, 2014 12:19
Show Gist options
  • Save khwas/9228544 to your computer and use it in GitHub Desktop.
Save khwas/9228544 to your computer and use it in GitHub Desktop.
XMOS settings file for LCD screen S92048AAA. Put it next to other lcd_defines_XXXXX.h files and add reference to to lcd_conf.h
#ifndef __LCD_DEFINES_H__
#define __LCD_DEFINES_H__
#include "lcd_conf.h"
#include "lcd_defines_AT043TN24V7.h"
#include "lcd_defines_K430WQAV4F.h"
#include "lcd_defines_K70DWN0V1F.h"
#include "lcd_defines_S92048AAA.h"
...
#ifndef __LCD_DEFINES_S92048AAA_H__
#define __LCD_DEFINES_S92048AAA_H__
#include "lcd_conf.h"
#define LCD_WIDTH_S92048AAA (800)
#define LCD_HEIGHT_S92048AAA (480)
#define LCD_BITS_PER_PIXEL_S92048AAA (16)
#define LCD_HOR_FRONT_PORCH_S92048AAA (42)
#define LCD_HOR_BACK_PORCH_S92048AAA (32)
#define LCD_VERT_FRONT_PORCH_S92048AAA (8)
#define LCD_VERT_BACK_PORCH_S92048AAA (16)
#define LCD_HOR_PULSE_WIDTH_S92048AAA (7)
#define LCD_VERT_PULSE_WIDTH_S92048AAA (16)
#define LCD_FREQ_DIVIDEND_S92048AAA (83)
#define LCD_FREQ_DIVISOR_S92048AAA (10)
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment