|
Forum Index : Microcontroller and PC projects : Test program for new GUI controls?
| Author | Message | ||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10572 |
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: AustraliaPosts: 1116 |
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: AustraliaPosts: 1945 |
FYI: panky's code works on the ARMmite H7 with backpack and 9" LCD. NANO Inverter: Full download - Only Hex Ver 8.1Ks |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |