1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-13 05:53:06 +01:00

intermediate: prepare for multiple grove configs

This commit is contained in:
andreas
2024-03-18 20:20:38 +01:00
parent 8641f0efd9
commit 59a80fcc9a
7 changed files with 107 additions and 70 deletions

View File

@@ -101,7 +101,7 @@ types:
children:
- *m5grooveserial
- &gpiopin
type: dropdown
type: "#gpiotype#"
resource: "gpio:"
help: 'Select the number of the GPIO pin for this function'
values: "#gpiopinv#"
@@ -136,7 +136,7 @@ types:
- 38
- &gpioinput
type: dropdown
type: "#gpiotype#"
resource: "gpio:"
help: 'Select the number of the GPIO pin for this function'
values: "#gpiopinv#"
@@ -183,6 +183,16 @@ types:
- PPIN25
- PPIN33
- &abcgpio
- {label:unset, value:}
- ABC_PAYELLOW
- ABC_PAYWHITE
- ABC_PBYELLOW
- ABC_PBYWHITE
- ABC_PBYELLOW
- ABC_PBYWHITE
- &serialRX
<<: *gpioinput
key: RX
@@ -235,6 +245,7 @@ types:
type: checkbox
label: 'Serial 1'
key: serial1
resource: serial1
base:
serial: GWSERIAL_
values: *serialValues
@@ -243,6 +254,7 @@ types:
type: checkbox
label: 'Serial 2'
key: serial2
resource: serial2
base:
serial: GWSERIAL2_
values: *serialValues
@@ -360,6 +372,7 @@ types:
type: checkbox
label: "I2C #busname#"
key: "i2c#busname#"
resource: "i2c#busname#"
description: "I2C Bus #busname#"
values:
- key: true
@@ -433,6 +446,7 @@ types:
type: checkbox
label: "SPI/SSI #busname#"
key: "spi#busname#"
resource: "spi#busname#"
description: "SPI(SSI) Bus #busname#"
values:
- key: true
@@ -541,6 +555,11 @@ types:
gpiopinv: *protogpio
children:
*m5protochildren
- value: M5_PORTABC
description: "M5 Stack Port ABC extension base"
url: "https://docs.m5stack.com/en/unit/AtomPortABC"
label: "ABC Ext"
base:
resources:
default: &esp32default
@@ -558,6 +577,7 @@ config:
base:
gpiopinv: *gpiopinv
gpioinputv: *gpioinputv
gpiotype: dropdown
values:
- value: m5stack-atom-generic
label: m5stack-atom

View File

@@ -119,7 +119,7 @@ class PipelineInfo{
.then((st)=>{
if (queryPipeline !== currentPipeline.id) return;
let stid=st.pipeline_id||st.id;
if (currentPipeline.id !== stid) return;
if (stid !== undefined && currentPipeline.id !== stid) return;
if (st.status === undefined) st.status=st.state;
currentPipeline.update(st);
updateStatus();
@@ -516,6 +516,11 @@ class PipelineInfo{
});
}
}
if (expandedValues.length > 0 && config.type === 'display'){
let cb=addEl('div','t'+config.type,inputFrame);
addDescription(config,inputFrame);
initialConfig=expandedValues[0];
}
let childFrame=addEl('div','childFrame',frame);
if (initialConfig !== undefined){
callback(initialConfig,true,childFrame);