Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API mbed nRF51822 circular_buffer
Diff: main.cpp
- Revision:
- 1:11ff92032e78
- Parent:
- 0:c123bc196680
- Child:
- 2:96f52163ca48
--- a/main.cpp Fri Jan 15 15:37:09 2016 +0000
+++ b/main.cpp Fri Jan 15 16:03:49 2016 +0000
@@ -8,22 +8,22 @@
DigitalOut led3(LED3);
DigitalOut led4(LED4);
-const int addr = 0x60;
+const int addr = 0x38;
int main(){
char data_write[2];
- char data_read[2];
+ //char data_read[2];
led1 = 1;
led2 = 1;
led3 = 1;
led4 = 1;
- data_write[0] = 0x00;
- data_write[1] = 0x01;
+ data_write[0] = 0x01;
+ data_write[1] = 0x00;
//i2c.start();
- int status = i2c.write(addr,data_write,2);
+ int status = i2c.write(addr,data_write, 2);
if (status != 0) { // Error
while (1) {
