This commit is contained in:
thanhpn 2017-04-23 15:35:23 +07:00
parent b3f658bdbf
commit b982a132ae
5 changed files with 98 additions and 0 deletions

15
extras/pcf8591/pcf8591.c Normal file
View file

@ -0,0 +1,15 @@
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include <i2c/i2c.h>
#include "pcf8591.h"
static uint8_t mAddress = PCF8591_DEFAULT_ADDRESS;
static float mVoltage = 3.3f;
void
pcf8591_set_address(uint8_t addr)
{
//
}