Spark Logic

16 BIT HX8357C

nyx123 Sat Jan 20, 2018 4:49 pm

Any wiring diagram from my 3.2 tft lcd screen shield (16 bit hx8375c) to my “bluepill” ? I connected with my own but it appears only a white screen seems my wiring is messes me.

I use this library from stevestrong https://github.com/stevstrong/Adafruit_ … 6bit_STM32 and use the graphic test example and outputs the serial , this

TFT LCD test
TFT size is 320x480
TFT begin done.
rotation: 0, runtime: 23229
rotation: 1, runtime: 23229
rotation: 2, runtime: 23229
rotation: 3, runtime: 23230

Benchmark Time (microseconds)
Screen fill 54845
Text 23229
Lines 423012
Horiz/Vert Lines 6839
Rectangles (outline) 5713
Rectangles (filled) 134014
Circles (filled) 187446
Circles (outline) 177968
Triangles (outline) 118044
Triangles (filled) 122775
Rounded rects (outline) 53757
Rounded rects (filled) 192713
Done!
rotation: 0, runtime: 23229
rotation: 1, runtime: 23229
rotation: 2, runtime: 23229
rotation: 3, runtime: 23229

Benchmark Time (microseconds)
Screen fill 54845
Text 23229
Lines 423013
Horiz/Vert Lines 6837
Rectangles (outline) 5713
Rectangles (filled) 134018
Circles (filled) 187445
Circles (outline) 177966
Triangles (outline) 118045
Triangles (filled) 122777
Rounded rects (outline) 53757
Rounded rects (filled) 192715
Done!
rotation: 0, runtime: 23229
rotation: 1, runtime: 23229
rotation: 2, runtime: 23229
rotation: 3, runtime: 23229

Benchmark Time (microseconds)
Screen fill 54845
Text 23228
Lines 423013
Horiz/Vert Lines 6837
Rectangles (outline) 5712
Rectangles (filled) 134011
Circles (filled) 187442
Circles (outline) 177967
Triangles (outline) 118044
Triangles (filled) 122778
Rounded rects (outline) 53757
Rounded rects (filled) 192713
Done!
rotation: 0, runtime: 23231
rotation: 1, runtime: 23229
rotation: 2, runtime: 23229
rotation: 3, runtime: 23229

Benchmark Time (microseconds)
Screen fill 54845
Text 23229
Lines 423013
Horiz/Vert Lines 6839
Rectangles (outline) 5712
Rectangles (filled) 134017
Circles (filled) 187446
Circles (outline) 177966
Triangles (outline) 118045
Triangles (filled) 122779
Rounded rects (outline) 53757
Rounded rects (filled) 192714
Done!
rotation: 0, runtime: 23231
rotation: 1, runtime: 23231
rotation: 2, runtime: 23229
rotation: 3, runtime: 23230

Benchmark Time (microseconds)
Screen fill 54845
Text 23229
Lines 423011
Horiz/Vert Lines 6839
Rectangles (outline) 5713
Rectangles (filled) 134008
Circles (filled) 187444
Circles (outline) 177966
Triangles (outline) 118045
Triangles (filled) 122787
Rounded rects (outline) 53756
Rounded rects (filled) 192712
Done!
rotation: 0, runtime: 23230
rotation: 1, runtime: 23231
rotation: 2, runtime: 23231
rotation: 3, runtime: 23229

Benchmark Time (microseconds)
Screen fill 54845
Text 23229
Lines 423011
Horiz/Vert Lines 6839
Rectangles (outline) 5713
Rectangles (filled) 134018
Circles (filled) 187444
Circles (outline) 177966
Triangles (outline) 118044
Triangles (filled) 122789
Rounded rects (outline) 53757
Rounded rects (filled) 192712
Done!

Replies

stevestrong Mon Jan 22, 2018 3:09 pm

I might have discovered a (the) bug.
Please replace header line 128 with this line:
#define writeCmd(d) { CS_ACTIVE_CD_COMMAND; writeData_(d); WR_STROBE; }

nyx123 Mon Jan 22, 2018 4:43 pm

[stevestrong – Mon Jan 22, 2018 3:09 pm] –
Please try this and let me know the result.

I updated the file already but still got white screen. Previously you mention to short the R4 for the PB2 to be used, taking note that I can`t do it because of lacking of tools to used , am I doing it right? Probably no :lol:

stevestrong Tue Jan 23, 2018 3:44 pm

It turned out that it was no bug in the software, the CS and CD pins were set correctly in another macro in line 187.

Due to not correspondingly working PB2 some coordinates and colors can be wrong, but you should be able to see something on the display.

Do you have an oscilloscope?

If not, I would suggest to make a short test program to toggle all involved data and control pins, one by one.
If this is working (except of PB2) then you should change the sketch piece by piece to include the display, let’s say, display a red point at (100,100).
If this is working, then display two different colored pixels at (10,10) and (20,20).
Then draw a blue filled rectangle at (30,30).
And so on…

Sign in to reply