Digole Serial Display Adapter Manual
Digole Serial Display Adapter Manual
• Save lots of the I/O resources: these products only need 1 to 3 I/O pins from your master controller that
depends on the communication type you want.
• Easy to use: the commands sending to products are easy to remember and understand.
On Graphic serial products:
• Save huge memory space to store font and start screen on graphic display: in graphic product, there are 7
preloaded fonts ready for your application, and also have 16KB memory space for your user fonts, once you
uploaded the start screen or user fonts, it will stored in products.
• Using user fonts function, you can display any graphs or characters in any language
• These products already integrated graphic functions such as: draw line/rectangle/circle/image, send few bytes
of instruction to products, it will do it for you, that also save your lots of code space
• You can display contents in 4 different directions: 0º, 90º, 180º, 270º(clockwise) on same screen, the product
will map the coordinate accordingly.
FEATURES:
• Communication mode: UART/I2C/SPI, • Low power consumption: less than 4mA (for
detect your setting automatically adapter only, completed module may higher
• Receiving buffer: 64/256 bytes depends on the backlight power consumption)
• Work with all microcontroller and
• Simple command sets, easy to remember
microprocessor • Simple graphic engine integrated (Graphic
• Communication signal can work on 3.3V Products)
and 5.0V TTL • 7 preloaded fonts, font’s data structure full
• Default setting: UART baud 9600bps, compatible with U8Glib(Graphic Products)
I2C 0x27 address • UART baud (bps): 300, 1200, 2400, 4800, 9600,
14400, 19200, 28800, 38400, 57600, 115200
1 of 9
! Digital Solutions Serial Character/Graphic LCD/OLED User Manual
!
!
Figure-1
!
2 of 9
! Digital Solutions Serial Character/Graphic LCD/OLED User Manual
!
! !
Meduim Size (7x4.6cm) 12864 Serial LCD+Backlight Small size(4.6x3cm) 12864 Serial LCD+Backlight
!
1.8” 160x128 True Color Serial OLED Module
0.96” 96x64 65K Color Serial OLED Module
3 of 9
! Digital Solutions Serial Character/Graphic LCD/OLED User Manual
!
!
What are adapters used for?
Character adapters can work with most 1602,1604,2002,2004 and 4002 character LCDs.
The Universal Graphic adapter work with 128 x 64 dots LCD, which LCD controller is ST7920 or KS0108 or
ST7565.
We didn’t sell adapters with a LCD due to you might already have LCDs or can easy to get one at low price from
somewhere, so this way gives you more flexible options on your project.
There are 3 different communication modes on all products: UART, I2C and SPI, what you need is just use solder to
short the I2C/SPI jumper on adapter and make it works at I2C or SPI, if both jumpers are open, it works at UART,
Protocols:
• I2C: Slave Mode, 7-bit address, default address is Hex:27, change able. This mode may give you a headache
due to more signal options in I2C, but we make it works as standard, you just need setup your I2C on master
controller as Standard Master Mode.
• SPI: 8-bits, MSB first, data on raise edge of SCK sampled; this is Standard setting on SPI too.
4 of 9
! Digital Solutions Serial Character/Graphic LCD/OLED User Manual
!
!
Character/Graphic Display Shared Command: (B-one byte, B…-Bytes)
enableCursor();
CSB set CurSor on/off
disableCursor();
B=0 off, B=1 on √ √ √
unavailable on
backLightOn();
BLB Set Back Light ON/OFF, B=0 or 1, 0 off, 1 on
backLightOff();
Character Adapter √ √ √
V1.x
When adapter
Set UART Baud, B are ASCII characters, the
power up or reset,
available values are: “300”, “1200”, “2400”,”4800”, Set BAUD when initial
SBB…
“9600”, “14400”, “19200”, “28800”, “38400”, the class
always start with √ √ √
9600bps Baud
“57600”,”115200”
rate
The last 4 B
should
Set Text Columns and Rows, this command will
STCRBB be“\x80\xC0\x94\
BBBB
config your LCD if other than 1602 and the chip is setLCDColRow(20,4);
xD4”, it mapped
√
other than KS0066U/F / HD44780
the starting RAM
address on LCD
print(string);
The print function
display TexT string, the text will wraped in next row print(int);
in Arduino, can
if the current row fulled, the Text Postion will be print(char);
TTB…
changed to the last char displyed, this command print(float);
also print other √ √ √
data and format
ended by 0x00 or 0x0D received print(double);
the out put.
drawStr(x,y,string);
!
!
5 of 9
! Digital Solutions Serial Character/Graphic LCD/OLED User Manual
!
!
Graph Display Command: (B-one byte, B…-Bytes) for mono and color serial Graphic display only
Mono
Color
Command Description Arduino lib function note
Graphic Graphic
Display
image width, 4
DIMBBB Each byte present 8 pixels, if the image width not drawBitmap(x,y,width,
BB… divide 8, the last byte of a row only contain few height,*data);
√ √
pixels, eg. For width of 9 to 16, you need 2 bytes for
a row
setRotation(0);
The setRotation();
undoRotation();
Send graphic fuction Direction, the value of B is 0 to will accept 0 to 3
SDB
3, represent0 to 270 degree respectively.
setRot90();
represent0 to 270
√ √
setRot180();
degree respectively
setRot270();
Set display ConTrast, only for some models, Only for Only for ST7565
CTB
ST7565 LCD Controller
setContrast(30);
LCD Controller
√
In order to
compatible with u8g,
Draw a Filled Rectangle, 4 B are: X,Y(left top), X,Y drawBox(x,y,width,hei
FRBBBB
(right bottom) ght);
drawBox() in √ √
Arduino use width
and height
drawFrame () in
Draw a Rectangle, 4 B are: X,Y(left top), X,Y (right drawFrame(x,y,width,h
DRBBBB
bottom) eight);
Arduino use width √ √
and height
drawHLine()-
drawLine(x,y,x1,y1);
horizontal line
LNBBBB Draw a Line from (x,y) to (x1,y1), 4 B are: x,y,x1,y1 drawHLine(x,y,width);
drawVLine()-
√ √
drawVLine(x,y,height);
veritcal line
6 of 9
! Digital Solutions Serial Character/Graphic LCD/OLED User Manual
!
0 and 1 for black
Set Color for following display, this command affect
white screen
SCB all following drawing command, such as: text, line, setColor(1);
0 to 255 for color
√ √
circle, pixel, rectangle…
screen
Set User
SUFBBB uploadUserFont(1,143
B…
upload, 2nd
4,*data);
√ √
the higher byte of data length, following by data
Send a Byte to output head on board, the current The output head are
DOUTB
driving ability for each pin is: 25mA (Sink/Source)
digitalOutput(0x1F);
vary from adapters
√ √
Set Line Pattern when drawing line, only for new Old version not
SLPB version firmware later than Jan. 2013.
setLinePattern(pattern); support this fucntion √ √
eg. B=0xAA is dot line, B=0xFA is dash line
7 of 9
! Digital Solutions Serial Character/Graphic LCD/OLED User Manual
!
Special Command: (B-one byte, B…-Bytes)
8 of 9
! Digital Solutions Serial Character/Graphic LCD/OLED User Manual
!
!
Pinout of this module connect to MCU:
PI PI
Description Description
N N
SS: SPI mode only
1 GND (0V) 2
chip select control in, low active
UART mode:
RX
I2C and SPI mode:
I2C mode:
3 4
SCK/SCL: Clock in SDA
SPI mode:
SDI
VCC: power supply
5 1.8V to 5.5V depends on you
LCD
9 of 9