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
inc/application.h@11:b3929de96933, 2016-02-19 (annotated)
- Committer:
- stormysun513
- Date:
- Fri Feb 19 10:27:54 2016 +0000
- Revision:
- 11:b3929de96933
I2C LEDs workable
Who changed what in which revision?
User | Revision | Line number | New 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 |