Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 04:25 12 Nov 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 : Test program for new GUI controls?

Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10572
Posted: 10:42am 15 Nov 2018
Copy link to clipboard 
Print this post

Does anyone have a test program for the new bar graph and gauge GUI controls they can share so I can test on Armmite H7, Pi-cromite and MMX?

Thanks
 
panky

Guru

Joined: 02/10/2012
Location: Australia
Posts: 1116
Posted: 02:42am 16 Nov 2018
Copy link to clipboard 
Print this post

Peter,

The following runs quite happily on your bMM+ Backpack 64 board with a 7" lcd attached.

const Fuel_D = 10
const Fuel_G = 11
const FWater_D = 12
const FWater_G = 13
dim Fuel
dim FWater
dim i

cls
Font 2
GUI displaybox Fuel_D,0,0,190,58,RGB(white),RGB(60,60,60)
CtrlVal(Fuel_D) = "E 1/2 F~"
GUI BARGAUGE Fuel_G,0,30,190,20,RGB(white),RGB(black),0,100,RGB(red),5,RGB(0,180,0)
GUI GAUGE FWater_G,120,220,100,RGB(white),RGB(black),0,100,,"Litres",RGB(red),20,RGB(green)
'Note GUI Gauge FWater_G etc. etc. should all be on one line
do
Fuel = 1
FWater = 1
for i = 1 to 100 step 5
ctrlval(Fuel_G) = Fuel + i
ctrlval(FWater_G) = FWater + i
pause 300
next i
loop


panky

... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1945
Posted: 04:02am 16 Nov 2018
Copy link to clipboard 
Print this post

FYI: panky's code works on the ARMmite H7 with backpack and 9" LCD.
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
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