3.2" TFT Shield with resistive touch (HCARDU0109 & HCARDU0111)

andrew
Site Admin
Posts: 1396
Joined: Sun Aug 05, 2012 4:15 pm

Re: 3.2" TFT Shield with resistive touch (HCARDU0109 & HCARDU0111)

Post by andrew » Thu Jan 20, 2022 11:21 am

Not for this display I'm afraid as it uses a buffered parallel connection. The non-shield version uses an SPI interface if that is of any use:

viewtopic.php?f=75&t=2843

Although note that the touch screen on this display requires a separate interface.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

ChrisSharp
Posts: 30
Joined: Thu Dec 31, 2020 1:22 pm

Re: 3.2" TFT Shield with resistive touch (HCARDU0109 & HCARDU0111)

Post by ChrisSharp » Fri Jan 21, 2022 12:44 pm

I should have waited for this reply before I bought one. Hey-ho.

andrew
Site Admin
Posts: 1396
Joined: Sun Aug 05, 2012 4:15 pm

Re: 3.2" TFT Shield with resistive touch (HCARDU0109 & HCARDU0111)

Post by andrew » Fri Jan 21, 2022 3:49 pm

Yeah sorry I think that was a case of bad timing. We can always arrange a return if you don’t want it.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

ChrisSharp
Posts: 30
Joined: Thu Dec 31, 2020 1:22 pm

Re: 3.2" TFT Shield with resistive touch (HCARDU0109 & HCARDU0111)

Post by ChrisSharp » Tue Jan 25, 2022 2:19 pm

No problem,

Before I start the struggle. Another basic question. Are the TX and RX pins available. I'd like to use a MAX485 transfer module with this.

Cheers

andrew
Site Admin
Posts: 1396
Joined: Sun Aug 05, 2012 4:15 pm

Re: 3.2" TFT Shield with resistive touch (HCARDU0109 & HCARDU0111)

Post by andrew » Tue Jan 25, 2022 3:12 pm

Another basic question. Are the TX and RX pins available
I assume on the Arduino? If so then yes, according to the schematic the Tx and Rx pins (and digital pin 2) on the shield aren't connected to anything.

You will have to find some way of getting access to the Arduinos header though as the shield physically blocks access to it.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

Obrad21
Posts: 1
Joined: Fri Feb 17, 2023 8:41 am

Re: 3.2" TFT Shield with resistive touch (HCARDU0109 & HCARDU0111)

Post by Obrad21 » Fri Feb 17, 2023 8:45 am

Hello, i am new to display and i have recently gotten myself an open-smart ili9327 3.2 inch display and my wish is to use it with lvgl to create a keyboard. The problem is when i connect it all and calibrate the display only one corner of the display works as touchscreen as a scaled down version. I draw in the middle of that area and it shows me im drawing on the middle of the display. Every other part except that corner is unresponsive. Could it be a wiring problem since i tried adafruits touch test ans every part worked.

RGV250
Posts: 3
Joined: Sat Dec 05, 2015 7:04 pm

Re: 3.2" TFT Shield with resistive touch (HCARDU0109 & HCARDU0111)

Post by RGV250 » Sat May 25, 2024 5:24 pm

Hi,
I have just tried to use the library for display HCARDU109 and get so many errors I am not sure where to start.
In file included from C:\Users\Admin\Documents\Arduino\libraries\HCDisplay\HCDisplay.cpp:77:0:
C:\Users\Admin\Documents\Arduino\libraries\HCDisplay\hardware/HX8352B_Shield.cpp:736:6: error: prototype for 'void Display::_DWriteCol(int16_t, int16_t, uint8_t, const char*)' does not match any in class 'Display'
void Display::_DWriteCol(int16_t x, int16_t y, uint8_t ByteRows, const char Data[])
^~~~~~~
In file included from C:\Users\Admin\Documents\Arduino\libraries\HCDisplay\HCDisplay.h:92:0,
from C:\Users\Admin\Documents\Arduino\libraries\HCDisplay\HCDisplay.cpp:64:
C:\Users\Admin\Documents\Arduino\libraries\HCDisplay\hardware/HX8352B_Shield.h:1540:8: error: candidate is: void Display::_DWriteCol(int16_t, int16_t, uint8_t, const uint8_t*)
void _DWriteCol(int16_t x, int16_t y, uint8_t ByteRows, const uint8_t *Data);
^~~~~~~~~~
In file included from C:\Users\Admin\Documents\Arduino\libraries\HCDisplay\HCDisplay.cpp:77:0:
C:\Users\Admin\Documents\Arduino\libraries\HCDisplay\hardware/HX8352B_Shield.cpp:780:6: error: prototype for 'void Display::_DPlotCol(int16_t, int16_t, uint8_t, const char*)' does not match any in class 'Display'
void Display::_DPlotCol(int16_t x, int16_t y, uint8_t ByteRows, const char Data[])
^~~~~~~
In file included from C:\Users\Admin\Documents\Arduino\libraries\HCDisplay\HCDisplay.h:92:0,
from C:\Users\Admin\Documents\Arduino\libraries\HCDisplay\HCDisplay.cpp:64:
C:\Users\Admin\Documents\Arduino\libraries\HCDisplay\hardware/HX8352B_Shield.h:1542:8: error: candidate is: void Display::_DPlotCol(int16_t, int16_t, uint8_t, const uint8_t*)
void _DPlotCol(int16_t x, int16_t y, uint8_t ByteRows, const uint8_t *Data);
^~~~~~~~~
C:\Users\Admin\Documents\Arduino\libraries\HCDisplay\HCDisplay.cpp: In member function 'void HCDisplay::Contrast(uint8_t)':
C:\Users\Admin\Documents\Arduino\libraries\HCDisplay\HCDisplay.cpp:243:2: error: 'DContrast' was not declared in this scope
DContrast(mode);
^~~~~~~~~
C:\Users\Admin\Documents\Arduino\libraries\HCDisplay\HCDisplay.cpp:243:2: note: suggested alternative: 'Contrast'
DContrast(mode);
^~~~~~~~~
Contrast

exit status 1

Compilation error: exit status 1
Regards,
Bob

andrew
Site Admin
Posts: 1396
Joined: Sun Aug 05, 2012 4:15 pm

Re: 3.2" TFT Shield with resistive touch (HCARDU0109 & HCARDU0111)

Post by andrew » Fri Jun 07, 2024 10:38 am

I have just tried to use the library for display HCARDU109 and get so many errors I am not sure where to start.

My apologies for the slow response. For some odd reason your post was flagged by our forums approvals system and was missed until now.

It looks like the HX8352B support got broken by the V1.2.1 update. I have updated the library to version (V1.2.2) which should hopefully fix this. This update is currently available via the first post on the libraries forum thread here:

viewtopic.php?f=58&t=2827&p=7132

Assuming you still want to try it, just download the new version (1.2.2), unzip it, and copy it over your existing version.
Any feedback will be appreciated. I will upload to github and PlatformIO once I’m sure the issue has been fixed.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

RGV250
Posts: 3
Joined: Sat Dec 05, 2015 7:04 pm

Re: 3.2" TFT Shield with resistive touch (HCARDU0109 & HCARDU0111)

Post by RGV250 » Tue Jun 11, 2024 9:20 pm

Hi,
I am still having issues. I tried copying it over and then deleting the directories and installing it and still does not compile.

Bob
Arduino: 1.8.12 (Windows 10), Board: "Arduino Uno"

C:\Users\Admin\AppData\Local\Temp\arduino_modified_sketch_793339\HCDisplay_Big_Demo.ino: In function 'void Intro()':

C:\Users\Admin\AppData\Local\Temp\arduino_modified_sketch_793339\HCDisplay_Big_Demo.ino:132:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

PrintCentre("Hello!", Scale, ResY / 2 - (Scale * 8 / 2));

^

C:\Users\Admin\AppData\Local\Temp\arduino_modified_sketch_793339\HCDisplay_Big_Demo.ino:138:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

PrintCentre("Hobby Components", 2, (ResY / 2) - 68);

^

C:\Users\Admin\AppData\Local\Temp\arduino_modified_sketch_793339\HCDisplay_Big_Demo.ino:139:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

PrintCentre("HCDisplay", 4, (ResY / 2) - 36);

^

C:\Users\Admin\AppData\Local\Temp\arduino_modified_sketch_793339\HCDisplay_Big_Demo.ino:140:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

PrintCentre("Library Demo", 2, (ResY / 2) + 12);

^

In file included from C:\Users\Admin\Documents\Arduino\libraries\HCDisplay-main\HCDisplay.cpp:77:0:

C:\Users\Admin\Documents\Arduino\libraries\HCDisplay-main\hardware/HX8352B_Shield.cpp:736:6: error: prototype for 'void Display::_DWriteCol(int16_t, int16_t, uint8_t, const char*)' does not match any in class 'Display'

void Display::_DWriteCol(int16_t x, int16_t y, uint8_t ByteRows, const char Data[])

^~~~~~~

In file included from C:\Users\Admin\Documents\Arduino\libraries\HCDisplay-main\HCDisplay.h:92:0,

from C:\Users\Admin\Documents\Arduino\libraries\HCDisplay-main\HCDisplay.cpp:64:

C:\Users\Admin\Documents\Arduino\libraries\HCDisplay-main\hardware/HX8352B_Shield.h:1540:8: error: candidate is: void Display::_DWriteCol(int16_t, int16_t, uint8_t, const uint8_t*)

void _DWriteCol(int16_t x, int16_t y, uint8_t ByteRows, const uint8_t *Data);

^~~~~~~~~~

In file included from C:\Users\Admin\Documents\Arduino\libraries\HCDisplay-main\HCDisplay.cpp:77:0:

C:\Users\Admin\Documents\Arduino\libraries\HCDisplay-main\hardware/HX8352B_Shield.cpp:780:6: error: prototype for 'void Display::_DPlotCol(int16_t, int16_t, uint8_t, const char*)' does not match any in class 'Display'

void Display::_DPlotCol(int16_t x, int16_t y, uint8_t ByteRows, const char Data[])

^~~~~~~

In file included from C:\Users\Admin\Documents\Arduino\libraries\HCDisplay-main\HCDisplay.h:92:0,

from C:\Users\Admin\Documents\Arduino\libraries\HCDisplay-main\HCDisplay.cpp:64:

C:\Users\Admin\Documents\Arduino\libraries\HCDisplay-main\hardware/HX8352B_Shield.h:1542:8: error: candidate is: void Display::_DPlotCol(int16_t, int16_t, uint8_t, const uint8_t*)

void _DPlotCol(int16_t x, int16_t y, uint8_t ByteRows, const uint8_t *Data);

^~~~~~~~~

C:\Users\Admin\Documents\Arduino\libraries\HCDisplay-main\HCDisplay.cpp: In member function 'void HCDisplay::Contrast(uint8_t)':

C:\Users\Admin\Documents\Arduino\libraries\HCDisplay-main\HCDisplay.cpp:243:2: error: 'DContrast' was not declared in this scope

DContrast(mode);

^~~~~~~~~

C:\Users\Admin\Documents\Arduino\libraries\HCDisplay-main\HCDisplay.cpp:243:2: note: suggested alternative: 'Contrast'

DContrast(mode);

^~~~~~~~~

Contrast

exit status 1
Error compiling for board Arduino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

andrew
Site Admin
Posts: 1396
Joined: Sun Aug 05, 2012 4:15 pm

Re: 3.2" TFT Shield with resistive touch (HCARDU0109 & HCARDU0111)

Post by andrew » Wed Jun 12, 2024 10:25 am

Hi,
I am still having issues. I tried copying it over and then deleting the directories and installing it and still does not compile.

Bob

Sorry about that. I’ve now re-uploaded it to the same place. It’s still version 1.2.2 but dated 12/06/24:

viewtopic.php?f=58&t=2827&p=7132

Hopefully all errors are fixed now!
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

Post Reply

Return to “Arduino Shields”