![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Breath
Fork of Breath by
main.cpp@1:86d9b36d9132, 2016-12-01 (annotated)
- Committer:
- jamesmsong
- Date:
- Thu Dec 01 03:04:38 2016 +0000
- Revision:
- 1:86d9b36d9132
Breath
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jamesmsong | 1:86d9b36d9132 | 1 | #include "mbed.h" |
jamesmsong | 1:86d9b36d9132 | 2 | #include "windSensor.h" |
jamesmsong | 1:86d9b36d9132 | 3 | #include "NeoStrip.h" |
jamesmsong | 1:86d9b36d9132 | 4 | |
jamesmsong | 1:86d9b36d9132 | 5 | #define MPL3115A2_I2C_ADDRESS (0x60<<1) |
jamesmsong | 1:86d9b36d9132 | 6 | NeoStrip strip(p20,2); |
jamesmsong | 1:86d9b36d9132 | 7 | windSensor sensor(p15, &strip, p9, p10, MPL3115A2_I2C_ADDRESS); |
jamesmsong | 1:86d9b36d9132 | 8 | |
jamesmsong | 1:86d9b36d9132 | 9 | int main() { |
jamesmsong | 1:86d9b36d9132 | 10 | while(1){ |
jamesmsong | 1:86d9b36d9132 | 11 | sensor.give_breath(); |
jamesmsong | 1:86d9b36d9132 | 12 | } |
jamesmsong | 1:86d9b36d9132 | 13 | } |