Skip to content

Commit 33f3ca4

Browse files
committed
add GPIO service; board config syntax tweaks
1 parent 5f0cda7 commit 33f3ca4

11 files changed

+405
-73
lines changed

boards/esp32.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { JsonComment, Pin } from "@devicescript/srvcfg"
22
import {
33
DeviceConfig,
44
ArchConfig,
5-
} from "../devicescript/compiler/src/archconfig"
5+
} from "../devicescript/interop/src/archconfig"
66

77
interface ESP32DeviceConfig extends DeviceConfig {
88
sd?: SdCardConfig

boards/esp32c3/adafruit_qt_py_c3.board.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"pinSDA": 5
1616
},
1717
"pins": {
18-
"#TX": 21,
18+
"@TX": 21,
1919
"RX": 20,
2020
"A0": 4,
2121
"A1": 3,

boards/esp32c3/esp32c3_bare.board.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"P8": 8,
1818
"P10": 10,
1919
"P20": 20,
20-
"#P21": 21
20+
"@P21": 21
2121
},
2222
"services": [
2323
{

boards/esp32c3/esp32c3_rust_devkit.board.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
"P4": 4,
2222
"P5": 5,
2323
"P6": 6,
24-
"#LED": 7,
25-
"#P21": 21,
24+
"@LED": 7,
25+
"@P21": 21,
2626
"P20": 20
2727
},
2828
"services": [

boards/esp32c3/seeed_xiao_esp32c3.board.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"D5": 7,
1515
"D7": 20,
1616
"D8": 8,
17-
"#D9": 9,
17+
"@D9": 9,
1818
"D10": 10
1919
},
2020
"services": [

boards/esp32c3/seeed_xiao_esp32c3_msr218.board.json

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
"A0": 2,
1010
"A1": 3,
1111
"A2": 4,
12-
"#JD": 5,
13-
"#SDA": 6,
14-
"#SCL": 7,
15-
"#TX": 21,
12+
"@JD": 5,
13+
"@SDA": 6,
14+
"@SCL": 7,
15+
"@TX": 21,
1616
"RX": 20,
17-
"#LED_PWR": 8,
17+
"LED_PWR": 8,
1818
"D9": 9,
19-
"#LED": 10
19+
"@LED": 10
2020
},
2121
"jacdac": {
2222
"$connector": "Jacdac",
@@ -26,12 +26,9 @@
2626
"type": 1,
2727
"pin": 10
2828
},
29-
"setupPins": [
30-
{
31-
"pin": 8,
32-
"out": 1
33-
}
34-
],
29+
"sPin": {
30+
"LED_PWR": 1
31+
},
3532
"i2c": {
3633
"$connector": "Qwiic",
3734
"pinSCL": 7,

0 commit comments

Comments
 (0)