Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 15:54 28 Nov 2024 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 : GUI memory

Author Message
VK2AHB
Regular Member

Joined: 28/07/2022
Location: Australia
Posts: 51
Posted: 01:36am 09 Jun 2023
Copy link to clipboard 
Print this post

I have the 320x240 display working with ILI9488, albeit only using half of the 480x320.
Colours are wrong, but using CONST, I can get around that.
I fixed the intermittent problems by wiring up sockets on a perf board, using my 30-yr-old Wire-wrap wire. Sockets so I can plug in various displays, and the Arduino Uno.
With the RTC and DS18B20, it's all go using test.

Last year I had it all working on the ST7735 with text boxes and number boxes.

Now when I try that program with the ILI9488, I get this message:
[11] GUI numberbox #1, 20, 30, 90, 20, RGB(orange) 'temp
Error : No memory allocated for GUI controls
>

Paul VK2AHB
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2138
Posted: 02:05am 09 Jun 2023
Copy link to clipboard 
Print this post

Manual P81
OPTION GUI CONTROLS NbrOfGUIControls
 Specifies the maximum number of GUI controls that can be defined.
Each control uses 52 bytes and the total memory used must be
rounded up to the next 2048 byte multiple. For example, specifying
70 controls will use 4KB of RAM.
By default the number of GUI controls is set to zero so this option
must be used before any GUI controls are defined.
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3150
Posted: 02:06am 09 Jun 2023
Copy link to clipboard 
Print this post

OPTION GUI CONTROLS 35 ' (for instance)

But why do you get only 320x240 with an ILI9488?

What do you get with "OPTION LIST"?
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
morgs67
Regular Member

Joined: 10/07/2019
Location: Australia
Posts: 75
Posted: 02:09am 09 Jun 2023
Copy link to clipboard 
Print this post

Found earlier, may help:


  Quote  
PicomiteV5.07.00a36

OPTION MEMORY No_of_GUI_controls, program_memory_size


The PicoMite memory is now treated as a pool of 160Kbytes which can be flexibly allocated by the user. This command is how it is allocated.

By default there are 0 GUI controls and 80Kbyte of both program and variable memory
Each GUI control will take 52 bytes and the memory required will then be rounded up to a 256 byte boundary
The program memory size can then be up to half the remaining memory out of the 160K. It cannot exceed half as the program would then be unable to be edited or loaded


-tony
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 897
Posted: 03:34am 09 Jun 2023
Copy link to clipboard 
Print this post

Does this thread talk about the same display
Latest F4 Latest H7
 
Print this page


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

© JAQ Software 2024