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

Functions

int8_t dog_draw_pixel (uint8_t row, uint8_t col, char mode)
 

Detailed Description

This file contains the function prototype for the dog_draw_pixel() function.

Function Documentation

int8_t dog_draw_pixel ( uint8_t  row,
uint8_t  col,
char  mode 
)

This function is used to set an individual pixel on the screen.

Parameters
  • row = The desired row to place the pixel (0-63)
  • col = The desired column to place the pixel (0-127)
  • mode = 's' for set, 'c' for clear
Algorithm
  • Ensures that the provided row and column are within range. It then computes the which page the pixel will be placed on and where within that page. It then either sets or clears the pixel depending on the mode
Assumptions
  • None
Returns
  • 0 upon sucessful completion
  • -1 in case of an out of range row
  • -2 in case of an out of range column
  • -3 in case of invalid mode character