Drawing Functions

Download the inPulse SDK
#define SCREEN_WIDTH 96
#define SCREEN_HEIGHT 128

/**
 * Sets the drawing window that any writes to the OLED are written to. After
 * This function is called, the next pixel to be written to the display will
 * be drawn at the location (x1, y1). Any subsequent writes will draw to the
 * right and down until reaching the bottom-right corner of the window, and
 * will wrap back to the top-left corner.
 *
 * Simulator status: Implemented
 *
 * @param x1    The starting (top-left) x-coordinate of the window
 * @param y1    The starting (top-left) y-coordinate of the window
 * @param x2    The ending (bottom-right) x-coordinate of the window
 * @param y2    The ending (bottom-right) y-coordinate of the window
 */

void pulse_set_draw_window(uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2);

/**
 * Draws a pixel to the screen. Uses 24-bit color. Currently the
 * alpha channel is ignored.
 *
 * Simulator status: Implemented
 *
 * @param color The color24_t to use.
 */

void pulse_draw_point24(color24_t color);

/**
 * Blanks the screen
 *
 * Simulator status: Implemented
 *
 */

void pulse_blank_canvas();