Finally rename flight.c/.h to pid.c/.h. Cleanup some dependencies.
[betaflight.git] / src / main / drivers / display_ug2864hsweg01.h
blobb6be41c28a66b262cf69c26648ddfd08e576582b
1 /*
2 * This file is part of Cleanflight.
4 * Cleanflight is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * Cleanflight is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with Cleanflight. If not, see <http://www.gnu.org/licenses/>.
18 #pragma once
20 #define SCREEN_WIDTH 128
21 #define SCREEN_HEIGHT 64
23 #define FONT_WIDTH 5
24 #define FONT_HEIGHT 7
25 #define HORIZONTAL_PADDING 1
26 #define VERTICAL_PADDING 1
28 #define CHARACTER_WIDTH_TOTAL (FONT_WIDTH + HORIZONTAL_PADDING)
29 #define CHARACTER_HEIGHT_TOTAL (FONT_HEIGHT + VERTICAL_PADDING)
31 #define SCREEN_CHARACTER_COLUMN_COUNT (SCREEN_WIDTH / CHARACTER_WIDTH_TOTAL)
32 #define SCREEN_CHARACTER_ROW_COUNT (SCREEN_HEIGHT / CHARACTER_HEIGHT_TOTAL)
34 #define VERTICAL_BARGRAPH_ZERO_CHARACTER (128 + 32)
35 #define VERTICAL_BARGRAPH_CHARACTER_COUNT 7
37 void ug2864hsweg01InitI2C(void);
39 void i2c_OLED_set_xy(uint8_t col, uint8_t row);
40 void i2c_OLED_set_line(uint8_t row);
41 void i2c_OLED_send_char(unsigned char ascii);
42 void i2c_OLED_send_string(const char *string);
43 void i2c_OLED_clear_display(void);
44 void i2c_OLED_clear_display_quick(void);