I have just published a GLCD device discovey program. If you have an UNO and you have one of the GLCD shields and you are not sure what GLCD controller it has - this program should determine the type of controller.
If you have a PIC and you want to use one of these 8bit bus GLCDs then the program will do the same.. it will just take a bit more time to hook up!
This supported 8bit bus GLCD microcontrollers they are typically UNO shields. Lots of different types and this program will help determine which driver to use.
This is a standalone program which means you do not need any GLCD drivers. Get the code off GitHub, compile and try. Get it here from GitHub
Summary of ouput
Shown below are examples output from the software. This examines the GLCD controller.
Essentially, hook up the GLCD to the microcontroller (Ardunio UNO and any other type), compile and program, look at your terminal and you will see the results on the terminal… what could be simplier.
Two examples are show below.
1 .Terminal Output for a HX8347-G(T) microcontroller
This is a HX8347-G(T) microcontroller - look at the bottom of this listing to see the determined type of controller. Refer to the specific datasheet for more information on the registers.
This shows the determination of the microcontroller type.
This is a ILI9481 microcontroller - this show the determined type of controller. Refer to the specific datasheet for more information on the registers.
This is an HX8347 GLCD. Stan sent it me a while ago. We (Stan and I ) believed this was an ILI9341 and as it did not work with the ILI9341 driver.. it was broken.
Not anymore! I used the GLCD discovery program to find that it was an HX8347-G(T)....
Cheers Stan...another GLCD. The next problem.... we had no GLCD driver for the HX8347-G(T) - we do now! See the next post.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Groovy. Could save wasteing time on wrong device. I noticed lines in the ili include-similar?
'Read IC device code.
'The 1st parameter means the IC version.
'The 2rd and 3rd parameter mean the IC model name, should be 9341
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have just published a GLCD device discovey program. If you have an UNO and you have one of the GLCD shields and you are not sure what GLCD controller it has - this program should determine the type of controller.
If you have a PIC and you want to use one of these 8bit bus GLCDs then the program will do the same.. it will just take a bit more time to hook up!
This supported 8bit bus GLCD microcontrollers they are typically UNO shields. Lots of different types and this program will help determine which driver to use.
This is a standalone program which means you do not need any GLCD drivers. Get the code off GitHub, compile and try. Get it here from GitHub
Summary of ouput
Shown below are examples output from the software. This examines the GLCD controller.
Essentially, hook up the GLCD to the microcontroller (Ardunio UNO and any other type), compile and program, look at your terminal and you will see the results on the terminal… what could be simplier.
Two examples are show below.
1 .Terminal Output for a HX8347-G(T) microcontroller
This is a HX8347-G(T) microcontroller - look at the bottom of this listing to see the determined type of controller. Refer to the specific datasheet for more information on the registers.
This shows the determination of the microcontroller type.
2 .Terminal Output for a ILI9481 microcontroller
This is a ILI9481 microcontroller - this show the determined type of controller. Refer to the specific datasheet for more information on the registers.
This is an HX8347 GLCD. Stan sent it me a while ago. We (Stan and I ) believed this was an ILI9341 and as it did not work with the ILI9341 driver.. it was broken.
Not anymore! I used the GLCD discovery program to find that it was an HX8347-G(T)....
Cheers Stan...another GLCD. The next problem.... we had no GLCD driver for the HX8347-G(T) - we do now! See the next post.
Groovy. Could save wasteing time on wrong device. I noticed lines in the ili include-similar?
'Read IC device code.
'The 1st parameter means the IC version.
'The 2rd and 3rd parameter mean the IC model name, should be 9341
Good point. I should able to create similar tool for SPI connected GLCD. I can look at that next week.
:-)
Anobium your are a genious.
Your I2C Discovery Program is still waiting for a standalone Project and you come around the Corner with this!
SPI GLCD discovery. See https://github.com/Anobium/Great-Cow-BASIC-Demonstration-Sources/blob/master/GLCD%20%20Solutions/GLCD%20Discovery%20for%20MCUFRIEND%20devices/GLCD_Discovery_SPI_Data.gcb
This uses software SPI so no need to sort out PPS or other port configuration. Test on mega328p but should work on all microcontrollers.
Example:
You extended the 'discovery section' by editing in GitHub and then sharing with us all!
Enjoy
Last edit: Anobium 2017-11-17