Skip to content

Commit 256eaf1

Browse files
committed
Fixes to moisture library
1 parent f4b03cd commit 256eaf1

File tree

3 files changed

+52
-1
lines changed

3 files changed

+52
-1
lines changed
Binary file not shown.

microNode/libraries/moisture/moisture.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ static void ACsync(){
1515
}
1616

1717
#define LOWER_TH 10
18-
#define UPPER_TH 50
18+
#define UPPER_TH 40
1919

2020
volatile uint32_t cycles = 0;
2121

@@ -112,6 +112,7 @@ void init_AC(uint8_t outPin){
112112
ACsync();
113113
AC->INTFLAG.bit.COMP1=1; //Reset int flags
114114

115+
delay(100);
115116
digitalWrite(pin, HIGH);
116117
}
117118

package_loranodes_index.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,56 @@
610610
"version": "1.2.0"
611611
}
612612
]
613+
},
614+
{
615+
"version": "1.0.8",
616+
"boards": [
617+
{
618+
"name": "microNode"
619+
}
620+
],
621+
"archiveFileName": "microNode-1.0.8.tar.bz2",
622+
"checksum": "SHA-256:410ff7cf3e1b181aa0f03010865aea70110a6c6d013ada370ad91e278da2fb59",
623+
"url": "https://github.com/loranodes/arduino-core/raw/1.0.8/microNode-1.0.8.tar.bz2",
624+
"size": 1181993,
625+
"architecture": "samd",
626+
"name": "LoRaNodes M0 Boards",
627+
"category": "LoRaNodes",
628+
"help": {
629+
"online": "https://github.com/loranodes"
630+
},
631+
"toolsDependencies": [
632+
{
633+
"name": "arm-none-eabi-gcc",
634+
"packager": "arduino",
635+
"version": "4.8.3-2014q1"
636+
},
637+
{
638+
"name": "bossac",
639+
"packager": "arduino",
640+
"version": "1.7.0"
641+
},
642+
{
643+
"name": "openocd",
644+
"packager": "arduino",
645+
"version": "0.9.0-arduino6-static"
646+
},
647+
{
648+
"name": "CMSIS",
649+
"packager": "arduino",
650+
"version": "4.5.0"
651+
},
652+
{
653+
"name": "CMSIS-Atmel",
654+
"packager": "arduino",
655+
"version": "1.1.0"
656+
},
657+
{
658+
"name": "arduinoOTA",
659+
"packager": "arduino",
660+
"version": "1.2.0"
661+
}
662+
]
613663
}
614664
]
615665
}

0 commit comments

Comments
 (0)