Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Registers
- #define SED_SYSTEM_SET 0x40
- #define SED_SLEEP_IN 0x53
- #define SED_DISPLAY_ONOFF 0x58
- #define SED_DISPLAY_ON 0x01
- #define SED_DISPLAY_OFF 0x00
- #define SED_DISPLAY_SCROLL 0x44
- #define SED_DISPLAY_CSRFORM 0x5D
- #define SED_DISPLAY_CGRAM_ADR 0x5C
- #define SED_DISPLAY_CSRDIR 0x4C
- #define SED_DISPLAY_CSRDIR_LEFT 0x01
- #define SED_DISPLAY_CSRDIR_RIGHT 0x00
- #define SED_DISPLAY_CSRDIR_UP 0x02
- #define SED_DISPLAY_CSRDIR_DOWN 0x03
- #define SED_DISPLAY_HDOT_SCR 0x5A
- #define SED_DISPLAY_OVLAY 0x5B
- #define SED_DRAW_CSRW 0x46
- #define SED_DRAW_CSRR 0x47
- #define SED_MEM_MWRITE 0x42
- #define SED_MEM_MREAD 0x43
- /* ****************************************************************** */
- //#define SED_SAD1 0x1000
- #define SED_SAD1_SIZE 0x0500 //1280
- #define SED_SAD2_SIZE 0x2000 //8192
- #define SED_SAD3_SIZE 0x0500 //1280
- #define SED_SAD4_SIZE 0x2000 //8192
- // address start offset
- #define SED_SAD1 0x0000
- #define SED_SAD2 0x0500
- #define SED_SAD3 0x2500
- #define SED_SAD4 0x3000
- #define SED_SL 160 // 159 might bee too; Screen block start address - numbers of lines per display
- #define SED_SAD1L (SED_SAD1&0xff)
- #define SED_SAD1H (SED_SAD1>>8)
- #define SED_SAD2L (SED_SAD2&0xff)
- #define SED_SAD2H (SED_SAD2>>8)
- #define SED_SAD3L (SED_SAD3&0xff)
- #define SED_SAD3H (SED_SAD3>>8)
- #define SED_SAD4L (SED_SAD4&0xff)
- #define SED_SAD4H (SED_SAD4>>8)
- /* ****************************************************************** */
- #define SED_WIDTH 400
- #define SED_HEIGHT 160
- #define SED_XTAL 4000000
- #define SED_TEXT1 1
- #define SED_GRAPH1 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement