Skip to content

Commit 7c90c2a

Browse files
author
David Betz
committed
Add a script to setup the Wee module.
1 parent 5e62ef5 commit 7c90c2a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

parallax/user_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ void ICACHE_FLASH_ATTR user_init(void) {
207207
uart_init(flashConfig.baud_rate, 115200);
208208

209209
os_printf("Flash config restore %s\n", restoreOk ? "ok" : "*FAILED*");
210+
os_printf("Reset Pin: %d\n", flashConfig.reset_pin);
211+
os_printf("RX Pullup: %d\n", flashConfig.rx_pullup);
210212

211213
statusInit();
212214

tests/setup-wee.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
curl -XPOST $1/wx/setting?name=reset-pin\&value=15
2+
curl -XPOST $1/wx/save-settings

0 commit comments

Comments
 (0)