Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:56 02 Aug 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 : ili9341 touch

     Page 3 of 3    
Author Message
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2567
Posted: 09:46pm 09 Jul 2022
Copy link to clipboard 
Print this post

Happy days. Thanks for helping a newbie, It's much appreciated.
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2567
Posted: 11:40pm 10 Jul 2022
Copy link to clipboard 
Print this post

Where is any info for using sd card with ili9341 please? I mean the sd card slot on the ili9341.
Edited 2022-07-11 09:42 by stanleyella
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2567
Posted: 12:10am 11 Jul 2022
Copy link to clipboard 
Print this post

  Mixtel90 said  If it's already in BASIC of some sort then porting it to MMBasic might be reasonably easy if you still want it on that display. It'll all depend on whether there are specialised commands that MMBasic can't do anything with. ILI9341 is supported in MMBasic and will work with BLIT and therefore, presumably, the new SPRITE commands.

It's a nice, smooth display - is it a SPI connection? I hope so, otherwise you may have problems as parallel versions of that display aren't supported.

You might need to put some work in if you wanted to change the screen resolution...


What sort of work for ili9341 please as it's cheap and so is rpi pico so a better solution than a nextion display which I have and the editor is bother.
mmbasic seems to have many graphics like nextion but programmable directly.
Early days, lots to learn.
The idea was sprite data in tables if mmbasic has read tables or it maybe read data.
It's interesting.
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2642
Posted: 12:42am 11 Jul 2022
Copy link to clipboard 
Print this post

"Where is any info for using sd card with ili9341 please? I mean the sd card slot on the ili9341"

PicoMite User Manual V 5.07.04 Page 37

"Connecting a SD Card
SD cards use the SPI protocol for communications and this needs to be specifically configured before they can
be used. First the “system” SPI port needs to be configured. This is a port that will be used for system use (SD
Card, LCD display and the touch controller on a LCD panel).
There are a number of ports and pins that can be used (see the section PicoMite Hardware) but this example
uses SPI on pins GP18, GP19 and GP16 for Clock, MOSI and MISO.
OPTION SYSTEM SPI GP18, GP19, GP16
Then MMBasic must be told that there is an SD card attached and what pin is used for the Chip Select signal:
OPTION SDCARD GP22"

Using the above example
SD_CS - GP22
SD_MOSI - GP19 - in parallel with display and touch
SD_MISO - GP16 - ditto
SD_SCK - GP18 - ditto
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2567
Posted: 01:18am 11 Jul 2022
Copy link to clipboard 
Print this post

Thank you phil99. I wired it up as in the user manual and used the define gp but touch did not work until I rewired as per a previous suggestion. maybe the manual is wrong for setting up ili9341.
Display and touch are now working very nice. I'll check out your info. cheers.
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2567
Posted: 01:25am 11 Jul 2022
Copy link to clipboard 
Print this post

 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2567
Posted: 01:45am 11 Jul 2022
Copy link to clipboard 
Print this post

MMbasic is new to me as is the rpi pico but it seems to have a history before the rpi pico. It can be programmed with thonny with a rpi but that's python.
Pity it can't be programmed with freebasic which is compiled like rpi can.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7937
Posted: 07:13am 11 Jul 2022
Copy link to clipboard 
Print this post

MMBasic was never intended to be anything but an interpreter. It's pretty good at what it does. :)

Of course, if you feel like writing a compiler for it....  ;)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3378
Posted: 11:22am 11 Jul 2022
Copy link to clipboard 
Print this post

  [ said  QUOTE=stanleyellaPity it can't be programmed with freebasic which is compiled like rpi can.

What do you have in mind that won't run on a Picomite with interpreted MMBasic (seeing it can run at an overclocked OPTION CPUSPEED 378000)?
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3378
Posted: 11:22am 11 Jul 2022
Copy link to clipboard 
Print this post

  stanleyella said  Pity it can't be programmed with freebasic which is compiled like rpi can.

What do you have in mind that won't run on a Picomite with interpreted MMBasic (seeing it can run at an overclocked OPTION CPUSPEED 378000)?

~
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 12:01pm 11 Jul 2022
Copy link to clipboard 
Print this post

Observation: MMBasic includes at least ~~three~~ TWO structures which I believe in the general case are "uncompilable" for the usual expectation of compile: ~~CALL~~, EVAL and EXECUTE. Similarly it is my understanding that the ABC compiler for BBC Basic will not compile its EVAL() function.

EDIT: Correction, on reflection I think CALL is probably compilable by including a function/subroutine symbol table in the compiled form.

Best wishes,

Tom
Edited 2022-07-11 22:16 by thwill
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2567
Posted: 06:31pm 11 Jul 2022
Copy link to clipboard 
Print this post

As it's new to me I should not have mentioned interpreted basic.
I'm not going to code another oscilloscope using a to d but if I did I wonder how fast it would be.
I used picaxe basic which is interpreted then found great cow basic which is a compiler. What a difference in speed.
Here we have a fast ucontrlr and many mmbasic functions are compiled so I think it will be as fast as 8 bit pics or avr, or faster. Early days for me.
The bbc micro was too expensive for me at the time so used spectrum but I had a compiler for it.
I did 6502 and z80 assembler but it's so tedious and error prone.
I guess most coders went on to c+ but I never got past basic.
Lots to learn about mmbasic.
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2567
Posted: 07:51pm 11 Jul 2022
Copy link to clipboard 
Print this post

The rpi pico is not a rpi. If not for mmbasic I wouldn't have bought one with only c+ or python to use it. I learnt about it from https://www.youtube.com/watch?v=Cxmjy1nz6MM&t=603s
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2567
Posted: 11:18pm 11 Jul 2022
Copy link to clipboard 
Print this post

I got the 4 wires to the ili9341 sd card reversed but now if I type files it reads a sd card. Just got to figure how it's used.
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2567
Posted: 11:18pm 11 Jul 2022
Copy link to clipboard 
Print this post

I got the 4 wires to the ili9341 sd card reversed but now if I type files it reads a sd card. Just got to figure how it's used.
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2567
Posted: 11:45pm 11 Jul 2022
Copy link to clipboard 
Print this post

sorry i posted twice. This is my first use of the ili9341 sd card slot. I thought it was just for the ili but seems it is a general sd card  for programs, anything.
Amazed. This is looking like a nice dev board. works well with ili.
 
     Page 3 of 3    
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025