• sales

    +86-0755-88291180

Error Msg for article "ESP32 C3 0.42LCD display Hello world"

2025-09-24 00:28:14 Ask

I am attempting to follow the topic "ESP32 C3 0.42LCD display Hello world" but I get the following error on compile.


error: invalid preprocessing directive #ifdefU8X8_HAVE_HW_SPI

 


1answers
SpotPearGueste93f8
Answer time:
2025-09-25 18:25:24

I see your error #ifdefU8X8_HAVE_HW_SPI, there should be a space, it should be #ifdef 8X8_HAVE_HW_SPI. I suggest you copy the example code provided in the tutorial again to ensure it matches the sample code.

https://spotpear.com/index/study/detail/id/996.html

Like0

report