This is a simple way of plotting part radius of a circle from start degree to end degree
values 0 to 359
xcentre of arc
ycentre of arc
xradius-distance from xcentre to xradius
yradius-distance from ycentre to yradius
This code would plot a circle mid screen fast'
change xradius=100:yradius=140 and you get an eliptical circle.
change start_arc to 90 and end_arc to 270 and you get half the eliptical circle.
you can have any part of a circle or elipse positioned anywhere by changing the variables.
make those boxes curved corners or design guages.
I'll post a video later.
It is simple code but does what glcd can not as a command.
drew the image almost instant.The code is worth playing with if you are into gcb graphics and gcb trig works fast it seems.
expanding circle with wait 5 s to see it's a spiral not circles, https://www.youtube.com/watch?v=luowdg_HUUE
No comments. gcb users only use 2 line displays.
gcb is fast enough to do nice graphics... but not a popular thing.
uno has
Flash 32k bytes (of which .5k is used for the bootloader)
SRAM 2k bytes
EEPROM 1k byte
that's plenty to play with.
a lot can be done without resorting to nextion...which can be made to look good but is serial 9600.
glcd and spi or parallel 8 bit port are so much faster. just needs a bit of imagination.
a bit of trig to design a screen would be used once but the gcb trig runs fast. dunno how much mem it uses but it's handy...if you remember learning trig.
no PI though.
edit trig was something I was taught but never found an application for
until graphics... on a cpc464 in z80 asm...and now 328p using basic,,sigh
Last edit: stan cartwright 2020-09-25
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
imho the hardware includes have been the best gcb improvements...but I use a 328
so the pic stuff improvements don't mean so much,
using glcd would be so difficult otherwise....memories of implementing
draw line on a picaxe with ssd 1306...interesting I suppose, if you have the time...
and the time it took to draw the line using picaxe.
Thanks to the authors of gcb includes.
drawing shapes like half circle could be filled using trig but adapting the glcd filled circle
might be better. dunno how to fill polygons.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
imho the hardware includes have been the best gcb improvements...but I use a 328
so the pic stuff improvements don't mean so much,
using glcd would be so difficult otherwise....memories of implementing
draw line on a picaxe with ssd 1306...interesting I suppose, if you have the time...
and the time it took to draw the line using picaxe.
Thanks to the authors of gcb includes.
drawing shapes like half circle could be filled using trig but adapting the glcd filled circle
might be better. dunno how to fill polygons. mid point something.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is a simple way of plotting part radius of a circle from start degree to end degree
values 0 to 359
xcentre of arc
ycentre of arc
xradius-distance from xcentre to xradius
yradius-distance from ycentre to yradius
This code would plot a circle mid screen fast'
change xradius=100:yradius=140 and you get an eliptical circle.
change start_arc to 90 and end_arc to 270 and you get half the eliptical circle.
you can have any part of a circle or elipse positioned anywhere by changing the variables.
make those boxes curved corners or design guages.
I'll post a video later.
It is simple code but does what glcd can not as a command.
drew the image almost instant.The code is worth playing with if you are into gcb graphics and gcb trig works fast it seems.
expanding circle with wait 5 s to see it's a spiral not circles, https://www.youtube.com/watch?v=luowdg_HUUE
Last edit: stan cartwright 2020-09-19
No comments. gcb users only use 2 line displays.
gcb is fast enough to do nice graphics... but not a popular thing.
uno has
Flash 32k bytes (of which .5k is used for the bootloader)
SRAM 2k bytes
EEPROM 1k byte
that's plenty to play with.
a lot can be done without resorting to nextion...which can be made to look good but is serial 9600.
glcd and spi or parallel 8 bit port are so much faster. just needs a bit of imagination.
a bit of trig to design a screen would be used once but the gcb trig runs fast. dunno how much mem it uses but it's handy...if you remember learning trig.
no PI though.
edit trig was something I was taught but never found an application for
until graphics... on a cpc464 in z80 asm...and now 328p using basic,,sigh
Last edit: stan cartwright 2020-09-25
imho the hardware includes have been the best gcb improvements...but I use a 328
so the pic stuff improvements don't mean so much,
using glcd would be so difficult otherwise....memories of implementing
draw line on a picaxe with ssd 1306...interesting I suppose, if you have the time...
and the time it took to draw the line using picaxe.
Thanks to the authors of gcb includes.
drawing shapes like half circle could be filled using trig but adapting the glcd filled circle
might be better. dunno how to fill polygons.
imho the hardware includes have been the best gcb improvements...but I use a 328
so the pic stuff improvements don't mean so much,
using glcd would be so difficult otherwise....memories of implementing
draw line on a picaxe with ssd 1306...interesting I suppose, if you have the time...
and the time it took to draw the line using picaxe.
Thanks to the authors of gcb includes.
drawing shapes like half circle could be filled using trig but adapting the glcd filled circle
might be better. dunno how to fill polygons. mid point something.