![]() |
Forum Index : Microcontroller and PC projects : RBOX error
Author | Message | ||||
lew247![]() Guru ![]() Joined: 23/12/2015 Location: United KingdomPosts: 1702 |
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] |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
Check the number of parameters in each line - compare the error line to the others |
||||
lew247![]() Guru ![]() Joined: 23/12/2015 Location: United KingdomPosts: 1702 |
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 |
||||
lew247![]() Guru ![]() Joined: 23/12/2015 Location: United KingdomPosts: 1702 |
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 |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
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 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |