Re: SSD1306 INCLUDE for PBP3
I Think a new command is easier
USERCOMMAND "GLCD_BAR" ;clear/SET area x,y,X1,Y1,COLOUR
eg
GLCD_BAR 0,0,var1,3,1 ;draw a horiz bar from 0,0 to var1 . three pixels wide
GLCD_BAR 0,0,var1,3,0 ;clear a bar from 0,0 to var1 . three pixels wide
or
GLCD_BAR 0,0,3,var1,1 ;draw a vert bar from 0,0 to var1 . three pixels wide
GLCD_BAR 0,0,3,var1,0 ;clear a bar from 0,0 to var1 . three pixels wide
i don't have anything setup so this is untested, caveat emptor
ps if GLCD_BAR 0,0,3,var1,1 is not right then
GLCD_BAR 0,0,3,var1,255 might be needed
Last edited by richard; - 6th April 2020 at 22:14.
Warning I'm not a teacher
Bookmarks