![]() |
Forum Index : Microcontroller and PC projects : MM2: Fun with fonts
Page 1 of 2 ![]() ![]() |
|||||
Author | Message | ||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10197 |
Just implemented in Basic a generic way of using the HenningKarlson fonts Far too slow to be usable (14 seconds to write this screen) other than for static text and a lot of work to integrate into the CFunctions but I'll try and work on it over the next week or so ![]() |
||||
twofingers![]() Guru ![]() Joined: 02/06/2014 Location: GermanyPosts: 1570 |
Good idea to use these fonts! ![]() Perhaps you will build a converter too? causality ≠correlation ≠coincidence |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10197 |
Update Time reduced to 41msec ![]() |
||||
Grogster![]() Admin Group ![]() Joined: 31/12/2012 Location: New ZealandPosts: 9586 |
That beats the hell out of my "LEDmite" idea! ![]() Good one - keep up the fantastic work. This is a thread I am really interested in now, with the nice big LCD font. I assume you can make the LCD font any colour you like and not just green? I'd be going for red, as it would mimic an LED display then, and also be nice and easy to read from a short distance. Dropping from 14 seconds to 41mS is exceptionally impressive. With the 14 second one, was that totally in MMBASIC? That's how it reads in your first post. I assume that you have now got the screen drawing routines into Cfunction - hence the new 41mS draw time. 41mS is a very usable screen draw time... ![]() Smoke makes things work. When the smoke gets out, it stops! |
||||
Oldbitcollector![]() Senior Member ![]() Joined: 16/05/2014 Location: United StatesPosts: 172 |
Well done! I've put several of these little touchscreens on order. Looking forward to it! My Propeller/Micromite mini-computer project. |
||||
Zonker![]() Guru ![]() Joined: 18/08/2012 Location: United StatesPosts: 767 |
Afternoon Gent's... Where is a good source to get the touch screen units with the "correct" controller..? I would like to get some of these units to try out with the new Mk++ 64 pinner motor PCB coming out soon from WW... Matherp... Once again... Awesome... These display units will make UI coding much easer..! We can make simple touch buttons and different kinds of objects now... Sweet..! |
||||
twofingers![]() Guru ![]() Joined: 02/06/2014 Location: GermanyPosts: 1570 |
Hi Zonker, You can buy this displays on ebay (search: "2.4" 240x320 SPI TFT LCD 3.3V SD ILI9341") from china. They will sell it for ~6$. Regards Michael PS: Because SPI names always can be confusing, I made a small PIN-table (not tested yet). I hope I interpret peters instructions well. MM-PIN–––––––––––Display VCC–––––VCC (3.3V) GND–––––GND 2––––T_IRQ–––––––T_IRQ (touch) 3––––SPIout––––––SDO(MISO) 3––––SPIout-T––––T-DO (touch) 4––––I9341_CD––––D/C 5––––I9341_RESET–RESET 6––––I9341_CS––––CS 7––––T_CS––––––––T_CS (touch) 14–––SPIin–––––––SDI(MOSI) 14–––SPIin-T–––––T-DIN (touch) 25–––SPIclk––––––SCK 25–––SPIclk-T––––T-CLK (touch) causality ≠correlation ≠coincidence |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10197 |
I still need to tidy up the code for this version - 100-pin fun has got in the way ![]() I'll try and post something later this week. |
||||
twofingers![]() Guru ![]() Joined: 02/06/2014 Location: GermanyPosts: 1570 |
Thanks! until then we should use this code or this. (just to make it easier to find) edit;: The table above seems to be somehow wrong ![]() Touch functions are not working for me. ![]() Any help or tips appreciated! Michael causality ≠correlation ≠coincidence |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6268 |
OUT on the micromite should be connected to IN on the display. I have a couple of those displays with touch on the slow boat from China. I don't expect them for a couple of weeks. Jim VK7JH MMedit |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10197 |
Micromite is the "master", display and touch are both slaves MISO = Master in slave out MOSI = Master out slave in so SPIOUT on the micromite connects to MOSI on the display and visa versa with the labelling of the touch SPIOUT on the micromite connects to SPIIN on the touch. clocks work in parallel and each has a separate select pin |
||||
twofingers![]() Guru ![]() Joined: 02/06/2014 Location: GermanyPosts: 1570 |
Thank you both! But touch still does not work, with both combinations! 3--SPIout-T––––T-DO and 14–––SPIin-T–––––T-DIN 3--SPIout-T––––T-DIN and 14–––SPIin-T–––––T-DO (should work, but ...) Does anyone have a working plan please? I'm sure many user will be interested in this. Thanks in advance Michael causality ≠correlation ≠coincidence |
||||
WhiteWizzard Guru ![]() Joined: 05/04/2013 Location: United KingdomPosts: 2932 |
I have managed to get several various TFTs and OLEDs working now - just wish I had taken photos. Can I suggest you go back to getting the graphics working first. Then simply connect the touch wires as follows: T_IRQ to MicroMite pin (Pin number as defined in the code) Pin 2 by default on a 28pinner T_DO to MicroMite SPI IN (which is already connected to MISO from TFT) T_DIN to MicroMite SPI OUT (which is already connected to MOSI from TFT) T_CS to MicroMite pin (pin number as defined in the code) Pin 7 by default on a 28pinner T_CLK to MicroMite SPI_CLK (which is already connected to SCK) The above worked for me ![]() WW Just for completeness (for a 28pinner): SPI CLK = Pin 25 SPI OUT = Pin 3 SPI IN = Pin 14 |
||||
Zonker![]() Guru ![]() Joined: 18/08/2012 Location: United StatesPosts: 767 |
Ok... Just checking We want the display with the touch controller IC fitted on the PCB... I looked on E-bay and found this one which I think looks a lot like the one Matherp shows above... If correct, I will get 3 on order soon... Thanks gent's for checking this...! |
||||
twofingers![]() Guru ![]() Joined: 02/06/2014 Location: GermanyPosts: 1570 |
Thank you WW! Graphics is already working, but touch still doesn't want to work. I checked each wire 5 times! Okay, for now I'm lucky with this graphics capabilities. @Zonker Looks good! The cheapest are for 6.04$. Good night! Michael This are my connections (touch not working): MM-PIN–––––––––––Display
VCC––––––––––––––VCC (3.3V) GND––––––––––––––GND 2––––T_IRQ–––––––T_IRQ (touch) 3––––SPIout––––––SDI(MOSI) 3––––SPIout-T––––T-DIN (touch) 4––––I9341_CD––––D/C 5––––I9341_RESET–RESET 6––––I9341_CS––––CS 7––––T_CS––––––––T_CS (touch) 14–––SPIin–––––––SDO(MISO) 14–––SPIin-T–––––T-DO (touch) 25–––SPIclk––––––SCK 25–––SPIclk-T––––T-CLK (touch) causality ≠correlation ≠coincidence |
||||
WhiteWizzard Guru ![]() Joined: 05/04/2013 Location: United KingdomPosts: 2932 |
Two questions, twofingers! ![]() 1> What software from matherp are you running? Is it definitely the correct touch controller? 2> Exactly what module are you running? (Sorry if previously mentioned) Finally, do you have a second module to try? This is mentioned just in case you have a faulty one (not that cheap Chinese modules are ever faulty ![]() ![]() WW |
||||
Zonker![]() Guru ![]() Joined: 18/08/2012 Location: United StatesPosts: 767 |
Ok... I got 3 coming on the slow boat... These will be neat to play with when WW's new 470 Skinny-Mite PCB's are ready... Timing should be about right... Thanks Gent's...! I love this stuff...! ![]() |
||||
WhiteWizzard Guru ![]() Joined: 05/04/2013 Location: United KingdomPosts: 2932 |
Hi Zonker, Just to be clear, the 470 Skinny Mite is Grogsters PCB/module. I am working on other MX470 goodies ![]() Been playing with a MX470 100 pinner connected to a small OLED. Such a nice clear wide-viewing-angle display. Testing 78 digital I/Os now but getting sleepy. I want to get the LCD Fonts working next as will make a nice Clock display (going to be competing with Apples new iWatch ![]() WW |
||||
Zonker![]() Guru ![]() Joined: 18/08/2012 Location: United StatesPosts: 767 |
Oops..!! Sorry Grogs... Long day... Thanks WW... I would like to try making simple push buttons any other objects when I get this all setup... The extra space in the 470 will be welcome... What you working on over in your shed..? Something awesome I bet..! Just starting to play with the 1.8" SPI units over here... I noticed that when you are editing or down/up loading, the display goes all white... Maybe this is because the SPI port is being forced to close... Why would that seem to "de-init" the display unit..? Not sure... I would think it would stay put from its last command/data string you sent it... I wonder if others are seeing this.. Do you think it is bad for the LCD to be in this state for long..? I notice it's white until you run for the first time.. (sounds normal) no init yet.. Anyway.. Good to here from ya..! ![]() |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10197 |
Try a pull up resistor on the reset line |
||||
Page 1 of 2 ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |