Skip to content
Snippets Groups Projects
Commit 995ea739 authored by roaa1g19's avatar roaa1g19
Browse files

V1.0.0 of WristBand Program - Should be first finalized and verified version

parent 8ead0e5f
Branches
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@
/* #define GPS_I2C /* If defined I2C will be used instead of serial DEPRECATED */
/* #define GPS_NO_FILTER /* If defined, the GPS IC data isn't filtered and all of it is printed */
#define GPS_DEBUG_PRINT /* If defined it activates GPS uart debug printing */
/* #define GPS_DEBUG_PRINT /* If defined it activates GPS uart debug printing */
#ifdef GPS_I2C
#include <Wire.h> // Wire library - used for I2C communication
......
......@@ -10,7 +10,7 @@
#include "soc/soc.h"
#include "soc/rtc_cntl_reg.h"
#define DEBUG_PRINT /* Debug printing trough uart if defined */
/* #define DEBUG_PRINT /* Debug printing trough uart if defined */
//For testing
/*
......@@ -24,25 +24,21 @@ void setup()
Serial.begin(115200);
//while (!Serial){;} /*Used for native USB support */
#ifdef DEBUG_PRINT
Serial.println("hello");
#endif
Wire.begin();
Serial.println("1");
esp_bredr_tx_power_set(ESP_PWR_LVL_N12, ESP_PWR_LVL_N12);
WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //Have this before bluetooth setup
_denisBluetooth_Setup();
delay(500); //Just some delay to let bluetooth setup
WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 1); //Enable brownout detector
Serial.println("2");
_rodGPs_Setup();
Serial.println("3");
_robADXL375_setup();
Serial.println("4");
HR_setup();
Serial.println("5");
initLCD();
Serial.println("6");
pinMode(26, OUTPUT);
digitalWrite(26, 1);
......@@ -68,7 +64,6 @@ void setup()
&gpsThreadHandle, /* Task handle. */
0); /* Core where the task should run */
Serial.println("1");
xTaskCreatePinnedToCore(
stepCounterThread, /* Function to implement the task */
......@@ -79,7 +74,6 @@ void setup()
&stepCounterThreadHandle, /* Task handle. */
0); /* Core where the task should run */
Serial.println("2");
xTaskCreatePinnedToCore(
checkGamesStatusThread, /* Function to implement the task */
......@@ -90,7 +84,6 @@ void setup()
&checkGamesStatusThreadHandle, /* Task handle. */
0); /* Core where */
Serial.println("3");
xTaskCreatePinnedToCore(
HR_bpm_processing, /* Function to implement the task */
......@@ -101,7 +94,6 @@ void setup()
&bpmProcessingThreadHandle, /* Task handle. */
0); /* Core where the task should run */
Serial.println("4");
xTaskCreatePinnedToCore(
HR_bpm_reading, /* Function to implement the task */
......@@ -112,7 +104,6 @@ void setup()
&bpmReadingThreadHandle, /* Task handle. */
0); /* Core where the task should run */
Serial.println("5");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment