Ucglib: cannot convert 'volatile uint32_t* {aka volatile unsigned int*}' to 'volatile uint8_t*

mhm_nab
Posts: 3
Joined: Sat Sep 09, 2017 8:36 am

Ucglib: cannot convert 'volatile uint32_t* {aka volatile unsigned int*}' to 'volatile uint8_t*

Postby mhm_nab » Thu Oct 12, 2017 11:08 am

Hi,

I have an ILI9341 display. I am using the latest Arduino (1.8.5) and latest Ucglib (1.4.0). I have tried on 2 different machines, MAC & Windows, but still getting the same error:
/Users/xxxx/Documents/Arduino/libraries/Ucglib/src/Ucglib_orig.cpp: In function 'void ucg_com_arduino_init_8bit(ucg_t*)': /Users/xxxxx/Documents/Arduino/libraries/Ucglib/src/Ucglib_orig.cpp:786:20: error: cannot convert 'volatile uint32_t* {aka volatile unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in assignment u8g_data_port[0] = portOutputRegister(digitalPinToPort(ucg->pin_list[UCG_PIN_D0]));

there are in total 9 errors like this (i.e. from u8g_data_port[0] to [8]). In addition, in both machines I see the library under "Incompatible" when going to "File --> Examples".

This is my constructor:
Ucglib_ILI9341_18x240x320_SWSPI ucg(/*sclk=*/ 18, /*data=*/ 23, /*cd=*/ 13 , /*cs=*/ 5, /*reset=*/ 19);
My code is the HelloWorld from the Ucglib

Thanks

tele_player
Posts: 90
Joined: Sun Jul 02, 2017 3:38 am

Re: Ucglib: cannot convert 'volatile uint32_t* {aka volatile unsigned int*}' to 'volatile uint8_t*

Postby tele_player » Fri Oct 13, 2017 8:09 pm

You're using a version of the library that hasn't been ported to ESP32, or hasn't been ported correctly.

Who is online

Users browsing this forum: No registered users and 125 guests