initial publish
Dependencies: mbed ADXL375_i2c
Revision 0:1791e9732820, committed 2019-10-23
- Comitter:
- sashida_h
- Date:
- Wed Oct 23 13:26:46 2019 +0000
- Commit message:
- initial commit
Changed in this revision
diff -r 000000000000 -r 1791e9732820 ADXL375_i2c.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ADXL375_i2c.lib Wed Oct 23 13:26:46 2019 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/teams/PQ_Hybrid_Electrical_Equipment_Team/code/ADXL375_i2c/#46fcf349bdca
diff -r 000000000000 -r 1791e9732820 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Oct 23 13:26:46 2019 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" +#include "ADXL375_i2c.h" + +DigitalOut myled(PB_1); +Serial pc(PA_9, PA_10, 9600); + +ADXL375_i2 adxl = ADXL375_i2c(PB_7, PB_6); + +int main() { + while(1) { + myled = 1; // LED is ON + wait(0.2); // 200 ms + myled = 0; // LED is OFF + wait(1.0); // 1 sec + } +}
diff -r 000000000000 -r 1791e9732820 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Oct 23 13:26:46 2019 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file