Kabuki Starship / Mbed 2 deprecated GHVentilator

Dependencies:   mbed SickBayTek

Committer:
kabukistarship
Date:
Tue Apr 07 13:10:45 2020 +0000
Revision:
2:1578ecfa9377
Child:
3:d15b6579b5ae
Almost finished with the change from Flowerbed to a ventilator.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
kabukistarship 2:1578ecfa9377 1 /** Gravity Hookah Ventilator @version 0.x
kabukistarship 2:1578ecfa9377 2 @link https://github.com/KabukiStarship/SickBay.git
kabukistarship 2:1578ecfa9377 3 @file /Main.cpp
kabukistarship 2:1578ecfa9377 4 @author Cale McCollough <https://cale-mccollough.github.io>
kabukistarship 2:1578ecfa9377 5 @license Copyright 2020 (C) Kabuki Starship <kabukistarship.com>.
kabukistarship 2:1578ecfa9377 6 This Source Code Form is subject to the terms of the Mozilla Public License,
kabukistarship 2:1578ecfa9377 7 v. 2.0. If a copy of the MPL was not distributed with this file, you can obtain
kabukistarship 2:1578ecfa9377 8 one at <https://mozilla.org/MPL/2.0/>. */
kabukistarship 2:1578ecfa9377 9
kabukistarship 2:1578ecfa9377 10 #define GHVDebug 1 //< Set to 0 or 1 to enable or disable debugging.
kabukistarship 2:1578ecfa9377 11
kabukistarship 2:1578ecfa9377 12 #include <mbedBug.h>
kabukistarship 2:1578ecfa9377 13
kabukistarship 2:1578ecfa9377 14 #include "GHVentilatorChannel.h"
kabukistarship 2:1578ecfa9377 15 using namespace SickBay;
kabukistarship 2:1578ecfa9377 16
kabukistarship 2:1578ecfa9377 17 int main () {
kabukistarship 2:1578ecfa9377 18 I2C I2CBus(A4, A5);
kabukistarship 2:1578ecfa9377 19 // + ------------------------ Number of updates per second.
kabukistarship 2:1578ecfa9377 20 // v
kabukistarship 2:1578ecfa9377 21 GHVentilator GHV (250, I2CBus, address,
kabukistarship 2:1578ecfa9377 22 // +-------------------- Flow sensor interrupt pin.
kabukistarship 2:1578ecfa9377 23 // | +---------------- Pulse oximiter pin.
kabukistarship 2:1578ecfa9377 24 // | | +------------ Solenoid Vavle.
kabukistarship 2:1578ecfa9377 25 // | | | +-------- Status LED/Alarm.
kabukistarship 2:1578ecfa9377 26 // | | | | +--- PWM Servo
kabukistarship 2:1578ecfa9377 27 // v v v v v
kabukistarship 2:1578ecfa9377 28 GHVentilatorChannel (D0, A0, D4, D8, D12).This(),
kabukistarship 2:1578ecfa9377 29 GHVentilatorChannel (D1, A1, D5, D9, D13).This(),
kabukistarship 2:1578ecfa9377 30 GHVentilatorChannel (D2, A2, D6, D10, D14).This(),
kabukistarship 2:1578ecfa9377 31 GHVentilatorChannel (D3, A3, D7, D11, D15).This())
kabukistarship 2:1578ecfa9377 32 );
kabukistarship 2:1578ecfa9377 33 }