![]() You can print any other image all you just need to do is paste the hex code of the image. SPI1CON1bits. from Idle clock state to active clock state. SPI1CON1bits.CKE 1 //was 0 // Serial output data changes on transition. SPI1CON1bits.SMP 0 // Input data is sampled at the middle of data. U8GLIBST7920128X644X u8g(10) Now, for printing the image we need to place the Hex code of the image in the below code. SPI1CON1bits.MODE16 0 // Communication is 8 bits. So, we are using the serial mode and RS pin set to High (1) for chip enabled and Low (0) for chip disabled. ST7920_SendCmd( 0x34) // switch to Extended instructions RS pin used as ‘chip select’ and ‘Register Select’ when used in Serial and Parallel mode respectively. Void ST7920_GraphicMode ( int enable) // 1-enable, 0-disable While(Time_us-) //for(i=0 i graphic mode enable = 0 -> normal mode ST7920 LCD driver consists of 33 common and 64. Uint8_t startRow, startCol, endRow, endCol // coordinates of the dirty rectangle ST7920 has wide operating voltage (2.7V to 5.5V) and low power consumption suitable for battery power portable device.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |