Home

4.3inch e-Paper User Manual

image

Contents

1. 4 Other settings Set the storage area select the storage locations of font library and images default location NandFlash Set the display direction Set the drawing color the option Foreground color for the text is set to Black and the option Background color for the background is set to White by default Set Baud rate default 15200 it is not recommended to modify this option frequently Set the font size of the English character Set the font size of the Chinese character Remarks 1 When finished each command there will be corresponding response Normally it will return OK 2 For drawing point s or line s or displaying text s or image s you should click the button Refresh to update the display on the E Paper screen whenever you finish each drawing 3 You may need to wait the response for a while after clicking the button Display image since the image data is large 2 3 ARDUINO 1 Hardware connection 14 V1 7 April 29 2015 LALURVESHRRE 4 3inch e Paper User Manual share awesome hardware Here we take Arduino UNO PLUS development board as an example to illustrate the application Connect the development board to the e Paper with a serial cable as shown in the follow table For more information about this development board please refer to the Appendix Connection between Arduino UNO PLUS and 4 3inch e Paper 4 3inch e
2. Descriptions Fill a rectangle according to the point coordinates 0x0A 0x0A and OxFF OxFF in which these two points serve as the diagonal points of the rectangle 4 Draw a rectangle 0x25 27 V1 7 April 29 2015 GALURVESHRRE 4 3inch e Paper User Manual share awesome hardware Draw a rectangle according to two point coordinates with foreground color in which these two points serve as the diagonal points of the rectangle Example A5 00 11 25 00 0A 00 0A 00 FF 00 FF CC 33 C3 3C 91 Descriptions Draw a rectangle according to the point coordinates 0x0A 0x0A and OxFF OxFF in which these two points serve as the diagonal points of the rectangle 5 Draw a circle 0x26 Draw a circle based on the given center coordination and radius Example A5 00 OF 26 00 FF 00 FF 00 80 CC 33 C3 3C 0C Descriptions Draw a circle with the center coordination OxFF OxFF and radius 0x80 6 Fill a circle 0x27 Fill a circle based on the given center coordination and radius Example A5 00 OF 27 00 FF 00 FF 00 80 CC 33 C3 3C 0D Descriptions Fill a circle whose center coordination is OXFF OxFF and radius is 0x80 7 Draw a tri angle 0x28 Draw a tri angle according to three given point coordinates Example A5 00 15 28 00 0A 00 0A 00 20 00 80 00 80 00 FF CC 33 C3 3C 47 Descriptions The three point coordinates of the tri angle are 0x0A 0x0A 0x20 0x80 and 0x80 OxFF 8 Fill a tri angle 0x29 Fill a triangle
3. LALURVESHRRE 4 3inch e Paper User Manual share awesome hardware OVERVIEW 4 3 inch e Paper is an e book display module with serial interface developed by Waveshare In an easy to use design it enable you to apply different display functions via serial communication including shapes drawing text and image displaying but do not need to know any complex underlying details making it possible to unleash your creativity The 4 3 inch e Paper has the following features Built in font libraries supporting 32 48 and 64 dots GBK Chinese font and 32 48 and 64 dots English font Built in 128MB NandFlash allowing the font and the image data to be stored to either an external TF card or the internal NandFlash by a serial command 4 level gray display with 800x600 display resolution Adjustable Baud rate default 15200 Power supply voltage range from 3 3V to 5 5V logic level compatible Ultra low power consumption system sleeping current lower than 5mA on 5V power supply Provide with PC software to operate the display easy to use with PC V1 7 April 29 2015 LALURVESHRRE 4 3inch e Paper User Manual share awesome hardware 1 IMPORTANT NOTICES System power up After powered up the screen is refreshed to white At this moment if no external TF card is in used the state indicator will flicker 3 times and then keep on When there is an external TF card in used the state indicator will light up a
4. according to three given point coordinates Example A5 00 15 29 00 0A 00 0A 00 20 00 80 00 80 00 FF CC 33 C3 3C 46 Descriptions The three point coordinates of the tri angle are Ox0A 0x0A 0x20 0x80 0x80 OxFF 9 Clear the screen 0x2E 28 V1 7 April 29 2015 LALURVESHRRE 4 3inch e Paper User Manual share awesome hardware Clear the screen with the background color Example A5 00 09 2E CC 33 C3 3C 82 Descriptions Clear the screen Display text 1 Display character string 0x30 Display a character string on a specified coordination position Chinese and English mixed display is supported Example A5 00 17 30 00 0A 00 0A C4 E3 BA C3 57 6F 72 6C 64 00 CC 33 C3 3C 9E Descriptions 0x0A 0x0A This is the given coordination position OxCA4E3 ff OxBAC3 47 0x57 6F 72 6C 64 World After executed this command the screen will show the text f World Each character string should be end with a 0 So you should add a 00 at the end of the string C4 E3 BA C3 57 6F 72 6C 64 e Display image 1 Display bitmap 0x70 Before executing this command please make sure the bitmap file you want to display is stored in the storage area either TF card or internal NandFlash Example A5 00 16 70 00 00 00 00 50 49 43 37 2E 42 4D 50 00 CC 33 C3 3C DF Descriptions Image start coordination position 0x00 0x00 0x50 49 43 37 2E 42 4D 50 Bitmap name PIC7 BMP 29 V1 7 April 29 2015 UALURVES
5. at first and then 0x34 following 3 1 4 COMMAND PARAMETERS Byte 8 bits single byte Short 16 bits double bytes Dword 32 bits four bytes String the character string end with 0 18 V1 7 April 29 2015 QALURVESHRRE 4 3inch e Paper User Manual share awesome hardware 3 1 5 COLOR DEFINITION This e Paper module supports 4 level gray display and 2 bits for each pixel 0x00 Black 0x01 Dark gray 0x02 Light gray 0x03 White 3 2 COMMAND SET 3 2 1 COMMAND LOOK UP TABLE Frame Functions Command Command parameter Descriptions length 0x0009 0x00 Null Handshake command If the module is ready it will return an Ok 0x000D 0x01 Dword Set the serial Set the serial Baud rate Baud rate System 0x0009 0x02 Null Return the current Baud rate control value in ASCII format 0x0009 0x06 Null Return the information about the currently used storage area 0 NandFlash 1 MicroSD 19 V1 7 April 29 2015 UALURVESHRRE share awesome hardware 4 3inch e Paper User Manual 0x000A 0x07 Byte Set the storage 0x00 NandFlash area 0x01 MicroSD 0x0009 0x08 Null System enters sleep mode 0x0009 0x0A Null Refresh and update the display at once 0x0009 0x0C Null Return the current display direction 0 Normal 1 180 rotation 0x000A 0x0D Byte Set the display 0x00 Normal direction 0x01 180 rotation 0x0009 OxOE Null Import
6. font library 48MB 0x0009 OxOF Null Import image 80MB ByteO foreground color 0x000B 0x10 Byte1 background Set the drawing color color Display parameter 0x0009 0x11 Null Return the current drawing color configuration Read the English font size 0x0009 0x1C Null 1 32 dots matrix 2 48 dots matrix V1 7 April 29 2015 20 4 3inch e Paper User Manual LALURVESHRRE share awesome hardware 3 64 dots matrix Read the Chinese font size 1 32 dots matrix 0x0009 0x1D Null 2 48 dots matrix 3 64 dots matrix Set the English font size Byte0 Set the English 0x01 32 dots matrix 0x000A Ox1E Tonbsde 0x02 48 dots matrix 0x03 64 dots matrix Set the Chinese font size Byte0 Set the Chinese 0x01 32 dots matrix 0x000A Ox1F lon size 0x02 48 dots matrix 0x03 64 dots matrix Display a point on a given Short0 coordinate x 0x000D 0x20 coordination Short1 coordinate y Default foreground color Short0 coordinate x0 Basic drawings Short1 coordinate yO 0x001 1 0x22 Draw a line Short2 coordinate x1 Short3 coordinate y1 0x0011 0x24 Short0 coordinate x0 Fill a rectangle V1 7 April 29 2015 21 4 3inch e Paper User Manual m LAVESHARE share awesome hardware Short Short2 Short3 coordinate yO coordinate x1 coordinate y1 0x001 1 0x25 Short0 Short Short2 Short3 coordinate xO coordinate yO coordinate
7. 1 The display on the screen will be switch from normal display to 180 rotation display 10 Import font library OXOE Import the font library files from the TF card to the internal NandFlash The font library files include GBK32 FON GBK48 FON GBK64 FON The state indicator will flicker 3 times when the importation is start and ending Example A5 00 09 OE CC 33 C3 3C A2 Descriptions Import the font library 11 Import image 0x0F 25 V1 7 April 29 2015 UALURVESHRRE 4 3inch e Paper User Manual share awesome hardware Import the image files from the TF card to the internal NandFlash The state indicator will flicker 3 times when the importation is start and ending Example A5 00 09 OF CC 33 C3 3C A3 Descriptions Import the images e Display parameter configuration 1 Set the pallet 0x10 Set the foreground color and the background color on drawing in which the foreground color can be used to display the basic drawings and text while the background color is used to clear the screen Example A5 00 0B 10 00 03 CC 33 C3 3C BD Descriptions 0x00 The foreground color is set to Black 0x03 The background color is set to White 2 Get the pallet data 0x1 1 Example A5 00 09 11 CC 33 C3 3C BD Descriptions For example when returns 03 0 means the foreground color is Black and 3 means the background color is White 3 Read the English font size 0x1C Example A5 00 09 1C CC 33 C3 3C BO Description
8. 15200 Iv Data bits 8 fa Stop bits d iv Send CMD OxAS 0x00 0x09 OxOF OxCC 0x33 OxC3 Ox3C OxA3 Input text to send d Settings NandFlash OMicrosD Set Storage Read Storage 115200 v setBaudr Normal 180 Rotate SetDirection Read Direction ascIr32 v Set EN Font Foreground Background T m s v saver Remarks 1 Once you do the operation please check the state indicator It flickers when the importation starts Now wait the importation finish 2 Normally you only need to import the image s you want but not need to import the font library since it has been imported by default Display testing 1 Display text Enter the text Hello World into the Input box and set the coordinate options X1 and Y1 to 100 Then click the button Character and then the button Refresh Now you can see the text inputted shows in the screen 11 V1 7 April 29 2015 LALURVESHRRE 4 3inch e Paper User Manual share awesome hardware w EPSCOMM V1 0 www waveshare com Serial Receive Port COME v OKOKOKOKOKOK Baud rate 115200 Data bits 8 ha Stop bits Send CHD OxAS 0x00 0x09 OxOA OxCC 0x33 OxC3 Ox3C OxA6 Input text to send Hello World Settings NandFlsh Micro SD Set Storage Read Storage 115200 v Set Baud rate Read Baud rate Normal 180 Rotate Set Direction Read
9. Direction Ascir32 w Set EN Font Read EN Font Foreground Background m RR om i 2 Display image Enter the name of the image you want to display into the Input box and set the coordinate options X1 and Y1 to 0 Then click the button Picture and then the button Refresh Now you can see the corresponding image shows in the screen 12 V1 7 April 29 2015 LALURVESHRRE 4 3inch e Paper User Manual share awesome hardware w FPSCOMM V1 0 www waveshare com Serial Receive Port coms s OKDKOK Baud rate 115200 m Data bits Send CMD OxAS 0x00 0x09 OxOA OxCC 0x33 OxC3 Ox3C OxA6 Stop bits Input text to send PICT BMP Load font _ Pict e Settings NandFsh Miro SD Set Storage Read Storage 115200 m Set Baud rate Normal 180 Rotate Set Direction Read Direction ASCII32 w Set EN Font Read EN Font Foreground Background a m a iv suu 3 Display shape To draw shapes you may need to input the parameters listed in the table below Coordinate X1 Y1 Coordinate X2 Y2 Coordinate X3 Y3 Radius R Point e Line e e Rectangle e e Filled rectangle e e 13 V1 7 April 29 2015 LALURVESHRRE 4 3inch e Paper User Manual share awesome hardware Circle e e Filled circle e e Tri angle e e e Filled tri angle e e e
10. HRRE 4 3inch e Paper User Manual share awesome hardware Each character string should be end with a 0 So you should add a 00 at the end of the string 50 49 43 37 2E 42 4D 50 The name of the bitmap file should be in uppercase English character s And the string length of the bitmap name should be less than 11 characters in which the ending 0 is included For example PIC7 BMP and PIC789 BMP are correct bitmap names while PIC7890 BMP is a wrong bitmap namem 30 V1 7 April 29 2015 LALURVESHRRE 4 3inch e Paper User Manual share awesome hardware 4 APPENDIX 1 CP2102 USB UART Board mini The CP2102 USB UART Board mini is an accessory board that features the single chip USB to UART bridge CP2102 onboard For more information about this module please refer to the following links http www waveshare com cp2102 usb uart board mini htm 2 Arduino UNO PLUS UNO PLUS is a development board compatible with the Arduino UNO R3 an improved amp enhanced alternative solution for Arduino UNO R3 31 V1 7 April 29 2015 LALURVESHRRE 4 3inch e Paper User Manual share awesome hardware For more information about this module please refer to the following links http www waveshare com product arduino main board avr uno plus htm 3 XNUCLEO F103RB Compatible with NUCLEO F103RB onboard Cortex M3 microcontroller STM32F103RBT6 Arduino connectivity support easy to connect with various A
11. Paper Arduino UNO PLUS Red 5V Black GND White RX DO Green TX D1 Yellow D2 Blue Reset you can keep it unconnected 2 Program compiling and uploading Open the Arduino program on the Demo Then compile and upload it Please take a note that the white cable should be removed on program uploading 2 4 XNUCLEO F103RB 1 Hardware connection Here we take XNUCLEO F103RBdevelopment board as an example to illustrate the application Connect the development board to the e Paper with a serial cable as shown in the follow table For more information about this development board please refer to the Appendix Connection between XNUCLEO F103RB and 4 3inch e Paper 4 3inch e Paper XNUCLEO F103RB Red 5V 15 V1 7 April 29 2015 LALURVESHRRE 4 3inch e Paper User Manual share awesome hardware Black GND White RX DO Green TX D1 Yellow D2 Blue Reset you can keep it unconnected 2 Program compiling and programming Open the XNUCLEO F103RB program on the Demo Then compile and program it Note You should set the JP4 jumper between A and B 2 5 OPEN103Z 1 Hardware connection Here we take Open103Z development board as an example to illustrate the application Connect the development board to the e Paper with a serial cable as shown in the follow table For more information about this development board please refer to the Appendix Connec
12. WA LUAVESHARE 4 3inch e Paper User Manual share awesome hardware 4 3inch e Paper User Manual CONTENTS gl EET 3 1 Jmiportatt YOtICes ccscsycaccatnacvaveve tati cosa de a retten Una a uxu OU aa du eatod 4 PNED D TRU E 6 2 1 How to generate bitmap images ssssssssssseeeeeeeeeeenneeeeneee nennen nennen nnn 6 2 2 How to work with PG iiie inier react n biete tene pue n aa anaa EEEa na 6 2 3 AFGUilio si siet Gules nonce tva isi tdg LIP ILI 14 2 4 MNUCLEOELOSRB PEERS 15 2 5 OPO LOSZ m E 16 3 Serial communication protocol sssessesessssesssesessseee eene een nennen nn nnnhnn tnnt nni nas 18 3 1 SEU E O 18 3 1 1 EICEIHolg de 18 3 1 2 Command frame format eeesssssssssseeseeee eene nnne enne 18 3 1 3 Transmission sequence useesesesseseseeeeene eene nennen nennen nnne nens 18 3 1 4 Command ParamMe tel ee eeeeeeeeeeeeeceeeeeeeeeeeaeeeaaaeaaaaaaaaeaaeeeeteeeeeeeeeeeeees 18 3 1 5 Color Cetin ItOR ee REED EE 19 3 2 Command set eR BEER RAE R RN RR EE ERR ERE RERARA pede 19 V1 7 April 29 2015 LALURVESHRRE 4 3inch e Paper User Manual share awesome hardware 3 2 1 Command look up table sessi 19 3 2 2 Command explanations screenen naaa aa 23 Biz APPENAIK ricsina ea a a a E a de ccaeeeeeecuhteaeeweunseune rts 31 2 V1 7 April 29 2015
13. area to select the storage locations of font library and images either the external TF card or the internal NandFlash is available Example A5 00 0A 07 00 CC 33 C3 3C A8 Descriptions 0x00 set the currently used storage area as NandFlash 6 Sleep mode 0x08 The system will enter the sleep mode and reduce system power consumption by this command Under sleep mode the state indicator is off and the system does not respond any commands Only the rising edge on the pin WAKE UP can wake up the system 24 V1 7 April 29 2015 LALURVESHRRE 4 3inch e Paper User Manual share awesome hardware Example A5 00 09 08 CC 33 C3 3C A4 Descriptions Switch the system to sleep mode 7 Refresh 0x0A Refresh and update the display on the screen After the host send out the drawing command the system will only write the relative data into the internal video memory but not update the display on the screen So you should operate this command whenever you finish each drawing Example A5 00 09 0A CC 33 C3 3C A6 Descriptions Refresh and update the display on the screen 8 Get the display direction 0x0C Example A5 00 09 0C CC 33 C3 3C AO Descriptions When returns 0 the screen is in normal display when returns 1 the display on the screen will be rotated by 180 9 Set the display direction 0x0D Set the display direction only 180 rotation display supported Example A5 00 0A 0D 01 CC 33 C3 3C A3 Descriptions 0x0
14. ate Set Direction Read Direction ASCII32 v Read EN Font Foreground Background Black v White x GMG2 v Read CN Font Check the Device Manager and configure the corresponding serial port Click the button Open and then the button Shake hands The E Paper module will return the message OK if the communication is built up V1 7 April 29 2015 LALURVESHRRE 4 3inch e Paper User Manual share awesome hardware w EPSCOMM V1 0 www waveshare com Serial Receive Port Ps OK Baud rate Data bits Send CMD OxAS 0x00 0x09 0x00 OxCC 0x33 OxC3 Ox3C OxAC Stop bits Input text to send Load font Rectangle ETTR mm Fill Rectangle Fill Circle Hl Fil triangle neue Settinas NandFlash OMiro SD Set Storage Read Storage 115200 v Set Baud rate Read Baud rate Normal 180 Rotate Set Direction Read Direction ASCIIS2 v SetENFont Read EN Font Foreground Background Black y White w Set Color Read Color GBK32 m SetCNFont Read CN Font Font libraries and image importation 1 Prepare a TF card here we take an 8G TF card as an example and format the TF card into a FAT32 system with 4096 bytes allocation unit size Copy the font libraries and image files provided by Waveshare into the TF card When finished insert the TF card into the E Paper 2 Click th
15. e button Load font Then the state indicator on the e Paper will flicker 3 times indicating the importation starts When finished the state indicator will flicker 3 times again and the e Paper module will return the message OK indicating that the importation of font library is completed successfully V1 7 April 29 2015 4 3inch e Paper User Manual w EPSCOMM V1 0 www waveshare com Serial Port Baud rate Data bits Stop bits Receive OKOK A WAVESHARE share awesome hardware Send CHD OxAS 0x00 0x09 OxOE OxCC 0x33 OxC3 Ox3C OxA2 Settinas NandFlash Normal Foreground Black Im O Micro SD 180 Rotate Set Direction Read Direction Background mite v 3 Click the button Set Storage Read Storage 115200 Input text to send ASCIIS2 w Set EN Font Read EN Font Set Color Read Color GBK32 m sete Font Read CN Font Load image Then the state indicator on the e Paper will flicker 3 times indicating the importation starts When finished the state indicator will flicker 3 times again and the e Paper module will return the message OK indicating that the importation of image s is completed successfully V1 7 April 29 2015 10 LALURVESHRRE 4 3inch e Paper User Manual share awesome hardware w EPSCOMM V1 0 www waveshare com Serial Receive Port cons e joxoKax Baud rate 1
16. f the image should be in uppercase English character s with the length less than 10 characters in which the symbol is included For example PIC7 BMP and PIC789 BMP are correct image names PIC7890 BMP is a wrong image name V1 7 April 29 2015 LALURVESHRRE 4 3inch e Paper User Manual share awesome hardware 2 HOW TO USE 2 1 HOW TO GENERATE BITMAP IMAGES 1 Make sure the resolution of the image is less than 800x600 pixels Start the tool mspaint exe on Windows to open the image to be converted 2 Select the option 24 bit bitmap in the Save as Type list to save the image as a bmp format file 3 Start the software tool provided by Waveshare uC GUI BitmapConvert exe 4 Click File gt Open and select the bitmap image you want to convert 5 Click Image gt Convert Into gt Gray4 2 BPP 6 Click File gt Save As and select the option Windows Bitmap file bmp in the Save as Type list and then enter a correct file name and save the image Please take a note to the format of the file name 2 2 HOW TO WORK WITH PC We have designed the software for E Paper to work with PC With this software users can easily operate different basic displays on the E Paper via a PC In additional a USB to serial module should be applied to build up the communication between the e Paper and the PC In here we will take the serial module CP2102 USB UART Board mini as an example to illustrate the application For mo
17. nd keep on without flickering Storage After powered up the system reads the font and the image data from the internal NandFlash by default When using an external TF card you should format the TF card into a FAT32 system and place the font libraries provided by Waveshare and the images you want to display to the external TF card before using it When using the internal NandFlash you should import the font libraries and image files you want to display to the internal NandFlash in advance For more detailed information please refer to the Section 2 2 State indicator The state indicator is on when the system is working properly and off when the system enters sleep mode A rising edge on the WAKE_UP pin from the external MCU can wake up the system And the state indicator will light up and remain on after resuming from sleep mode e Font libraries The system built in 32 48 and 64 dots English font is always available without using the TF card or the NandFlash however for the 32 48 and 64 dots Chinese font you should store the relative library file to the TF card or the NandFlash before using it V1 7 April 29 2015 LALURVESHRRE 4 3inch e Paper User Manual share awesome hardware Image display The system supports 1 bit and 2 bit bitmap image display For other image formats you should convert these images into the specified format with the tool on the Demos so as to display them The name o
18. ol is included And the string length of the image name should be less than 11 characters in which the ending 0 is included 3 2 2 COMMAND EXPLANATIONS System control 1 Handshake command 0x00 After powered up you can send this command to the terminal to make sure whether the terminal is ready and able to receive commands or data 23 V1 7 April 29 2015 LALURVESHRRE 4 3inch e Paper User Manual share awesome hardware Example A5 00 09 00 CC 33 C3 3C AC Descriptions Handshake command 2 Set the Baud rate 0x01 After powered up the default Baud rate is 115200 This command is used to set the Baud rate You may need to wait 100ms for the module to return the result after sending this command since the host may take a period of time to change its Baud rate Example A5 00 0D 01 00 00 25 80 CC 33 C3 3C 0C Descriptions 0x2580 set the Baud rate to 9600 The parameter of Baud rate is consisted of 4 bytes so you need to complete the rest by yourself 3 Read the current Baud rate 0x02 Example A5 00 09 02 CC 33 C3 3C AE Descriptions Read the current Baud rate of the system 4 Return the information about the currently used storage area 0x06 Example A5 00 09 06 CC 33 C3 3C AA Descriptions When returns 0x00 the currently used storage area is internal NandFlash when returns 0x01 the currently used storage area is external TF card 5 Set the storage area 0x07 Set the storage
19. rduino shields and access the massive Arduino resources Supports mbed build prototype quickly by mbed SDK and online tools 32 V1 7 April 29 2015 LALURVESHRRE 4 3inch e Paper User Manual share awesome hardware For more information about this module please refer to the following links http www waveshare com xnucleo f103rb htm 4 Open103Z Open103Z is a STM32 development board that features a STM32F103ZET6 device as the microcontroller It supports further expansion with various optional accessory boards for specific application 33 V1 7 April 29 2015 LALURVESHRRE 4 3inch e Paper User Manual share awesome hardware For more information about this module please refer to the following links http www waveshare com open1032z standard htm 34 V1 7 April 29 2015
20. re detailed information about this serial module please refer to Appendix Hardware connection 1 Setthe pin VCCIO on the CP2102 to 5V 2 Connect the CP2102 to the E Paper with jump wire in which the red wire of the cable is connected to the pin VCCIO on the CP2102 and the black wire to the pin GND the white wire to the pin RXD and the green wire to the pin TXD CP2102 USB UART Board 4 3inch e Paper Red VCCIO Black GND V1 7 April 29 2015 QALURVESHRRE 4 3inch e Paper User Manual share awesome hardware White RXD Green TXD 3 Connect the CP2102 to the PC via a USB cable Now the E Paper is powered up and its state indicator lights up Software installation Unzip the software to the installation directory and then double click the file install bat Then you will see a dialog box will pop up as the figure shows below if the software is installed successfully rm EE so a C Windows system32 cmd exe T ID NEN regsur32 mscomm32 ocx o DilRegisterServer in mscomm32 ocx succeeded Double click the EPSCOMM exe to start the software V1 7 April 29 2015 Wh WAVESHARE 4 3inch e Paper User Manual share awesome hardware w EPSCOMM V1 0 www waveshare com Serial Receive Port Baud rate Data bits Stop bits Input text to send Load imag O Micro so 118200 Set Baud rate Re Normal 180 Rot
21. s Return the index of currently used English font size 4 Read the Chinese font size 0x1D Example A5 00 09 1D CC 33 C3 3C B1 Descriptions Return the index of currently used Chinese font size 5 Set the English font size 0x1E Set the English font size currently support 32 48 64 dots matrix 26 V1 7 April 29 2015 GALURVESHRRE 4 3inch e Paper User Manual share awesome hardware Example A5 00 0A 1E 01 CC 33 C3 3C BO Descriptions 0x01 Set the English font size to 32 dots matrix 6 Set the Chinese font size 0x1F Set the Chinese font size currently support 32 48 64 dots matrix Example A5 00 0A 1F 01 CC 33 C3 3C B1 Descriptions 0x01 Set the Chinese font size to 32 dots matrix Basic drawings 1 Draw a point 0x20 Display a point on a specified coordination position with foreground color Example A5 00 0D 20 00 0A 00 0A CC 33 C3 3C 88 Descriptions Display a point on the position 0x0A 0x0A with foreground color 2 Draw a line 0x22 Draw a line between two specified point coordinates with foreground color Example A5 00 11 22 00 0A 00 0A 00 FF 00 FF CC 33 C3 3C 96 Descriptions Draw a line between the point coordinates 0x0A 0x0A and OxFF OxFF with foreground color 3 Fill a rectangle 0x24 Fill a rectangle according to two point coordinates with foreground color in which these two points serve as the diagonal points of the rectangle Example A5 00 11 24 00 0A 00 0A 00 FF 00 FF CC 33 C3 3C 90
22. tion between XNUCLEO F103RB and 4 3inch e Paper 4 3inch e Paper Open103Z Red 5v Black GND White PA10 Green PA9 Yellow PA11 Blue Reset you can keep it unconnected 16 V1 7 April 29 2015 WA WAVESHARE 4 3inch e Paper User Manual share awesome hardware 2 Program compiling and programming Open the Open103Z program on the Demo Then compile and program it 17 V1 7 April 29 2015 WA LUAVESHARE 4 3inch e Paper User Manual share awesome hardware 3 SERIAL COMMUNICATION PROTOCOL 3 1 BASIC RULES 3 1 1 SERIAL PORT This e Paper module adopts full duplex asynchronous UART communication with adjustable Baud rate 3 1 2 COMMAND FRAME FORMAT Command 0xA5 OxXX XX OxXX OxXX OxCC 33 C3 3C OxXX Parameter or Frame Frame Command Meaning data Frame end Parity header length Type Description 01024 fixed 4 bytes 1 byte 1 byte 2 bytes 1 byte bytes 1 The frame length is calculated by the length begin with the frame header and end with the parity byte 2 Parity byte is the final result of the XOR operation on the bytes from the frame header to the frame end 3 1 3 TRANSMISSION SEQUENCE The data of the module is transmitted in the Network byte sequence which means higher byte is sent at first then lower byte following For example a parameter 0x1234 is transmitted in two parts 0x12 is sent
23. x1 coordinate y1 Draw a rectangle 0x000F 0x26 Short0 Short coordinate xO coordinate yO Short2 r radius Draw a circle 0x000F 0x27 Short0 Short coordinate xO coordinate yO Short2 r radius Fill a circle 0x0015 0x28 Short0 Shortt Short2 Short3 Short4 Short5 coordinate x0 coordinate yO coordinate x1 coordinate y1 coordinate x2 coordinate y2 Draw a tri angle 0x0015 0x29 Short0 Short coordinate xO coordinate yO Fill a tri angle V1 7 April 29 2015 22 LALURVESHRRE 4 3inch e Paper User Manual share awesome hardware Short2 coordinate x1 Short3 coordinate y1 Short4 coordinate x2 Short5 coordinate y2 Clear the screen with background 0x0009 Ox2E Null color Short0 coordinate x 1 Support English and Chinese 0x0D fonts mixed display Display text 0x30 Short1 coordinate y string length 2 Maximum string length 1024 String bitmap name _4 Display Short0 coordinate x0 image 0x0D Sino ono 0x70 Short1 coordinate y0 Support bitmap file 1bpp 2bpp l bitmap Only String BMP file name Remarks 1 The string length is the length of the character string end with 0 in which the ending 0 is included 2 The name of the image should be in uppercase English character s with the length less than 10 characters the symb

Download Pdf Manuals

image

Related Search

Related Contents

  Petite boîte à outils pour préparer sa venue à un spectacle vivant  Unidad de disco duro serie ATA: Guía del usuario - ps  Istruzioni d`uso Bilance compatta  IP4720_ALCATEL  GM_FORMATO - Azegurate.com  Smeg TSF01PKEU toaster  Peerless MIS164T flat panel wall mount  FAUTEUIL DE MASSAGE  Delica D : 2  

Copyright © All rights reserved.
Failed to retrieve file