Skip to content

Commit

Permalink
Update firmware version number and move verbosity to initalizeVariables
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ Keller committed Jan 5, 2017
1 parent ed0154b commit a0e0b72
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
9 changes: 4 additions & 5 deletions OpenBCI_32bit_Library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ void OpenBCI_32bit_Library::boardReset(void) {
Serial0.print("On Daisy ADS1299 Device ID: 0x"); Serial0.println(ADS_getDeviceID(ON_DAISY),HEX);
}
Serial0.print("LIS3DH Device ID: 0x"); Serial0.println(LIS3DH_getDeviceID(),HEX);
Serial0.println("Firmware: v2.0.0");
Serial0.println("Firmware: v2.0.1");
sendEOT();
}

Expand Down Expand Up @@ -796,6 +796,7 @@ void OpenBCI_32bit_Library::initializeVariables(void) {
timeOffset = 0;
timeSetCharArrived = 0;
streamPacketType = (char)OPENBCI_PACKET_TYPE_V3;
verbosity = false; // when verbosity is true, there will be Serial feedback
}

void OpenBCI_32bit_Library::printAllRegisters(){
Expand Down Expand Up @@ -1065,17 +1066,15 @@ void OpenBCI_32bit_Library::csHigh(int SS)
// *************************************************************************************
// <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ADS1299 FUNCTIONS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


void OpenBCI_32bit_Library::initialize_ads(){
verbosity = false; // when verbosity is true, there will be Serial feedback
// recommended power up sequence requiers >Tpor (~32mS)
// recommended power up sequence requiers >Tpor (~32mS)
delay(50);
pinMode(ADS_RST,OUTPUT);
digitalWrite(ADS_RST,LOW); // reset pin connected to both ADS ICs
delayMicroseconds(4); // toggle reset pin
digitalWrite(ADS_RST,HIGH); // this will reset the Daisy if it is present
delayMicroseconds(20); // recommended to wait 18 Tclk before using device (~8uS);
// initalize the data ready chip select and reset pins:
// initalize the data ready chip select and reset pins:
pinMode(ADS_DRDY, INPUT); // we get DRDY asertion from the on-board ADS
delay(40);
resetADS(BOARD_ADS); // reset the on-board ADS registers, and stop DataContinuousMode
Expand Down
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v2.0.1

### Bug Fixes
* Bug where softReset message could be scrambled on daisy board.

# v2.0.0-rc.6

### New Features
Expand Down

0 comments on commit a0e0b72

Please sign in to comment.