Corrected Reley output
This commit is contained in:
@@ -17,6 +17,7 @@ lib_deps =
|
|||||||
# Accept new functionality in a backwards compatible manner and patches
|
# Accept new functionality in a backwards compatible manner and patches
|
||||||
fastled/FastLED @ ^3.5.0
|
fastled/FastLED @ ^3.5.0
|
||||||
powerbroker2/SerialTransfer @ ^3.1.3
|
powerbroker2/SerialTransfer @ ^3.1.3
|
||||||
|
featherfly/SoftwareSerial@^1.0
|
||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
monitor_port = COM3
|
monitor_port = COM3
|
||||||
upload_port = COM3
|
upload_port = COM3
|
||||||
@@ -95,7 +95,7 @@ void loop() {
|
|||||||
// // this bit checks if a message has been received
|
// // this bit checks if a message has been received
|
||||||
if (newRxData == true) {
|
if (newRxData == true) {
|
||||||
if(rxData.mode > 0){
|
if(rxData.mode > 0){
|
||||||
if(!digitalRead(RELAY_PIN)){
|
if(digitalRead(RELAY_PIN)){
|
||||||
digitalWrite(RELAY_PIN, LOW);
|
digitalWrite(RELAY_PIN, LOW);
|
||||||
digitalWrite(LED_BUILTIN, HIGH);
|
digitalWrite(LED_BUILTIN, HIGH);
|
||||||
Serial.println("Power ON");
|
Serial.println("Power ON");
|
||||||
@@ -103,7 +103,7 @@ void loop() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
if(digitalRead(RELAY_PIN)){
|
if(!digitalRead(RELAY_PIN)){
|
||||||
digitalWrite(RELAY_PIN, HIGH);
|
digitalWrite(RELAY_PIN, HIGH);
|
||||||
digitalWrite(LED_BUILTIN, LOW);
|
digitalWrite(LED_BUILTIN, LOW);
|
||||||
Serial.println("Power OFF");
|
Serial.println("Power OFF");
|
||||||
|
|||||||
17
ExtSens/.vscode/extensions.json
vendored
17
ExtSens/.vscode/extensions.json
vendored
@@ -1,7 +1,10 @@
|
|||||||
{
|
{
|
||||||
// See http://go.microsoft.com/fwlink/?LinkId=827846
|
// See http://go.microsoft.com/fwlink/?LinkId=827846
|
||||||
// for the documentation about the extensions.json format
|
// for the documentation about the extensions.json format
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"platformio.platformio-ide"
|
"platformio.platformio-ide"
|
||||||
]
|
],
|
||||||
}
|
"unwantedRecommendations": [
|
||||||
|
"ms-vscode.cpptools-extension-pack"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user