Minor changes
This commit is contained in:
		
							parent
							
								
									da2239f4c1
								
							
						
					
					
						commit
						da349a5fbd
					
				|  | @ -1679,7 +1679,6 @@ int16_t TFT_eSprite::drawChar(uint16_t uniCode, int32_t x, int32_t y, uint8_t fo | ||||||
|     if ((font>2) && (font<9)) |     if ((font>2) && (font<9)) | ||||||
|     { |     { | ||||||
|       // This is slower than above but is more convenient for the RLE fonts
 |       // This is slower than above but is more convenient for the RLE fonts
 | ||||||
|       // flash_address = pgm_read_dword( pgm_read_dword( &(fontdata[font].chartbl ) ) + uniCode*sizeof(void *) );
 |  | ||||||
|       flash_address = pgm_read_dword( (const void*)pgm_read_dword( &(fontdata[font].chartbl ) ) + uniCode*sizeof(void *) ); |       flash_address = pgm_read_dword( (const void*)pgm_read_dword( &(fontdata[font].chartbl ) ) + uniCode*sizeof(void *) ); | ||||||
|       width = pgm_read_byte( (uint8_t *)pgm_read_dword( &(fontdata[font].widthtbl ) ) + uniCode ); |       width = pgm_read_byte( (uint8_t *)pgm_read_dword( &(fontdata[font].widthtbl ) ) + uniCode ); | ||||||
|       height= pgm_read_byte( &fontdata[font].height ); |       height= pgm_read_byte( &fontdata[font].height ); | ||||||
|  |  | ||||||
|  | @ -3389,7 +3389,7 @@ void TFT_eSPI::pushColors(uint8_t *data, uint32_t len) | ||||||
|     while (len--) {tft_Write_8(*data); data++;} |     while (len--) {tft_Write_8(*data); data++;} | ||||||
|   #elif  defined (ILI9488_DRIVER) |   #elif  defined (ILI9488_DRIVER) | ||||||
|     uint16_t color; |     uint16_t color; | ||||||
|     while (len>1) {color = (*data++) | ((*data++)<<8); tft_Write_16(color); len-=2;} |     while (len>1) {color = (*data++); color |= ((*data++)<<8); tft_Write_16(color); len-=2;} | ||||||
|   #else |   #else | ||||||
|     #if (SPI_FREQUENCY == 80000000) |     #if (SPI_FREQUENCY == 80000000) | ||||||
|       while ( len >=64 ) {spi.writePattern(data, 64, 1); data += 64; len -= 64; } |       while ( len >=64 ) {spi.writePattern(data, 64, 1); data += 64; len -= 64; } | ||||||
|  | @ -4270,7 +4270,6 @@ int16_t TFT_eSPI::drawChar(uint16_t uniCode, int32_t x, int32_t y, uint8_t font) | ||||||
|   { |   { | ||||||
|     if ((font>2) && (font<9)) |     if ((font>2) && (font<9)) | ||||||
|     { |     { | ||||||
|       //flash_address = pgm_read_dword( pgm_read_dword( &(fontdata[font].chartbl ) ) + uniCode*sizeof(void *) );
 |  | ||||||
|       flash_address = pgm_read_dword( (const void*)pgm_read_dword( &(fontdata[font].chartbl ) ) + uniCode*sizeof(void *) ); |       flash_address = pgm_read_dword( (const void*)pgm_read_dword( &(fontdata[font].chartbl ) ) + uniCode*sizeof(void *) ); | ||||||
|       width = pgm_read_byte( (uint8_t *)pgm_read_dword( &(fontdata[font].widthtbl ) ) + uniCode ); |       width = pgm_read_byte( (uint8_t *)pgm_read_dword( &(fontdata[font].widthtbl ) ) + uniCode ); | ||||||
|       height= pgm_read_byte( &fontdata[font].height ); |       height= pgm_read_byte( &fontdata[font].height ); | ||||||
|  |  | ||||||
|  | @ -149,5 +149,7 @@ int8_t getPinName(int8_t pin) | ||||||
|   if (pin ==  1) return 10; |   if (pin ==  1) return 10; | ||||||
|   if (pin ==  9) return 11; |   if (pin ==  9) return 11; | ||||||
|   if (pin == 10) return 12; |   if (pin == 10) return 12; | ||||||
|  | 
 | ||||||
|  |   return -1; // Invalid pin
 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| { | { | ||||||
|   "name": "TFT_eSPI", |   "name": "TFT_eSPI", | ||||||
|   "version": "1.4.10", |   "version": "1.4.11", | ||||||
|   "keywords": "tft, ePaper, display, ESP8266, NodeMCU, ESP32, M5Stack, ILI9341, ST7735, ILI9163, S6D02A1, ILI9486, ST7789", |   "keywords": "tft, ePaper, display, ESP8266, NodeMCU, ESP32, M5Stack, ILI9341, ST7735, ILI9163, S6D02A1, ILI9486, ST7789", | ||||||
|   "description": "A TFT and ePaper SPI graphics library for ESP8266 and ESP32", |   "description": "A TFT and ePaper SPI graphics library for ESP8266 and ESP32", | ||||||
|   "repository": |   "repository": | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| name=TFT_eSPI | name=TFT_eSPI | ||||||
| version=1.4.10 | version=1.4.11 | ||||||
| author=Bodmer | author=Bodmer | ||||||
| maintainer=Bodmer | maintainer=Bodmer | ||||||
| sentence=A fast TFT graphics library for ESP8266 and ESP32 processors for the Arduino IDE | sentence=A fast TFT graphics library for ESP8266 and ESP32 processors for the Arduino IDE | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Bodmer
						Bodmer