You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
637 B
C
37 lines
637 B
C
#ifndef _DISPLAY_H_
|
|
#define _DISPLAY_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
#define DISPLAY_WIDTH 128
|
|
#define DISPLAY_HEIGHT 64
|
|
|
|
#define GPIO_R1 25
|
|
#define GPIO_G1 26
|
|
#define GPIO_B1 27
|
|
#define GPIO_R2 14
|
|
#define GPIO_G2 12
|
|
#define GPIO_B2 13
|
|
|
|
#define GPIO_CLK 16
|
|
#define GPIO_OE 15
|
|
#define GPIO_LAT 4
|
|
|
|
#define GPIO_A 23
|
|
#define GPIO_B 19
|
|
#define GPIO_C 5
|
|
#define GPIO_D 17
|
|
#define GPIO_E 18
|
|
|
|
|
|
extern uint8_t fb[64][128][3];
|
|
|
|
void write_bits(uint8_t r1, uint8_t g1, uint8_t b1, uint8_t r2, uint8_t g2, uint8_t b2);
|
|
void write_address(uint8_t addr);
|
|
void latch(void);
|
|
void clock(void);
|
|
void display_init(void);
|
|
void display_cycle(void* arg);
|
|
|
|
#endif
|