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 : Picomite...declaring colors?
Author | Message | ||||
apalert Newbie Joined: 06/07/2023 Location: AustraliaPosts: 15 |
Hello folks, bit stumped on this... Using SSD1306 oled with Picomite, have been able to use something like LINE x1, y1, x2, y2, , bg to get a line drawn on the oled in the background color. However I like using OPTION EXPLICIT/OPTION DEFAULT NONE but that makes the above code crash out saying bg is not declared. Any help appreciated! |
||||
Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 4233 |
Hi apalert "bg" is not a keyword, but a variable You must DIM bg=RGB(BLACK) Or the color you want to use Volhout PicomiteVGA PETSCII ROBOTS |
||||
apalert Newbie Joined: 06/07/2023 Location: AustraliaPosts: 15 |
Thanks Volhout, much appreciated |
||||
Print this page |