Home

Digole Serial:UART/I2C/SPI Character/Graphic LCD

image

Contents

1. 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 4of9 Digole Digital Solutions Serial Character Graphic LCD OLED User Manual Character Graphic Display Shared Command B one byte B Bytes OE f Char Mono Color CLear screen and set the display position to first CL Column and first Row x 0 y 0 for graphic LCD it also set the font to default and turn off the cursor The module will not execute this command until other command received clearScreen enableCursor _ BLB Set Back Light ON OFF B 0 or 1 0 off 1 on unavailable on Character Adapter Vix backLightOn backLightOff Set Screen ON OFF to save power For GLCD OLED Display Config on off the factory default set is on so when the module is powered up it will display current communication mode on LCD after you design finished you can turn it off Set UART Baud B are ASCII characters the available values are 300 1200 2400 4800 9600 14400 19200 28800 38400 57600 115200 Set I2C Address the default address is 0x27 the SI2CAB adapter will store the new address in memory Se
2. DDigole rence acc o Digital Solutions Serial Character Graphic LCD OLED User Manual Digole Serial UART I2C SPI Character Graphic LCD OLED Display Module User Manual last updated Mar 3rd 2014 This manual will describe most common futures for our Serial LCD OLED displays and modules each particular products may have different looks size and material but all interface to your master circuits and control commands are same that means you can switch Digole Serial display in your application without any modification of you master circuit and software Our Serial display products are list in figure 1 you can purchase them with lowest price at http www digole com index php categoryID 153 What benefits you if using these products in you electronic projects 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 e 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
3. A The y pixels moved M depending on the TRT Move text cursor to next line call Text ReTurn nextTextLine ee ne using Set Font follow by the font number preloaded font number is 6 10 18 51 120 123 0 default user font SFB number is 200 201 202 203 maps to 4 user font setFont 0 memory sections you can combine adjacent sections together is the font size gt 4kb each section has 4kb in size 6of9 The setRotation will accept 0 to 3 represent0 to 270 degree respectively Send graphic fuction Direction the value of B is 0 to 3 represent0 to 270 degree respectively SDB Digole Digital Solutions Serial Character Graphic LCD OLED User Manual 0 and 1 for black white screen 0 to 255 for color screen Set Color for following display this command affect all following drawing command such as text line setColor 1 circle pixel rectangle Move rectangle Area on screen to another place the 6 B are represent x y left top w h width height xoffset yoffset moveArea x y w h xoff set yoffset Enhanced set the current Text position Back to last char this function will allow you display multiple setTextPosBack chars at same position ETOBB Enhanced set Text position Offset the 2 B are xoffset setTextPosOffset xoffs 0 to 255 then yoffset it will adjust the text position in pixels et yoffset ETPBB Enhanced set Text Position as pixels on screen the 2 set TextPosAbs
4. draw line om the Display Mode for on coming command the available values for B are sepon 0 not ZALE or TNE XOT setMode Like the Bitwise amp and this means the next drawing pixel will logic Operator in C operation with pixel already on screen Display image width 4 DIMBBB Each byte present 8 pixels if the image width not draw Bitmap 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 undoRotation setRot90 setRot180 setRot270 Set display ConTrast only for some models Only for Only for ST7565 i ST7565 LCD Controller a on LCD Controller V In order to Draw a Filled Rectangle 4 B are X Y left top X Y drawBox x y width he1 op ith u8g FRBBBB drawBox in oe ght Arduino use width and height i drawFrame in DRBBBB Draw a Rectangle 4 B are X Y left top X Y right drawFrame x y width h A ee bottom eight and height CCBBBB Draw a CirCle 4 B are X Y radius filled or not Craw EOE 1 means filled draw Disc x y r circel Draw a Pixel 2 B are x y The color was set up by i drawHLine craw Dy XL y horizontal line LNBBBB Draw a Line from x y to x1 y1 4 B are x y x1 y1 drawHLine x y width drawVLine N draw VLine x y height veritcal line LTBB Draw a Line from Tast position to x y 2 B are x y drawLineTo x y E
5. el dth hight data firmware version 2 7 occupy 2 bytes B1 BO0 the color structure uga and higher RRRRRGGG GGGBBBBB MSB first Enhanced Display Image 3 byte color format Emas Tae folowing vis are star positon a 3 image drawBinmap262K sy BBBB eee 8 mage qata 2 9y width hight data EDIM2B BBBB represent one pixel Red Green Blue the validate value 0 to 64 6bits Enhanced Set Color for following display the BBB are color Red color Green and Color Blue this pene command affect all following drawing command PETERE COn ROB V such as text line circle pixel rectangle 70f9 Digole Digital Solutions Serial Character Graphic LCD OLED User Manual Special Command B one byte B Bytes Only for multi chip driver adapter B 0 or 0 for ST7920 B 1 or 1 for KS0108 E Low CS1 amp CS2 Low B 2 or 2 for ST7565 For Universal Graphic Serial LCD Adapter only Since product after Apr 20 2013 setLCDChip chip num B 3 or 3 for KS0108 E Low CS1 amp CS2 High B 4 or 4 for KS0108 follow by effective level for E CS1 and CS2 eg SLCD4011 is same as SLCD3 Set up universal graphic serial LCD adapter 1 For ST7920 LCD controller e Verify and compare the pinout on adapter and LCD panel they should be same on order refer to the picture bellow e Pull up PSB pin usually pin 15 to VCC
6. 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 e You can display contents in 4 different directions 0 90 180 270 clockwise on same screen the product will map the coordinate accordingly FEATURES e Communication mode UART I2C SPI Low power consumption less than 4mA for detect your setting automatically adapter only completed module may higher e Receiving buffer 64 256 bytes depends on the backlight power consumption s Work aaieallaniemeongolicnand Simple command sets easy to remember microprocessor Simple graphic engine integrated Graphic e Communication signal can work on 3 3V Products and 5 0V TTL 7 preloaded fonts font s data structure full compatible with U8Glib Graphic Products Default setting UART baud 9600bps I2C 0x27 address UART baud bps 300 1200 2400 4800 9600 14400 19200 28800 38400 57600 115200 1 of 9 DDigole Digital Solutions Serial Character Graphic LCD OLED User Manual ot PEL EEL ESE E SE RX SDA SDI sc JS el a _ op Serial_LCO Aes GNO ea ll SLCD12864_8 URA 75K FON32S TOLOA 2 54mm 1 SSSR LAMA Leelee lela eee ale 128x64 Serial COG LCD sd id Mt Hi JE JE JE JE JE JEJE DEICIDE ee gt gt gt i 9 240x64 Dots Serial LCD ese 00000 Waleomne tosmww digole com eee Sia eee UART ba
7. t Text Columns and Rows this command will config your LCD if other than 1602 and the chip is other than KS0066U F HD44780 TPBB Text Position for following display BB are x and display TexT string the text will wraped in next row TTB if the current row fulled the Text Postion will be changed to the last char displyed this command ended by 0x00 or 0x0D received Manual CommanD send command B to display MCDB bypass the adapter STCRBB BBBB displayConfig 0 displayConfig 1 Doe en When adapter power up or reset always start with y y y 9600bps Baud rate Set BAUD when initial the class setI2CAddress 0x34 o oo The last 4 B should be x80 xC0 x94 xD4 it mapped the starting RAM address on LCD setLCDColRow 20 4 DER Only affect the following TT command setPrintPos x y print string print int print char print float print double drawStr x y string The print function in Arduino can also print other data and format the out put Use it if you want to control the display directly directCommand Oxaf MDTB ae DaTa send data B to display bypass the directData 0x88 5 of 9 Digole 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 Command Description Arduino lib function note Mono o Graphic Graphic ome Graphic Position for followin
8. tS C A jumper SCK SCI keer a itt Ua 2 75K FDON333 gt AL Kank re amp Digital out put 25mA EEE en O5V 3 3V Power Supply e LeD Jumper rion cNo va vo o 7w E peol oss pea pes DBs 086 87 cst esa RST Vout 517565 vss vdd o c cs scx so ast aje Kso10s Ju ier Short both for Ta 8of9 Digole Digital Solutions Serial Character Graphic LCD OLED User Manual Pinout of this module connect to MCU PI o PI Ea SS SPI mode only ov chip select control in low active RX UART mode I2C and SPI mode I2C mode SCK SCL Clock in SDA SPI mode SDI VCC power supply 5 1 8V to 5 5V depends on you LCD Connect with your master circuit UART RX X Serial Display Your Controller Serial Display Your Controller SPI 2 Wire SPI 3 Wire Serial Display Your Controller Serial Display Your Controller 9 of 9
9. to let the LCD panel work at parallel mode e Connect the adapter with the LCD panel adjust the contrast pot power up the adapter you should see the welcome screen displayed 2 For KS0108 controller e Verify and compare the pinout on adapter and LCD panel they should be same on order refer to the picture bellow e Shorting the 2 KS0108 jumper J on the picture e In most case you need add a 10K contrast pot by yourself e Connect the adapter with the LCD panel power up the adapter send chip configuration command refer to above table to adapter e Adjust the contrast pot you should see the welcome screen displayed if not you probably need to try other value 1 3 4 in chip configuration command 3 For ST7565 controller NOTE There are vary of ST7565 LCD panels on market and the pin out are vary from one module to others this adapter only support SPI mode on the LCD panel you usually need to connect pins on this adapter with LCD panel corresponding e Connect the pins on the adapter with LCD panel corresponding e Power up the adapter then send chip configuration command to adapter SLCD2 then you will see the welcome screen on the panel e You can use the set contrast command to adjust the contrast ST7565 support software contrast adjustment Communication port rT om omeo LCD Serie SNA Module TO o Zo To LCD with 2 54mm OSN ALAI E oTo LCD with 2 0mm vce i ees eyo QUARTIIZC SPI select
10. ud 9600 WEICON to www digale com 128x64 Serial OLED Blue White 1 1 3 Figure 1 2 of 9 Digole Digital Solutions Serial Character Graphic LCD OLED User Manual O ZN v 9BZT9990I 5S p 3s 6 475 te Lok agu 7 E Meduim Size 7x4 6cm 12864 Serial LCD Backlight Small size 4 6x3cm 12864 Serial LCD Backlight UART bau V2 6 M Weicomi Digole Di tal Solution You will find it sS 0 asy to use and fu 1 8 160x128 True Color Serial OLED Module 0 96 96x64 65K Color Serial OLED Module 3of9 Digole star come o 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 How to set up the communication mode There are 3 different communication modes on all products UART I2C and SPI what you need 1s 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 you can find a similar jumper like this Protocols e UART 8 N 1 8bits No parity bit 1 stop bit 2C Slave Mode 7 bit address
11. x y X y 0 to 255 B are x y coordinate on screen Set Start For mono display the length 2 length of data should SSSBBB following by data uploadStartScreen 102 be screen NI s s For mono display the start screen is bitmap data 4 data Width High 8 eg For color display the start screen is commands set For 128x64 LCD the first and second bytes are the commands length the length is 1024 SUFBBB pe a uploadUserFont 1 143 B upload 2 4 data the higher byte of data length following by data Display Start Screen stored in memory also set up 1 on 0 off DSSB Automatic start screen display or not on next power oe i y y up Send a Byte to output head on board the current n The output head are POULE driving ability for each pin is 25mA Sink Source eee ee vary from adapters V 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 Enhanced Display Image 1 byte color format EDIM1IB The following 4 bytes are start positon x y image drawBitmap256 x y wi BBBB width height then following image data each byte dth hight data represent one pixel Enhanced Display Image 2 byte color format The following 4 bytes are start positon x y image drawBitmap65K x y wi Available on width height then following image data each pix

Download Pdf Manuals

image

Related Search

Related Contents

Rackmount Monitor User Manual  

Copyright © All rights reserved.
Failed to retrieve file