From 7fbb94cb15fdd20cd9ada11588568583128c77f4 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sun, 5 Jun 2022 18:36:34 -0400 Subject: move source to folder; openocd.sh programs directly --- source/dogs.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 source/dogs.h (limited to 'source/dogs.h') diff --git a/source/dogs.h b/source/dogs.h new file mode 100644 index 0000000..8af24fd --- /dev/null +++ b/source/dogs.h @@ -0,0 +1,33 @@ +/** + * dogs.h - Interface for drawing to the EADOGS102N-6 display. + * Copyright (C) 2020 Clyne Sullivan + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * See the GNU General Public License for more details. + */ + +#ifndef DOGS_H_ +#define DOGS_H_ + +#include + +#define DISP_WIDTH 102 +#define DISP_HEIGHT 64 + +extern unsigned char dogs_buffer[DISP_WIDTH * DISP_HEIGHT / 8]; + +void dogs_init(); +void dogs_clear(); +void dogs_flush(); +void dogs_set_sleep(bool sleep); + +void draw_pixel(int x, int y, bool state); +void draw_rect(int x, int y, int w, int h); +void draw_bitmap(int x, int y, const unsigned char *buffer); +void draw_number(int x, int y, int number); + +#endif // DOGS_H_ + -- cgit v1.2.3