Skip to content

Commit

Permalink
rename topics
Browse files Browse the repository at this point in the history
  • Loading branch information
TassSinclair committed Jan 22, 2020
1 parent 5d93523 commit a8061a9
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build-monitor/src/BuildMonitorStep1.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "BuildMonitorStep1.h"

#define NEOPIXEL_PIN 13
#define NEOPIXEL_LENGTH 8
#define NEOPIXEL_LENGTH 12

BuildMonitorStep1::BuildMonitorStep1() : pixels(NEOPIXEL_LENGTH, NEOPIXEL_PIN, NEO_GRB + NEO_KHZ800)
{
Expand Down
2 changes: 1 addition & 1 deletion build-monitor/src/BuildMonitorStep2.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "BuildMonitorStep2.h"

#define NEOPIXEL_PIN 13
#define NEOPIXEL_LENGTH 8
#define NEOPIXEL_LENGTH 12

BuildMonitorStep2::BuildMonitorStep2() : pixels(NEOPIXEL_LENGTH, NEOPIXEL_PIN, NEO_GRB + NEO_KHZ800)
{
Expand Down
2 changes: 1 addition & 1 deletion build-monitor/src/BuildMonitorStep3.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "BuildMonitorStep3.h"

#define NEOPIXEL_PIN 13
#define NEOPIXEL_LENGTH 8
#define NEOPIXEL_LENGTH 12

BuildMonitorStep3::BuildMonitorStep3() : pixels(NEOPIXEL_LENGTH, NEOPIXEL_PIN, NEO_GRB + NEO_KHZ800)
{
Expand Down
2 changes: 1 addition & 1 deletion build-monitor/src/BuildMonitorStep4.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "BuildMonitorStep4.h"

#define NEOPIXEL_PIN 13
#define NEOPIXEL_LENGTH 8
#define NEOPIXEL_LENGTH 12

BuildMonitorStep4::BuildMonitorStep4() : pixels(NEOPIXEL_LENGTH, NEOPIXEL_PIN, NEO_GRB + NEO_KHZ800)
{
Expand Down
10 changes: 5 additions & 5 deletions build-monitor/src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "BuildMonitorStep1.h"
#include "BuildMonitorStep2.h"
#include "BuildMonitorStep3.h"
#include "BuildMonitorStep4.h"
// #include "BuildMonitorStep1.h"
// #include "BuildMonitorStep2.h"
// #include "BuildMonitorStep3.h"
// #include "BuildMonitorStep4.h"
#include "BuildMonitorStep5.h"

BuildMonitorStep1 buildMonitor;
BuildMonitorStep5 buildMonitor;

void setup()
{
Expand Down
6 changes: 6 additions & 0 deletions motion-sensor/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.pio
.pioenvs
.piolibdeps
.vscode/.browse.c_cpp.db*
.vscode/c_cpp_properties.json
.vscode/launch.json
7 changes: 7 additions & 0 deletions motion-sensor/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"platformio.platformio-ide"
]
}
4 changes: 2 additions & 2 deletions remote-toggle/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static void reconnect()
if (client.connect(local_hostname))
{
Serial.printf("connected to broker %s\n", local_hostname);
client.subscribe("/remote_switch/in");
client.subscribe("/remote_toggle/in");
client.setCallback(callback);
}
else
Expand Down Expand Up @@ -106,7 +106,7 @@ void loop()

if (press == HIGH)
{
client.publish("/remote_switch/out", "1");
client.publish("/remote_toggle/out", "1");
delay(500);
}
delay(100);
Expand Down

0 comments on commit a8061a9

Please sign in to comment.