EA DOGM128 Driver  0.1
Driver code for the EA DOGM128
 All Files Functions Typedefs Enumerations Groups Pages
Functions
Rectangle

Functions

void dog_draw_rectangle (uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, uint8_t size, char mode)
 

Detailed Description

This file contains the prototype for the dog_draw_rectangle() function, which is used to set or clear an unfilled rectangle.

Function Documentation

void dog_draw_rectangle ( uint8_t  x1,
uint8_t  y1,
uint8_t  x2,
uint8_t  y2,
uint8_t  size,
char  mode 
)

This function is used set or clear an unfilled rectangle of thickness 0 or 1.

Parameters
  • x1 = X coordinate of the top-left corner of the rectangle.[0,127]
  • t1 = Y coordinate of the top-left corner of the rectangle.[0,63]
  • x2 = X coordinate of the bottom-right corner of the rectangle.[0,127]
  • y2 = Y coordinate of the bottom-right corner of the rectangle.[0,63]
  • size = The thickness of the point to place (0 or 1)
  • mode = 's' for set, 'c' for clear
Algorithm
Assumptions
  • None