-
Notifications
You must be signed in to change notification settings - Fork 0
/
RPiExtender.json
70 lines (64 loc) · 2.01 KB
/
RPiExtender.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"firmware" : {
"mcu_model" : "stm32f103",
"i2c_bus" : {
"clock_speed" : 100000,
"buffer_size" : 512,
"address" : 32,
"requires" : {"i2c" : "I2C2"}
}},
"devices" : {
"DeskDevCustomizer" : {
"deskdev" : {
"dev_id" : 2,
"requires" : { "up" : { "gpio" : "PA_3" },
"down" : { "gpio" : "PA_2" },
"left" : { "gpio" : "PA_5" },
"right" : { "gpio" : "PA_4" },
"encoder" : {"A" : { "gpio" : "PA_7"}, "B" : {"gpio" : "PA_6"}}}
}},
"RTCCustomizer" : {
"rtc": {
"dev_id": 3,
"requires": { "bkp" : "BKP_DR1",
"rtc" : "RTC"}
}},
"IRRCCustomizer" : {
"irrc": {
"dev_id": 5,
"buffer_size" : 64,
"requires": {"data" : {"gpio" : "PA_1"}}
}},
"UartProxyCustomizer" : {
"sim800l" : {
"dev_id" : 4,
"hint" : "gsmmodem",
"buffer_size" : 2000,
"baud_rate" : 9600,
"requires" : { "usart" : "USART1"}
}},
"LCD1602aCustomizer" : {
"lcd": {
"dev_id" : 1,
"welcome" : ["-=RPi Extender=-"," loading ..."],
"requires" : {"enable" : {"gpio" : "PB_14"},
"reg_sel" : {"gpio" : "PB_13"},
"data4" : {"gpio" : "PB_6"},
"data5" : {"gpio" : "PB_7"},
"data6" : {"gpio" : "PB_8"},
"data7" : {"gpio" : "PB_9"},
"light" : {"gpio" : "PB_0"}}
}},
"GPIODevCustomizer": {
"gpio" : {
"dev_id" : 6,
"description" : {"sim800_reset" : {
"type": "GPIO_Mode_Out_PP",
"gpio": "PA_11",
"default": 1},
"ir_power" : {
"type": "GPIO_Mode_Out_PP",
"gpio": "PA_0",
"default": 1}}}
}}
}