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:
- 2:1578ecfa9377
- Child:
- 3:d15b6579b5ae
diff -r 3a36f28f8d65 -r 1578ecfa9377 Main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Main.cpp Tue Apr 07 13:10:45 2020 +0000 @@ -0,0 +1,33 @@ +/** Gravity Hookah Ventilator @version 0.x +@link https://github.com/KabukiStarship/SickBay.git +@file /Main.cpp +@author Cale McCollough <https://cale-mccollough.github.io> +@license Copyright 2020 (C) Kabuki Starship <kabukistarship.com>. +This Source Code Form is subject to the terms of the Mozilla Public License, +v. 2.0. If a copy of the MPL was not distributed with this file, you can obtain +one at <https://mozilla.org/MPL/2.0/>. */ + +#define GHVDebug 1 //< Set to 0 or 1 to enable or disable debugging. + +#include <mbedBug.h> + +#include "GHVentilatorChannel.h" +using namespace SickBay; + +int main () { + I2C I2CBus(A4, A5); + // + ------------------------ Number of updates per second. + // v + GHVentilator GHV (250, I2CBus, address, + // +-------------------- Flow sensor interrupt pin. + // | +---------------- Pulse oximiter pin. + // | | +------------ Solenoid Vavle. + // | | | +-------- Status LED/Alarm. + // | | | | +--- PWM Servo + // v v v v v + GHVentilatorChannel (D0, A0, D4, D8, D12).This(), + GHVentilatorChannel (D1, A1, D5, D9, D13).This(), + GHVentilatorChannel (D2, A2, D6, D10, D14).This(), + GHVentilatorChannel (D3, A3, D7, D11, D15).This()) + ); +}