Description
A few lines in the LVGL Sharp MIP Display driver throw a few at compile time throw error: expected expression before ';' token
For context my setup is:
- PlatformIO
- Using Arduino Framework
- Compiling with whatever PlatformIO provided, but I assume C++ because of Arduino (forgive my ignorance, first project)
I would love to say I tried to fix it, but I having only been using C/C++ for a week and a bit. So feel free to be as verbose as you like.
What MCU/Processor/Board and compiler are you using?
ESP32 DevKit
What LVGL version are you using?
8.3
What do you want to achieve?
Get display driver to compile.
What have you tried so far?
Code to reproduce
Offending lines below marked with /*Error Here*/
comment.
for(uint16_t act_y = 0 ; act_y < buf_h ; act_y++) {
buf[BUFIDX(0, act_y) - 1] = SHARP_MIP_REV_BYTE((act_y1 + act_y + 1)); /*Error Here*/
buf[BUFIDX(0, act_y) - 2] = 0;
}
if (lv_color_to1(color) != 0) {
buf[BUFIDX(x, y)] |= PIXIDX(x); /*Error Here*/
} else {
buf[BUFIDX(x, y)] &= ~PIXIDX(x); /*Error Here*/
}