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

Committer:
stormysun513
Date:
Sun May 22 14:29:58 2016 +0000
Revision:
21:4753996b0bcb
Parent:
11:b3929de96933
Saperate turn on and off command into different packet headers

Who changed what in which revision?

UserRevisionLine numberNew contents of line
stormysun513 11:b3929de96933 1 #ifndef APPLICATION_H
stormysun513 11:b3929de96933 2 #define APPLICATION_H
stormysun513 11:b3929de96933 3
stormysun513 11:b3929de96933 4 #include "mbed.h"
stormysun513 11:b3929de96933 5
stormysun513 11:b3929de96933 6 #define TMP102_ADDR (0x48 << 1)
stormysun513 11:b3929de96933 7 #define TMP102_TEMP_REG_ADDR 0x00
stormysun513 11:b3929de96933 8
stormysun513 11:b3929de96933 9 #define EEPROM_ADDR (0x50 << 1)
stormysun513 11:b3929de96933 10
stormysun513 11:b3929de96933 11 float readTMP102Temperature(I2C& i2c, char* reg);
stormysun513 11:b3929de96933 12 bool writeAT24EEPROMBuffer(I2C& i2c, uint8_t dataAddr, char* buf, uint16_t length);
stormysun513 11:b3929de96933 13 bool readAT24EEPROMBuffer(I2C& i2c, uint8_t dataAddr, char* buf, uint16_t length);
stormysun513 11:b3929de96933 14
stormysun513 11:b3929de96933 15 #endif