forked from bitbank2/SmartResponseXE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
31 lines (23 loc) · 1.33 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
gc986 added:
1) SRXERectangle1 - function for drawing reatangle with size 384x160. Minimal width = 1pix. You can use actual screen size.
2) SRXEVerticalLine1 - function for drawing horizontal line with minimal width 1pix. You can use actual screen size.
>>>>>>>>>>
Larry's SMART Response XE support library
Features:
--------
1) LCD initialization (4-gray levels) and support to draw 4 sizes of characters and outline+filled rectangles
2) Functions to erase/write/read the external 128K byte SPI FLASH memory
3) Fast GPIO access with simplified pin numbering (e.g. PORTD bit3 = pin 0xD3)
4) Scan the keyboard and return pressed keys translated with the shift/sym keys
Installation:
------------
1) Download the library: https://github.com/bitbank2/SmartResponseXE/archive/master.zip
2) (In the Arduino IDE) Sketch > Include Library > Add .ZIP Library > select the downloaded file > Open
2) (In the VSCode PlatformIO) copy folder to <folder of Your project>/lib
Getting Started:
---------------
The first thing to do is initialize and clear the LCD. The pin numbers for the SRXE are:
// CS, D/C, RESET
SRXEInit(0xe7, 0xd6, 0xa2); // initialize display
Next, you can draw some text or rectangles. The color can be 0-3 (0=off, 3=fully on)
SRXEWriteString(0,120,"Hello World!", FONT_LARGE, 3, 0); // draw large black text at x=0,y=120, fg=3, bg=0