nRF51822 serves as the bridge between BLE central and MCU, which makes cental able to fetch photos from serial camera.
Dependencies: BLE_API mbed nRF51822
Fork of nRF51822_blinky by
Diff: inc/application.h
- Revision:
- 9:d44d16ffd48c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/inc/application.h Fri Feb 19 09:23:56 2016 +0000 @@ -0,0 +1,15 @@ +#ifndef APPLICATION_H +#define APPLICATION_H + +#include "mbed.h" + +#define TMP102_ADDR (0x48 << 1) +#define TMP102_TEMP_REG_ADDR 0x00 + +#define EEPROM_ADDR (0x50 << 1) + +float readTMP102Temperature(I2C& i2c, char* reg); +bool writeAT24EEPROMBuffer(I2C& i2c, uint8_t dataAddr, char* buf, uint16_t length); +bool readAT24EEPROMBuffer(I2C& i2c, uint8_t dataAddr, char* buf, uint16_t length); + +#endif \ No newline at end of file