EA DOGM128 Driver
0.1
Driver code for the EA DOGM128
|
Functions | |
void | dog_draw_arc (uint8_t x_center, uint8_t y_center, uint8_t radius, uint8_t start_angle, uint8_t end_angle, uint8_t size, char mode) |
This file contains the prototype for the dog_draw_arc() function, which is used to set or clear an arc or unfilled circle.
void dog_draw_arc | ( | uint8_t | x_center, |
uint8_t | y_center, | ||
uint8_t | radius, | ||
uint8_t | start_angle, | ||
uint8_t | end_angle, | ||
uint8_t | size, | ||
char | mode | ||
) |
This function is used set or clear an arc or unfilled circle of thickness 0 or 1. If both the start and end angle are the same number, then a circle is drawn.
radius = Radius of the arc or circle
Start and end angle are not represented in degrees nor radians. To convert from degrees to LCD_angles, use the following formula:
LCD_angle = angle_degrees * (32/45)
So:
90 degrees = 64,
180 degrees = 128,
270 degrees = 192,
360 degrees = 256 (due to 8-bit overflow, this is also zero) .