Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:13 01 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 : RBOX error

Author Message
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1702
Posted: 02:29pm 11 Mar 2018
Copy link to clipboard 
Print this post

I'm trying to draw several boxes on the screen 7" SSD1963 & an E100 and I'm getting a weird error
[code]
[15] RBox 400,00,401,100, RGB(200,148,77), RGB(22,20,15) ' Outdoor temp
Error: 13145165 is invalid (valid is 0 to 100)
[/code]

My code is dead simple

[code]
CLS
RBOX 00,00,400,100,10, RGB(47,40,32), RGB(12,26,8) 'time
RBOX 400,00,401,98,10, RGB(200,148,77), RGB(22,20,15) ' temp
RBOX 400,00,401,100, RGB(200,148,77), RGB(22,20,15) ' Outdoor temp[/code]

Edited by lew247 2018-03-13
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10310
Posted: 02:35pm 11 Mar 2018
Copy link to clipboard 
Print this post

Check the number of parameters in each line - compare the error line to the others
 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1702
Posted: 02:41pm 11 Mar 2018
Copy link to clipboard 
Print this post

  matherp said   Check the number of parameters in each line - compare the error line to the others

I did before I posted
I never just post something without trying to figure it out myself first*
it's a 480 X 800 display so the number parameters in each line are correct
Edited by lew247 2018-03-13
 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1702
Posted: 02:42pm 11 Mar 2018
Copy link to clipboard 
Print this post

oh I'm such an idiot I see it now
In case any other people who are new to this come across the same problem it was [code] RBOX 400,100,401,98,10, RGB(200,148,77), RGB(22,20,15)[/code]
The 2nd digit is the one to move the box down the screen I'd forgotten to change it
and while this is laughable for you experienced people it's dead simple for someone "newish" to do
Edited by lew247 2018-03-13
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 08:40pm 11 Mar 2018
Copy link to clipboard 
Print this post

Overwriting one element with another, while of little use, does not always cause an error.

I would have thought that the problem was on the line for outdoor temperature.
You missed the value for 'roundness' which can only be between 0 and 100
Because it was missing, the next value was used. The next value is the colour RGB(200,148,77) which evaluates to 13145165.

The error message was correct even though sometimes it takes a while to work out what the error message really means.


Jim
VK7JH
MMedit
 
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