Update USB-Version
Adding "GEOOUTXY" Command
Draw/Clear Geometric Figures (Pixel, Line, Frame, Box (Filled Frame), Circle, Disc (Filled Circle), Ellipse, Filled Ellipse, Rounded Frame, Rounded Box)
Example/Command Order:
Draw Example
Code: Select all
1: echo "att" > /dev/ttyUSB0
2: echo "GEOOUTXY" > /dev/ttyUSB0
3: echo "3,1,20,10,30,20,0" > /dev/ttyUSB0 (Draw Frame starting at x=20, y=10 with width 30 and height=20)
Clear Example
Code: Select all
1: echo "att" > /dev/ttyUSB0
2: echo "GEOOUTXY" > /dev/ttyUSB0
3: echo "4,0,20,10,30,20,0" > /dev/ttyUSB0 (Clear Box starting at x=20, y=10 with width 30 and height=20)
The Command-Parameter Format is "g,c,x,y,i,j,k"
Code: Select all
g = Geometric Type 1..10 see Geometric Type list
c = Draw Color 0=Clear, 1=Draw, 2=XOR/Invert Pixel
x = X-Position 0..255
y = Y-Position 0..63
i = Variable Parameter 1 (Function depends on Geometric)
j = Variable Parameter 2 (Function depends on Geometric)
k = Variable Parameter 3 (Function depends on Geometric)
Geometric Type
Code: Select all
1: Pixel need x,y see https://github.com/olikraus/u8g2/wiki/u8g2reference#drawpixel
2: Line need x,y,i=x1,j=y1 see https://github.com/olikraus/u8g2/wiki/u8g2reference#drawline
3: Frame need x,y,i=width,j=height see https://github.com/olikraus/u8g2/wiki/u8g2reference#drawframe
4: Box (Filled Frame) need x,y,i=width,j=height see https://github.com/olikraus/u8g2/wiki/u8g2reference#drawbox
5: Circle need x,y,i=radius see https://github.com/olikraus/u8g2/wiki/u8g2reference#drawcircle
6: Disc (Filled Circle) need x,y,i=radius see https://github.com/olikraus/u8g2/wiki/u8g2reference#drawdisc
7: Ellipse need x,y,i=radiusx,j=radiusy see https://github.com/olikraus/u8g2/wiki/u8g2reference#drawellipse
8: Filled Ellipse need x,y,i=radiusx,j=radiusy see https://github.com/olikraus/u8g2/wiki/u8g2reference#drawfilledellipse
9: Rounded Frame need x,y,i=width,j=height,k=radius see https://github.com/olikraus/u8g2/wiki/u8g2reference#drawrframe
10: Rounded Box need x,y,i=width,j=height,k=radius see https://github.com/olikraus/u8g2/wiki/u8g2reference#drawrbox
Pixel:
x,y = Position of the Dot
Line:
x,y = x0,y0 Line Startposition, i,j = x1,y1 Line Endposition
Frame and Box:
x,y = Left-Upper-Corner of Frame/Box, i,j = Frame/Box width & height, k = Corner Radius for Geometric 9/10
Circle and Disc:
x,y = Center of Circle/Disc, i = Radius
Ellipse:
x,y = Center of Ellipse, i,j = Radius in x,y direction
IMG_7046.jpg
IMG_7048.jpg
You do not have the required permissions to view the files attached to this post.