Breath

Dependencies:   NeoStrip mbed

Fork of Breath by Ryan Williams

main.cpp

Committer:
jamesmsong
Date:
2016-12-01
Revision:
1:86d9b36d9132

File content as of revision 1:86d9b36d9132:

#include "mbed.h"
#include "windSensor.h"
#include "NeoStrip.h"

#define MPL3115A2_I2C_ADDRESS (0x60<<1)
NeoStrip strip(p20,2);
windSensor sensor(p15, &strip, p9, p10, MPL3115A2_I2C_ADDRESS);

int main() {
    while(1){
        sensor.give_breath(); 
        }
}