NinjaFlight
|
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <platform.h>
#include "bus_i2c.h"
#include "system.h"
#include "display_ug2864hsweg01.h"
Macros | |
#define | INVERSE_CHAR_FORMAT 0x7f |
#define | NORMAL_CHAR_FORMAT 0x00 |
#define | OLED_address 0x3C |
Functions | |
void | i2c_OLED_clear_display (void) |
void | i2c_OLED_clear_display_quick (void) |
void | i2c_OLED_set_xy (uint8_t col, uint8_t row) |
void | i2c_OLED_set_line (uint8_t row) |
void | i2c_OLED_send_char (unsigned char ascii) |
void | i2c_OLED_send_string (const char *string) |
bool | ug2864hsweg01InitI2C (void) |
Variables | |
unsigned char | CHAR_FORMAT = NORMAL_CHAR_FORMAT |
#define INVERSE_CHAR_FORMAT 0x7f |
#define NORMAL_CHAR_FORMAT 0x00 |
#define OLED_address 0x3C |
void i2c_OLED_clear_display | ( | void | ) |
void i2c_OLED_clear_display_quick | ( | void | ) |
void i2c_OLED_send_char | ( | unsigned char | ascii | ) |
void i2c_OLED_send_string | ( | const char * | string | ) |
void i2c_OLED_set_line | ( | uint8_t | row | ) |
void i2c_OLED_set_xy | ( | uint8_t | col, |
uint8_t | row | ||
) |
bool ug2864hsweg01InitI2C | ( | void | ) |
according to http://www.adafruit.com/datasheets/UG-2864HSWEG01.pdf Chapter 4.4 Page 15
unsigned char CHAR_FORMAT = NORMAL_CHAR_FORMAT |