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.
lew247 Guru Joined: 23/12/2015 Location: United KingdomPosts: 1702
Posted: 01:55am 30 Jun 2016
Copy link to clipboard
Print this post
I'm trying to get a frame to display on an LCD
This is the code
[code]
CLS RGB(blue)
GUI FRAME #7,"Hello",10,20,230,460,rgb(WHITE)
[/code]
Can anyone tell me Why the background of the word "Hello" in the frame is BLACK?
I've tried GUI FRAME #7,"Hello",10,20,230,460,rgb(WHITE) ,RGB(BLUE)
but it makes no difference
Is there a way to set the default background colour of the lcd?
I'd read the manual and it doesn't say anything about the default background colour - Other than changing it on each item you colour
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9589
Posted: 02:33am 30 Jun 2016
Copy link to clipboard
Print this post
...because you have not defined the background colour, so it defaults to black.
This is NOT in the manual, so it might be an omission, but I am sure you can specify anything that needs colour specs in the FC,BC format for just about all commands dealing with colour.
I have not tried this, so please do post back if the above works or not.
I will try to hook up a MM+ and LCD and try this out for myself, but you'll probably post back before I get mine hooked up to try.
Others will also post if I am barking up the wrong tree here or not.
EDIT: Whoops. Just saw that you mentioned you have tried that already - how the hell did I miss that!?(rhetorical!)
Please ignore this post, and I will watch with interest what happens.Edited by Grogster 2016-07-01Smoke makes things work. When the smoke gets out, it stops!
lew247 Guru Joined: 23/12/2015 Location: United KingdomPosts: 1702
Posted: 03:21am 30 Jun 2016
Copy link to clipboard
Print this post
I tried most versions of it, and even tried in the hope there was a hidden "background colour" command not mentioned in the manual but there wasnt
Edit:
I've now broken the Micromite pcb with the LCD attached so can't try it again till sometime next week when I get a new micromite pcb connectedEdited by lew247 2016-07-01
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9589
Posted: 05:16am 30 Jun 2016
Copy link to clipboard
Print this post
May I ask how you broke it?
Just curious......Smoke makes things work. When the smoke gets out, it stops!
lew247 Guru Joined: 23/12/2015 Location: United KingdomPosts: 1702
Posted: 05:29am 30 Jun 2016
Copy link to clipboard
Print this post
If you promise you won't laugh
I had the lcd inside the box for it made by MikeO but it was sitting in the shelf beside me "propped up" with no back on the box
At some stage I knocked it over and "somehow" the plastic covering the pins for the DS18B20 header came detached leaving the inside bit of the sockets there only.
I couldn't find the plastic so I decided I'd try and desolder the header and put a new one in
but I completely screwed it up and ended up melting a track and knocking an smd electrolytic cap off the board, taking part of the track with it.
Stupid mistakes a 7 yr old wouldn't make - yet I made them.
At least the LCD display itself didn't get damaged, and the box MikeO made isn't damaged, and I do have spare pcb's.
WW is going to solder all the bits and pieces for me and it should all be back to where it was before within a week or so
It was the indoor lcd pcb for the weather station, I'd got 99% of the outdoor code working perfectly and was just about to start working on the indoor code....
Stupid mistake I should never had made.
Then again if I was sensible I'd have just accepted that I can't solder with my eyesight the way it is now.
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9589
Posted: 05:42am 30 Jun 2016
Copy link to clipboard
Print this post
Don't beat yourself up - I am sure there is not a technician or hobbyist out there who has not lifted a PCB track or two in their lifetime. It's very easy to do.
Like everything else, the right tools for the right job, and if you HAVE those SMD tools, then SMD work is easy. If all you have is through-hole equipment, then SMD can indeed be a pain to work with.
Not to worry, and it is great that WW is fixing it for you - he's pretty good at waving his soldering wand about too, so he'll be able to conjure the soldering spell to fix it for you!
Thanks for sharing - not laughing, and I don't think anyone would.
We all enjoy hearing of others mistakes, and think of it like this: If you never made any mistakes, you would never learn anything. Smoke makes things work. When the smoke gets out, it stops!
lew247 Guru Joined: 23/12/2015 Location: United KingdomPosts: 1702
Posted: 05:46am 30 Jun 2016
Copy link to clipboard
Print this post
WW is amazing, as are most people on here
He has patiently soldered up numerous versions of the boards, I would imagine he's quite glad it's nearly finished
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2932
Posted: 09:01pm 30 Jun 2016
Copy link to clipboard
Print this post
Not at all - I have enjoyed this project lots and it is nice to see your 'graphical' code evolve.
Hopefully I will receive some more bits & modules today to work on a new set of PCBs for you over the weekend.
And Grogs is right, we have all damaged tracks and components before in some silly ways. At least the LCD is ok as this is the most costly part. However, when they do get cracked, they often remain fully working! It just looks a bit annoying with a glass crack going across your graphical masterpiece.
Will update you by email over the weekend with progress . . . .
WW
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9589
Posted: 09:53pm 30 Jun 2016
Copy link to clipboard
Print this post
Yes, WW - I have an SPI LCD with a cracked glass, and it still works just fine.
Obviously, you can't use that in anything(cos it would look horrible), but I still keep it around for testing as it makes a perfectly good test-screen for developing things.Smoke makes things work. When the smoke gets out, it stops!