diff --git a/.gitmodules b/.gitmodules index 6889aed..8b13789 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1 @@ -[submodule "test/googletest"] - path = test/googletest - url = https://github.com/google/googletest.git + diff --git a/examples/BoardWithWifi/BoardWithWifi.ino b/examples/BoardWithWifi/BoardWithWifi.ino deleted file mode 100644 index becb09a..0000000 --- a/examples/BoardWithWifi/BoardWithWifi.ino +++ /dev/null @@ -1,56 +0,0 @@ -#include -#include -#include - -// THIS IS NOT COMPLETE OR WORKING! - -void setup() { - // Bring up the OpenBCI Board - board.begin(); - board.beginSecondarySerial(); - -} - -void loop() { - - if (board.streaming) { - if (board.channelDataAvailable) { - // Read from the ADS(s), store data, set channelDataAvailable flag to false - board.updateChannelData(); - - if (board.timeSynced) { - board.sendChannelDataWithTimeAndRawAux(); - } else { - // Send standard packet with channel data - board.sendChannelDataWithRawAux(); - } - } - } - - // Check the serial port for new data - if (Serial0.available()) { - char newChar = board.getCharSerial0(); - // Read one char and process it - board.processChar(newChar); - - if (newChar == 'h') { - Serial1.print("AT"); - } else if (newChar == 'k') { - Serial1.print("AT+RST"); - } else if (newChar == 'n') { - Serial1.print("AT+GMR"); - } else if (newChar == 'N') { - Serial1.print("AT+CWMODE=3"); - } else if (newChar == 'o') { - Serial1.print("AT+CWJAP="","""); - } else if (newChar == 'O') { - Serial1.print("AT+CWJAP?"); - } else if (newChar == 'V') { - Serial1.print("AT+CWLAP"); - } - } - - if (board.hasDataSerial1()) { - Serial0.write(Serial1.read()); - } -}