Pseudo-Medical Monitor Code AudioBoard STUFF
Jump to navigation
Jump to search
#define AudioBoard_TX_PIN 17 #define AudioBoard_RX_PIN 16 #define AudioBoard_RST_PIN 28 #define AudioBoard_GPIO0_PIN 30 #define AudioBoard_GPIO1_PIN 32 #define AudioBoardSerial Serial2 void AudioBoard_reset() { digitalWrite(AudioBoard_RST_PIN,HIGH); digitalWrite(AudioBoard_GPIO0_PIN,LOW); digitalWrite(AudioBoard_GPIO1_PIN,HIGH); digitalWrite(AudioBoard_RST_PIN,LOW); digitalWrite(AudioBoard_RST_PIN,HIGH); } bool setup_AudioBoard() { pinMode(AudioBoard_RST_PIN, OUTPUT); pinMode(AudioBoard_GPIO0_PIN, OUTPUT); pinMode(AudioBoard_GPIO1_PIN, OUTPUT); digitalWrite(AudioBoard_RST_PIN,HIGH); AudioBoard_reset(); AudioBoardSerial.begin(31250); return(true); }