Index of /~brennan/files/srxe/SMART-Response-XE-Low_level/avr/libraries/SmartResponseXE/
Name | Last Modified | Size |
---|---|---|
Parent Directory | ||
generateBitmap | ||
examples | ||
SmartResponseXE.h | ||
SmartResponseXE.cpp | ||
LICENSE.md |
Based on 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
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
I have added some modification to Larry's work
// 18/11/2019 fdufnews keyboard map modification
// DEL --> enter (0x0D) (more intuitive position)
// shift + DEL --> backspace (0x08)
// SYM + I --> ;
// SYM + Z --> *
// SYM + X --> /
// square root --> ESC
// 8/12/2019 fdufnews added function to define scroll area
// Set Scroll Area
// inputs:
// TA: top fixed area
// SA: scroll area
// BA: bottom fixed area
// TA + SA + BA = 160
//
// fdufnews 12/2019
//
void SRXEScrollArea(int TA, int SA, int BA)
// SRXELoadBitmapRLE
// load a bitmap in the display RAM
// input
// x, y coordinate of top left in the display
// btmp array containing the bitmap compressed with RLE
//
void SRXELoadBitmapRLE(int x, int y, const uint8_t *btmp)
The bitmap is generated with generateBitmap
Proudly Served by LiteSpeed Web Server at warp-pipe.net Port 443