Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 04:07 05 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MM2: Fun with fonts

     Page 1 of 2    
Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10199
Posted: 07:18am 21 Jan 2015
Copy link to clipboard 
Print this post

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



Edited by matherp 2015-01-22
 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1571
Posted: 07:39am 21 Jan 2015
Copy link to clipboard 
Print this post

Good idea to use these fonts!
Perhaps you will build a converter too?

causality ≠ correlation ≠ coincidence
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10199
Posted: 10:07am 21 Jan 2015
Copy link to clipboard 
Print this post

Update

Time reduced to 41msec
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9586
Posted: 01:26pm 21 Jan 2015
Copy link to clipboard 
Print this post

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 States
Posts: 172
Posted: 01:52pm 21 Jan 2015
Copy link to clipboard 
Print this post

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 States
Posts: 767
Posted: 11:44am 01 Feb 2015
Copy link to clipboard 
Print this post

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: Germany
Posts: 1571
Posted: 12:11am 02 Feb 2015
Copy link to clipboard 
Print this post

Hi Zonker,

  Quote  Where is a good source to get the touch screen units with the "correct" controller..?

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 Kingdom
Posts: 10199
Posted: 12:56am 02 Feb 2015
Copy link to clipboard 
Print this post

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: Germany
Posts: 1571
Posted: 01:28am 02 Feb 2015
Copy link to clipboard 
Print this post

Thanks!
  Quote  I still need to tidy up the code for this version

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 . Graphics works when I exchange SDO(MISO)<->SDI(MOSI).
Touch functions are not working for me.
Any help or tips appreciated!

MichaelEdited by twofingers 2015-02-03
causality ≠ correlation ≠ coincidence
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6268
Posted: 11:23am 02 Feb 2015
Copy link to clipboard 
Print this post

  twofingers said  
edit;:
The table above seems to be somehow wrong . Graphics works when I exchange SDO(MISO)<->SDI(MOSI).
Touch functions are not working for me.
Any help or tips appreciated!

Michael


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 Kingdom
Posts: 10199
Posted: 11:38am 02 Feb 2015
Copy link to clipboard 
Print this post

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: Germany
Posts: 1571
Posted: 12:14pm 02 Feb 2015
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 2932
Posted: 12:38pm 02 Feb 2015
Copy link to clipboard 
Print this post

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 14Edited by WhiteWizzard 2015-02-03
 
Zonker

Guru

Joined: 18/08/2012
Location: United States
Posts: 767
Posted: 12:51pm 02 Feb 2015
Copy link to clipboard 
Print this post

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: Germany
Posts: 1571
Posted: 01:24pm 02 Feb 2015
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 2932
Posted: 01:56pm 02 Feb 2015
Copy link to clipboard 
Print this post

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 States
Posts: 767
Posted: 02:15pm 02 Feb 2015
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 2932
Posted: 02:59pm 02 Feb 2015
Copy link to clipboard 
Print this post

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 States
Posts: 767
Posted: 05:51pm 02 Feb 2015
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 10199
Posted: 10:04pm 02 Feb 2015
Copy link to clipboard 
Print this post

  Quote  I noticed that when you are editing or down/up loading, the display goes all white...


Try a pull up resistor on the reset line
 
     Page 1 of 2    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025