Waveshare Touch Shield Rev2.1

Hi guys,

I bought this Touch Shield: 2.8inch Touch LCD Shield for Arduino (waveshare.com) and tried to run the examples from HX8347D_kbv.h lib, found on github. But it doesn't run on an arduino Mega. I don't hava a Uno.
After reading the Add touch functionality to Waveshare 2.8 tft touch shield for Mega (arduino.cc) and Help! Make 2.8 tft touch shield for uno working on MEGA Problem (arduino.cc) i didn't get it working.
My knowledge about MCUs is not the best but i worked with them for a few weeks and normaly got all problems solved with "google". Not in this case.
The libs from "wavesharewiki" work, so i think the touch shield is intact.
Is there any update in the Shield Pinout or stuff like that ?
Sorry, my english is not the best.
I can buy an other one, but in my mind i'm not happy with this kind of solving problems :smiley:
i want to know WHY!:smiley:

Hello !

Your LCD have a SPI protocol and need to use there own libraries
Which library you are using ? (send a link)

In comment : if you have a parallel shields from mcufrinds ....
you need to enable HX8347D driver and then your lcd works ...

open MCUFRIEND_kbv.cpp and uncomment this line:

#define SUPPORT_8347D //HX8347-D, HX8347-G, HX8347-I, HX8367-A +520 bytes, 0.27s

No, the Waveshare shield has a SPI TFT controller. MCUFRIEND_kbv is designed for Parallel controllers.

Install HX8347D_kbv.h from GitHub. (which is not supported by the Library Manager)

The shield should work on Uno, Mega2560, Leonardo, Nano-Every

Please let me know which example and what problem.

David.

Edit. Ah-ha. Waveshare has changed the controller chip from Himax HX8347-D to Sitronix ST7789.
The schematic has changed too. The HX8347 was write-only. The new ST7789 appears to be read-write.

When I bought my Waveshare HX8347 Shield the Waveshare code was "unconventional". Life is much easier with GFX style libraries:
Install Adafruit_ST7789 via the IDE Library Manager.

Thanks a lot for the new idea. i already installed your lib from github and did all the stuff in the posts i found.
With the Adafruit_ST7789 it worked :)!
From now I can go on :)!

Some colors are not correct, but i think fixing it will be not so difficult

Two main issues.
Black - White swap i.e. invertScreen()
Red - Blue swap i.e. set a bit in a register.

Colour accuracy means adjust Gamma registers.

David.

This topic was automatically closed after 120 days. New replies are no longer allowed.