<filename>include/KB_initBoard.cpp<gh_stars>1-10
#include "KB_initBoard.h"

void KB_board::begin(void) {
    pinMode(KB_BUTTON1, INPUT_PULLUP);
    pinMode(KB_BUTTON2, INPUT_PULLUP);

    pinMode(KB_TFT_SW1, INPUT_PULLUP);
    pinMode(KB_TFT_SW2, INPUT_PULLUP);
    pinMode(KB_TFT_SW3, INPUT_PULLUP);

    pinMode(KB_LED_BT, OUTPUT);
    pinMode(KB_LED_WIFI, OUTPUT);
    pinMode(KB_LED_NTP, OUTPUT);
    pinMode(KB_LED_IOT, OUTPUT);

    digitalWrite(KB_LED_BT, HIGH);
    digitalWrite(KB_LED_WIFI, HIGH);
    digitalWrite(KB_LED_NTP, HIGH);
    digitalWrite(KB_LED_IOT, HIGH);
}

void KB_board::pinWrite(int pin, bool state) {
    digitalWrite(pin, !state);
}

//uint16_t KB_board::pinReadDigital(int pin) {
//    pinReadDigital = digitalRead(pin);
//    return readState;
//}
//
//uint16_t KB_board::pinReadAnalog(int pin) {
//    return analogRead(pin);
//}
