-
Notifications
You must be signed in to change notification settings - Fork 24
/
i2c.h
35 lines (30 loc) · 1.03 KB
/
i2c.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// **********************************************************************************
// I2C management header file for remora project
// **********************************************************************************
// Creative Commons Attrib Share-Alike License
// You are free to use/extend but please abide with the CC-BY-SA license:
// http://creativecommons.org/licenses/by-sa/4.0/
//
// Written by Charles-Henri Hallard (http://hallard.me)
//
// History : V1.00 2015-01-22 - First release
//
// All text above must be included in any redistribution.
//
// **********************************************************************************
#ifndef I2C_h
#define I2C_h
#include "remora.h"
#include "display.h"
#ifdef ESP8266
#include <Wire.h>
#endif
// Variables exported to other source file
// ========================================
// define RF var for whole project
// Function exported for other source file
// =======================================
bool i2c_init(void);
bool i2c_detect(uint8_t);
uint8_t i2c_scan(void);
#endif