Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: ili9163lcd.cpp
- Revision:
- 7:eaaf60683ca4
- Parent:
- 6:7abe5999dc1c
- Child:
- 9:58f6248ef377
--- a/ili9163lcd.cpp Sat Jan 02 07:29:21 2021 +0000
+++ b/ili9163lcd.cpp Sat Jan 02 08:49:47 2021 +0000
@@ -139,6 +139,39 @@
CS_ = 1;
}
+void lcdWriteData_monoburst(bool *burst_data,uint16_t length)
+{
+ uint8_t dataByte1,dataByte2;
+ uint8_t i;
+ uint16_t pixel;
+ uint16_t colour;
+
+ CS_ = 0;
+ A0_ = 1;
+ for(pixel = 0;pixel < length;pixel++){
+ if(*burst_data)colour=decodeRgbValue(31, 0, 0);
+ else colour=decodeRgbValue(0, 0, 0);
+ dataByte1 = colour >> 8;
+ dataByte2 = colour;
+ burst_data++;
+
+ for(i=0;i<8;i++){
+ if(dataByte1 & 128)SDA_= 1; else SDA_ = 0;
+ SCK_ = 0;//TBD
+ dataByte1 <<= 1;
+ SCK_ = 1;//TBD
+ }
+ for(i=0;i<8;i++){
+ if(dataByte2 & 128)SDA_= 1; else SDA_ = 0;
+ SCK_ = 0;//TBD
+ dataByte2 <<= 1;
+ SCK_ = 1;//TBD
+ }
+ }
+ wait_us(1);
+ CS_ = 1;
+}
+
void lcdWriteData_sameburst(uint16_t data,uint16_t length)
{
uint8_t dataByte1,dataByte2;