Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 16:43 26 Nov 2024 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 : Picomite...declaring colors?

Author Message
apalert
Newbie

Joined: 06/07/2023
Location: Australia
Posts: 15
Posted: 09:36am 29 Jan 2024
Copy link to clipboard 
Print this post

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: Netherlands
Posts: 4233
Posted: 09:47am 29 Jan 2024
Copy link to clipboard 
Print this post

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: Australia
Posts: 15
Posted: 10:46am 29 Jan 2024
Copy link to clipboard 
Print this post

  Volhout said  Hi apalert

"bg" is not a keyword, but a variable

You must
DIM bg=RGB(BLACK)


Or the color you want to use

Volhout



Thanks Volhout, much appreciated
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024