needs an 8 line level converter. I got one working with resistors but it's just one way ie. display
#defineGLCD_DCDIGITAL_8' Data command line
#defineGLCD_CSDIGITAL_10' Chip select line
#defineGLCD_RESETDIGITAL_9' Reset line
#defineGLCD_DIDIGITAL_12' Data in | MISO
#defineGLCD_DODIGITAL_11' Data out | MOSI
#defineGLCD_SCKDIGITAL_13' Clock Line;this is for touch
#defineXPT2046_DIDIGITAL_12' Data in | MISO
#defineXPT2046_DODIGITAL_11' Data out | MOSI
#defineXPT2046_SCKDIGITAL_13' Clock Line
#defineXPT2046_CSDIGITAL_2' Chip select line
#defineXPT2046_IRQANALOG_5
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry if I was over enthusiastic about the glcd. The touch lets you not have to hard wire real switches for testing some projects. Touching a box on the screen could be used.
I had lots of fun learning about these displays and glad they have been made available for gcb users. Great work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The model which I found is announced to be bidirectional BUT ... when I read the description AT THE END, it seems in fact to be a "double-double unidirectional" : two inputs and two outputs on each side ! Very strange ... I think it could be used for an I2C display but not for an I2C touch control, because the data line must be bidirectional ....
Last edit: Bertrand BAROTH 2022-02-15
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The last post about Surenoo Display : it doesn't work, neither in mode 10 nor in mode 12 (BTW I had to re-define the connexions to the I2C interface). And I had in my stock the same display, without I2C, so I connected it in mode 4 ... AND IT DIDN'T WORK ! I made the test with the demo version of MikroPascal : NO EFFECT ! I think that Surenoo doesn't use the HD44780 controller ... or that I made an error in connecting ?
Last edit: Bertrand BAROTH 2022-02-24
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Avoid buying the touch display that I signalled on Feb 16 : I plugged the USB adapter in, it was not recognized by my W7 x64 pro. So I tried soldering a "derivation" to connect my own : "Flash formatting error" after 12 to 15 percent (variable ! ) ; after contacting the seller, I got the address to download the driver for their adapter ... and both setup procedures didn't work ! So I had to copy all files to System32\drivers, and now my adapter got installed. I succeeded in downloading my project ... but in test mode the display does not react to any command, and sends no data back, it stays on the "Downloading" screen ... And I tried a test routine on STK200, attached (it seems that there are 10K pullups on the sda and scl line, but I saw in the arduino routines which I can't understand further that they speak about activating pullups ??? ), I allways read back 255 (all leds on). And no documentation excepted for arduino available. So I think finally that I will stay simply with my pushbuttons and leds on parallel ports ... KILL CRAPDUINO ! :(
Thanks for Your idea but, as I said, I stop all developments related with Voice Recognition, I2C or other interfaces using specific protocols, LCD displays, and stay only with parallel ports, conventional pushbuttons and Leds.
Last edit: Bertrand BAROTH 2022-02-28
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I use these https://www.ebay.co.uk/itm/284650168254?hash=item424678dfbe:g:N9QAAOSwFSFiB2jJ
I got a frequency counter that uses nixies but I'd prefer the vertical ones that look like valves.
I would prefer these :
https://www.ebay.co.uk/itm/224454634243?_trkparms=amclksrc%3DITM%26aid%3D1110006%26algo%3DHOMESPLICE.SIM%26ao%3D1%26asc%3D237043%26meid%3D7f341bfd7b314c718b1b28e7bc29f1df%26pid%3D101195%26rk%3D5%26rkt%3D12%26sd%3D124772088720%26itm%3D224454634243%26pmt%3D1%26noa%3D0%26pg%3D2047675%26algv%3DSimplAMLv9PairwiseWebMskuAspectsV202110NoVariantSeed%26brand%3DUnbranded&_trksid=p2047675.c101195.m1851&amdata=cksum%3A2244546342437f341bfd7b314c718b1b28e7bc29f1df%7Cenc%3AAQAGAAACEIx1gFyUoUn6JgZxHqhiuqQzomVghOnKEd2dNWAxoEA91Ws8Zji8cGTWKN4jsfCVYQedYhkmik%252BBSx3fD3U8R5NtMI5xg2REdlcX9X%252B9x2i8rso39biJL%252B5XCXvbfFkozE%252BOfApSGwI24485lHtjhm7JcsP5LvW1YlmCD1i%252BGPYXjfmDfQWq%252BFzMurOHZEfCjTUR7EJ9EIhBLpf62R7mhth48Sqcw44SJEC21El0zxmosfbfvp8nJ4ktMreCjCW%252BqWz9hEyq0ZfgIKB4ThOVxptEGo%252BzL48oSZ7fY2il38%252BS07Mrm4mkt8vUqaAhb38PzFDa0jMxyAcBM343WIpfp4LIGbhERFpNF3gIn%252BQ%252FtKUHg2k7z6OsVn8iZK3k0XHjGUTmAQX%252FmwDTjTB10LECMeIwMiLFX1vqbYcJLWU9Jrhd%252Bh130PyJ%252Fb6BoLD3oe2AVhN95p%252FA9aI2SuSGPXFW8Bo5shGqiHT3mQ1P7xLCh%252FrPuZAHhgvlvzDzcUwAZj7Zm4JY14tMNuNuIXdAbvNRpXyN4oX4viv%252FRWk9hPX9r1W2H634t1q5qd0w2nMrpdcQmfV5RRCkN81D%252B9NvUL%252FlzxuNA21p6OGOEPWAyt8GsfsQt5npvUHEu80Mlwtg4EInQnnHMGIr7VtPOJA6NXVA6cfkJ2r3cDXZ6PkJA7sEkaz1aMa%252F9HaAPLxt94pwk6mi5A%253D%253D%7Campid%3APL_CLK%7Cclp%3A2047675
(!) The other model cannot be shipped to France ...
needs an 8 line level converter. I got one working with resistors but it's just one way ie. display
Sorry if I was over enthusiastic about the glcd. The touch lets you not have to hard wire real switches for testing some projects. Touching a box on the screen could be used.
I had lots of fun learning about these displays and glad they have been made available for gcb users. Great work.
The model which I found is announced to be bidirectional BUT ... when I read the description AT THE END, it seems in fact to be a "double-double unidirectional" : two inputs and two outputs on each side ! Very strange ... I think it could be used for an I2C display but not for an I2C touch control, because the data line must be bidirectional ....
Last edit: Bertrand BAROTH 2022-02-15
Look at this :
https://fr.aliexpress.com/item/4000278663573.html?spm=a2g0o.productlist.0.0.521313a9WFJYeY&algo_pvid=6415da4e-4f5e-4ce0-84d3-aa633656a342&algo_exp_id=6415da4e-4f5e-4ce0-84d3-aa633656a342-15&pdp_ext_f=%7B%22sku_id%22%3A%2210000001137612503%22%7D&pdp_pi=-1%3B76.72%3B-1%3B-1%40salePrice%3BEUR%3Bsearch-mainSearch
But it seems to be not well documented.
But now look at this :
https://fr.aliexpress.com/item/1005001580662616.html?spm=a2g0o.productlist.0.0.f8182a617VVGtK&algo_pvid=a7bea83d-6798-49ef-a2fa-142ba4015fb1&algo_exp_id=a7bea83d-6798-49ef-a2fa-142ba4015fb1-3&pdp_ext_f=%7B%22sku_id%22%3A%2212000016673964280%22%7D&pdp_pi=-1%3B39.25%3B-1%3B-1%40salePrice%3BEUR%3Bsearch-mainSearch
As far as I understood, it seems to be possible to define several images via the editor and to select them via I2C commands ; this should be fine to have several touch menues according to context, with a command "tree" structure. And it works with 5v, can communicate via UART too and is rather affordable. I took (only) a glance at the instruction set, it remembers some features found in object oriented programming via RAD environments like VB and Delphi. Or am I wrong ?
Last edit: Bertrand BAROTH 2022-02-16
The last post about Surenoo Display : it doesn't work, neither in mode 10 nor in mode 12 (BTW I had to re-define the connexions to the I2C interface). And I had in my stock the same display, without I2C, so I connected it in mode 4 ... AND IT DIDN'T WORK ! I made the test with the demo version of MikroPascal : NO EFFECT ! I think that Surenoo doesn't use the HD44780 controller ... or that I made an error in connecting ?
Last edit: Bertrand BAROTH 2022-02-24
Send it to me.... I will sort. I do like a challenge!
OK ... Where should I send them (parallel and I2C version) ?
Avoid buying the touch display that I signalled on Feb 16 : I plugged the USB adapter in, it was not recognized by my W7 x64 pro. So I tried soldering a "derivation" to connect my own : "Flash formatting error" after 12 to 15 percent (variable ! ) ; after contacting the seller, I got the address to download the driver for their adapter ... and both setup procedures didn't work ! So I had to copy all files to System32\drivers, and now my adapter got installed. I succeeded in downloading my project ... but in test mode the display does not react to any command, and sends no data back, it stays on the "Downloading" screen ... And I tried a test routine on STK200, attached (it seems that there are 10K pullups on the sda and scl line, but I saw in the arduino routines which I can't understand further that they speak about activating pullups ??? ), I allways read back 255 (all leds on). And no documentation excepted for arduino available. So I think finally that I will stay simply with my pushbuttons and leds on parallel ports ... KILL CRAPDUINO ! :(
Last edit: Bertrand BAROTH 2022-02-27
Oh dear.
Have you used the I2C discovery program - to see if are getting any response ?
Use C:\GCB@Syn\GreatCowBasic\Demos\i2c_solutions\i2c_discovery\i2csoftwarediscovery_to_terminal_mega328p.gcb - adapt for the ports on your chip.
It really does not matter what the terminal shows as the results at the moment . does it show any results ?
Thanks for Your idea but, as I said, I stop all developments related with Voice Recognition, I2C or other interfaces using specific protocols, LCD displays, and stay only with parallel ports, conventional pushbuttons and Leds.
Last edit: Bertrand BAROTH 2022-02-28