Skip to content

Commit

Permalink
change pin mappings for Argon; closes #2; closes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Satrom committed Feb 12, 2019
1 parent 7aa10f9 commit 5024e5e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
13 changes: 6 additions & 7 deletions brew-buddy-firmware/src/brew-buddy-firmware.cpp
Expand Up @@ -33,10 +33,10 @@ void updateChart(float temp);
#define APP_VERSION "v1.0"

// Thermocouple Variables
const uint8_t CHIP_SELECT_PIN = D3;
// SCK, MISO & MOSI are defined by Spark on A3-A5
const uint8_t VCC = D1;
const uint8_t GND = D2;
const uint8_t CHIP_SELECT_PIN = D4;
// SCK, MISO & MOSI are defined on Particle 3rd Gen HW at A6-A8
const uint8_t VCC = D2;
const uint8_t GND = D3;
// Instantiate an instance of the SparkFunMAX31855k class
SparkFunMAX31855k probe(CHIP_SELECT_PIN, VCC, GND);

Expand Down Expand Up @@ -72,8 +72,6 @@ String brewId;
void setup()
{
Serial.begin(9600);
while (!Serial)
;

//Particle Variables
Particle.variable("brewStage", brewStage);
Expand All @@ -91,7 +89,8 @@ void setup()

printSubheadingLine("Waiting for Brew...");

Particle.publish("Status", "Ready");
Particle.publish("Version", APP_VERSION);
Particle.publish("Status", "Brew Buddy Online");
}

void loop()
Expand Down
13 changes: 6 additions & 7 deletions brew-buddy-firmware/src/brew-buddy-firmware.ino
Expand Up @@ -12,10 +12,10 @@
#define APP_VERSION "v1.0"

// Thermocouple Variables
const uint8_t CHIP_SELECT_PIN = D3;
// SCK, MISO & MOSI are defined by Spark on A3-A5
const uint8_t VCC = D1;
const uint8_t GND = D2;
const uint8_t CHIP_SELECT_PIN = D4;
// SCK, MISO & MOSI are defined on Particle 3rd Gen HW at A6-A8
const uint8_t VCC = D2;
const uint8_t GND = D3;
// Instantiate an instance of the SparkFunMAX31855k class
SparkFunMAX31855k probe(CHIP_SELECT_PIN, VCC, GND);

Expand Down Expand Up @@ -51,8 +51,6 @@ String brewId;
void setup()
{
Serial.begin(9600);
while (!Serial)
;

//Particle Variables
Particle.variable("brewStage", brewStage);
Expand All @@ -70,7 +68,8 @@ void setup()

printSubheadingLine("Waiting for Brew...");

Particle.publish("Status", "Ready");
Particle.publish("Version", APP_VERSION);
Particle.publish("Status", "Brew Buddy Online");
}

void loop()
Expand Down

0 comments on commit 5024e5e

Please sign in to comment.