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 RedBearLab

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers application.h Source File

application.h

00001 #ifndef APPLICATION_H
00002 #define APPLICATION_H
00003 
00004 #include "mbed.h"
00005 
00006 #define TMP102_ADDR                 (0x48 << 1)
00007 #define TMP102_TEMP_REG_ADDR        0x00
00008 
00009 #define EEPROM_ADDR                 (0x50 << 1)
00010 
00011 float readTMP102Temperature(I2C& i2c, char* reg);
00012 bool writeAT24EEPROMBuffer(I2C& i2c, uint8_t dataAddr, char* buf, uint16_t length);
00013 bool readAT24EEPROMBuffer(I2C& i2c, uint8_t dataAddr, char* buf, uint16_t length);
00014 
00015 #endif