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.
Diff: Main.cpp
- Revision:
- 6:b2672da545f1
- Parent:
- 5:da629056644f
- Child:
- 8:fa5cc1397510
diff -r da629056644f -r b2672da545f1 Main.cpp --- a/Main.cpp Wed Apr 08 12:36:36 2020 +0000 +++ b/Main.cpp Thu Apr 09 02:05:03 2020 +0000 @@ -17,21 +17,21 @@ I2C I2CBus(A4, A5); int Address = BMP280SlaveAddressDefault; GHVentilator GHV (UpdatesPerSecond, - UpdatesPerSecond * 10, //<-- Calibration tick count. + UpdatesPerSecond * 10, //<-- Calibration state tick count. I2CBus, Address, - 0.25f, //<------------------ Pressure chamber hysteresis %. - 0.01f, // <----------------- Patient pressure hysteresis, - D0, // <----------------- Blower pin. - D1, // <----------------- Status pin. - // +---------------------- Pulse oximiter pin. - // | +------------------ Flow sensor interrupt pin. - // | | +------------- Solenoid Vavle. - // | | | +-------- Status LED/Alarm. - // | | | | +--- PWM Servo - // v v v v v - GHVentilatorChannel (A0, D3, D4, D5, D6, I2CBus,Address+1).This(), - GHVentilatorChannel (A1, D7, D8, D9, D10, I2CBus,Address+2).This(), - GHVentilatorChannel (A2, D11, D12, D13, D14, I2CBus,Address+3).This(), - GHVentilatorChannel (A3, D15, PC_8, PC_6, PC_5, I2CBus,Address+4).This() + 0.25f, //<-------------- Pressure chamber hysteresis %. + 0.01f, // <------------- Patient pressure hysteresis, + D0, // <------------- Blower pin. + D1, // <------------- Status pin. + // +------------------ Pulse oximiter pin. + // | +-------------- Flow sensor interrupt pin. + // | | +-------- Solenoid Vavle. + // | | | +--- PWM Servo + // v v v v + GHVentilatorChannel (A0, D3, D4, D5, I2CBus,Address+1).This(), + GHVentilatorChannel (A1, D6, D7, D8, I2CBus,Address+2).This(), + GHVentilatorChannel (A2, D9, D10, D11, I2CBus,Address+3).This(), + // This channel is for an STM Nucleo-L152RE; use your dev boards pins. + GHVentilatorChannel (A3, PC_8, PC_6, PC_5, I2CBus,Address+4).This() ); }