Mcufriend code not compiling on mac

Hello, I am on a mac currently and I have installed all required libraries. However, whenever I import mcufriend_kbv and run one of the example sketches, this error comes up and I have no idea how to solve it.

...more similar errors above..

/Users/mazharabro/Documents/Arduino/libraries/MCUFRIEND_kbv/MCUFRIEND_kbv.cpp:888:13: note: in expansion of macro 'CS_IDLE'
             CS_IDLE;
             ^~~~~~~
/Users/mazharabro/Documents/Arduino/libraries/MCUFRIEND_kbv/utility/mcufriend_shield.h:1216:20: note: suggested alternative: 'PIN_MISO'
 #define CS_IDLE    PIN_HIGH(CS_PORT, CS_PIN)
                    ^
/Users/mazharabro/Documents/Arduino/libraries/MCUFRIEND_kbv/MCUFRIEND_kbv.cpp:888:13: note: in expansion of macro 'CS_IDLE'
             CS_IDLE;
             ^~~~~~~

exit status 1

Compilation error: exit status 1

My IDE version is 2.3.2
Any help would be appreciated, thanks.

You say you're using IDE 2.3.2, so I don't think your question has anything to do with IDE 1.X. So I've moved it to Programming Questions, which is probably a closer fit.

You neglected to tell us what board you're trying to compile for. That's fairly important information.

My bad. UNO R4 WiFi

It would appear that the library in question has not yet been officially updated for the R4 family. However, I'm sure if you search the forum you'll find an unofficial replacement for utility/mcufriend_shield.h that will do the job for shields. I'm quite sure it exists.

Uno R4 Wifi TFTLCD shield

I'm not too sure how to set that up

Giving up after less than 3 minutes? You'll have to put in more effort than that.

I imported it as a library and now it works. Only problem is, the touchscreen feature is completely gone? How do I fix that?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.