
// Arduino MKR 1010 Wifi
#define BOARD "MKR1010"
    // pwm pins
const int pin_valve_air_in     = 1;
const int pin_valve_o2_in      = 2;
const int pin_valve_inhale     = 3;  // formerly pin_valve_out
const int pin_valve_exhale     = 4;  // formerly pin_valve_scavenge
const int pin_valve_purge      = 5;
const int pin_o2_sensor = 6;

    // adcs
// const int pin_pressure_air_supply     = A0;
// const int pin_pressure_o2_supply      = A6;
const int pin_pressure_air_regulated  = A0;
const int pin_pressure_buffer         = A1;
const int pin_pressure_inhale         = A2;
const int pin_pressure_patient        = A3;
const int pin_temperature_buffer      = A4;
const int pin_pressure_o2_regulated   = A5;
const int pin_pressure_diff_patient   = A6;

    // leds
const int pin_led_green          = 7;
const int pin_led_yellow          = 8;
const int pin_led_red          = 9;

    // buzzer
const int pin_buzzer         = 0;

    // buttons
const int pin_spare_1       = 14;

const int pwm_resolution = 8; // 8 bit resolution; up to 12 possible