|
Forum Index : Microcontroller and PC projects : gui gauge argument count
| Author | Message | ||||
| stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2681 |
I am trying to set up gui gauge but get Error: Argument count. I read using commas for un needed parameters was ok. I did use OPTION GUI CONTROLS 75. Please point out my error. OPTION BASE 0 ' 0 based arrays OPTION EXPLICIT dim myvoltage! CONST bk = RGB(BLack) const wh = rgb(white) const bl = rgb(blue) const gr = rgb(green) const cy = rgb(cyan) const re = rgb(red) const ma = rgb(magenta) const ye = rgb(yellow) const br = rgb(brown) ' SETPIN GP26, AIN cls gui gauge #1, 120, 160, 100, wh, bk, 0, 3.3, , , , , , , , , do myvoltage! = PIN(GP26) ''text 0,0,left$(str$(myvoltage!),4) CtrlVal(#1) =myvoltage! loop |
||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3481 |
Try it without trailing commas. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
| stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2681 |
Forget it. Seems more parameters and ok. groovy! OPTION BASE 0 ' 0 based arrays OPTION EXPLICIT dim myvoltage! CONST bk = RGB(BLack) const wh = rgb(white) const bl = rgb(blue) const gr = rgb(green) const cy = rgb(cyan) const re = rgb(red) const ma = rgb(magenta) const ye = rgb(yellow) const br = rgb(brown) ' SETPIN GP26, AIN cls gui gauge #1, 120, 160, 100, wh, bk, 0, 3.3, 3,"V" ,wh do myvoltage! = PIN(GP26) ''text 0,0,left$(str$(myvoltage!),4) CtrlVal(#1) =myvoltage! loop |
||||
| stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2681 |
Sorted it out. Seems you got to have the numbers displayed and number of places and a string which I just guessed could be "V". I thought you could just have the dial bit. A few examoles in the manual would help imho. Too much is guessing. luvin mmedit v4...better than terminal imho Edited 2022-08-23 05:51 by stanleyella |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |