So Basically I have tried and have a success to make it work all but the Display, it just keep displaying Black. I used the HyperDisplay 4DLCD-320240 Example, the ILI9341 from the Adafruit Library and the ILI9341 from teensy and nothing seems to work. I would very much welcome any help.
I had not tried the Teensy but used other processors on the carrier board. The screen needs to be set reversed.
During my tests I was dissatisfied with the provided libary. Only for the screen not for the buttons, APA102 LEDs and tone. I have created a number of libaries. Some based on what others had done for other boards, some nearly from scratch. Give it try they are on https://github.com/paulvha/MicroMod and let us know.
Just did the test with the Teensy and it needs adjustment in the top of the sketch.
For now change it to:
// MicroMod Input and Display carrier board
#define bl_pin CORE_PIN0_BIT //PWM0 // background light pin
#define TFT_CS CORE_PIN2_BIT //D0 // TFT CS Chipselect
#define TFT_RST -1 // TFT RST No reset used
#define TFT_DC CORE_PIN3_BIT //D1 // TFT DC Data command
As I find more time I will update my libraries in a better way.
Hello, Thank you very much for the help, but sadly, I got nothing on the LCD it just stay on black. Also it shows something on the Serial Monitor that I think may help find the problem. Does the self-diagnostic supposed to show 0x0 if there is no problem?
ILI9341 Test on MicroMod Input and Display carrier board!
Display Power Mode: 0x0
MADCTL Mode: 0x0
Pixel Format: 0x0
Image Format: 0x0
Self Diagnostic: 0x0
Benchmark Time (microseconds)
Try to download the display library from the previously mentioned link. I have updated the examples for Teensy and tested 3 of them…
I have downloaded and tried it on the legacy Arduino IDE, as well as using your Display Library but it still shows the diagnostic earlier today. I’m starting to think that my display was not working from the factory. It still has Black Color display when powering ON and I did confirm the display to Power ON because of the Backlight.
ILI9341 Test on MicroMod Input and Display carrier board!
Display Power Mode: 0x0
MADCTL Mode: 0x0
Pixel Format: 0x0
Image Format: 0x0
Self Diagnostic: 0x0
Benchmark Time (microseconds)
Screen fill 898589
Text 34216
Lines 330328
Horiz/Vert Lines 72733
Rectangles (outline) 46216
Rectangles (filled) 1865076
Circles (filled) 194972
Circles (outline) 144807
Triangles (outline) 76854
Triangles (filled) 596248
Rounded rects (outline) 84136
Rounded rects (filled) 1852351
Done!
looks like there is a problem… when I do example1 I get
17:15:52.515 → ILI9341 Test on MicroMod Input and Display carrier board!
17:15:52.720 → Display Power Mode: 0x94
17:15:52.720 → MADCTL Mode: 0x48
17:15:52.720 → Pixel Format: 0x5
17:15:52.720 → Image Format: 0x80
17:15:52.720 → Self Diagnostic: 0xC0
17:15:52.720 → Benchmark Time (microseconds)
17:15:52.753 → Screen fill 903702
17:15:54.150 → Text 34321
17:15:57.342 → Lines 330912
17:15:59.903 → Horiz/Vert Lines 73135
17:16:00.633 → Rectangles (outline) 46469
17:16:01.364 → Rectangles (filled) 1875687
17:16:03.987 → Circles (filled) 195835
17:16:04.353 → Circles (outline) 144978
17:16:04.983 → Triangles (outline) 77015
17:16:05.748 → Triangles (filled) 599464
17:16:07.109 → Rounded rects (outline) 84428
17:16:07.873 → Rounded rects (filled) 1862816
17:16:10.430 → Done!
I have selected the Teensy Micromod
for port I have to select on my Ubuntu system /dev/ttyACM0(Teensy 3.1 / 3.2) as the Teensy Micromod fails
Which Teensy library version do you use ?
I’m using Teensyduino 1.58 and Arduino IDE 1.8.19, I have also used yesterday the current version for the Arduino IDE 2.1.0 and Teensyduino current version.
Also I have used a lower SPI Clock settings. As I can see that the Teensy fails to communicate with the display because of 0x0 diagnostics.
I have found a solution that works, my Display now works like a charm.
If you have similar problems as mine and you have seen this diagnostics from the Serial Monitor.
ILI9341 Test on MicroMod Input and Display carrier board!
Display Power Mode: 0x0
MADCTL Mode: 0x0
Pixel Format: 0x0
Image Format: 0x0
Self Diagnostic: 0x0
Reseat both the Display and Teensy Processor from the Connector and the M.2 Connector, Properly Reseating my Display and Processor worked.
Thank you Paul for the Help.
COOOL !!!.. good to know it works now. Great tips !
Also try the other 2 libraries that I created
regards,
Paul