|
Forum Index : Microcontroller and PC projects : Picomite...declaring colors?
| Author | Message | ||||
| apalert Regular Member Joined: 06/07/2023 Location: AustraliaPosts: 41 |
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: 5483 |
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 Regular Member Joined: 06/07/2023 Location: AustraliaPosts: 41 |
Thanks Volhout, much appreciated |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |