Skip to content

Commit ba16159

Browse files
changed pin mapping in tests/moisture
1 parent 2e2c401 commit ba16159

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/moisture/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@
3232
#endif
3333

3434
#define ADC_NUM 0
35-
#define ADC_CH 0
35+
#define ADC_CH 5
3636
#define RES ADC_RES_12BIT
3737
#define DELAY (100 * 1000U)
3838

39-
#define GPIO_VCC_PORT 0
40-
#define GPIO_VCC_PIN 13
39+
#define GPIO_VCC_PORT 1
40+
#define GPIO_VCC_PIN 2
4141

4242
/* Compare http://www.watr.li/Sensing-moisture.html for setup */
4343

0 commit comments

Comments
 (0)