mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-14 23:46:52 +03:00
Esp32s3 test (#3734)
* Added ethernet functionality * change smart leds to GPIO47 for now * Make etherenet code specific for the esp32-s3 board
This commit is contained in:
@@ -1744,14 +1744,14 @@
|
||||
</tr>
|
||||
<!------------- GPIO4 end ------------------>
|
||||
|
||||
<!------------- GPIO12 begin ------------------>
|
||||
<!------------- GPIO47 begin ------------------>
|
||||
<tr class="GPIO_item">
|
||||
<td class="indent1">
|
||||
<input type="checkbox" id="GPIO_IO12_enabled" value="1" onclick = 'InvertEnableItem("GPIO", "IO12")' unchecked>
|
||||
<label for=GPIO_IO12_enabled><span id="GPIO_IO12_text">GPIO12 Configuration</span></label>
|
||||
<input type="checkbox" id="GPIO_IO47_enabled" value="1" onclick = 'InvertEnableItem("GPIO", "IO47")' unchecked>
|
||||
<label for=GPIO_IO47_enabled><span id="GPIO_IO47_text">GPIO47 Configuration</span></label>
|
||||
</td>
|
||||
<td>
|
||||
<select id="GPIO_IO12_value1">
|
||||
<select id="GPIO_IO47_value1">
|
||||
<option value="input">input</option>
|
||||
<option value="input-pullup">input pullup</option>
|
||||
<option value="input-pulldown">input pulldown</option>
|
||||
@@ -1761,15 +1761,15 @@
|
||||
<option value="external-flash-ws281x">external flash light ws281x controlled</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>$TOOLTIP_GPIO_IO12</td>
|
||||
<td>$TOOLTIP_GPIO_IO47</td>
|
||||
</tr>
|
||||
|
||||
<tr class="GPIO_IO12 GPIO_item expert">
|
||||
<tr class="GPIO_IO47 GPIO_item expert">
|
||||
<td class="indent2">
|
||||
<span class="GPIO_IO12 GPIO_item">GPIO12 Use Interrupt</span>
|
||||
<span class="GPIO_IO47 GPIO_item">GPIO47 Use Interrupt</span>
|
||||
</td>
|
||||
<td>
|
||||
<select class="GPIO_IO12 GPIO_item" id="GPIO_IO12_value2">
|
||||
<select class="GPIO_IO47 GPIO_item" id="GPIO_IO47_value2">
|
||||
<option value="disabled">disabled</option>
|
||||
<option value="rising-edge">rising edge</option>
|
||||
<option value="falling-edge">falling edge</option>
|
||||
@@ -1781,45 +1781,45 @@
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
<tr class="GPIO_IO12 GPIO_item expert">
|
||||
<tr class="GPIO_IO47 GPIO_item expert">
|
||||
<td class="indent2">
|
||||
<span class="GPIO_IO12 GPIO_item">GPIO12 PWM Duty Cycle Resolution</span>
|
||||
<span class="GPIO_IO47 GPIO_item">GPIO47 PWM Duty Cycle Resolution</span>
|
||||
</td>
|
||||
<td>
|
||||
<input required type="number" id="GPIO_IO12_value3" min="1" max="20"
|
||||
<input required type="number" id="GPIO_IO47_value3" min="1" max="20"
|
||||
oninput="(!validity.rangeUnderflow||(value=1)) && (!validity.rangeOverflow||(value=20)) &&
|
||||
(!validity.stepMismatch||(value=parseInt(this.value)));"><span class="GPIO_IO12 GPIO_item">Bits</span>
|
||||
(!validity.stepMismatch||(value=parseInt(this.value)));"><span class="GPIO_IO47 GPIO_item">Bits</span>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
<tr class="GPIO_IO12 GPIO_item expert">
|
||||
<tr class="GPIO_IO47 GPIO_item expert">
|
||||
<td class="indent2">
|
||||
<span class="GPIO_IO12 GPIO_item">GPIO12 Enable MQTT</span>
|
||||
<span class="GPIO_IO47 GPIO_item">GPIO47 Enable MQTT</span>
|
||||
</td>
|
||||
<td><input type="checkbox" id="GPIO_IO12_value4"></td>
|
||||
<td><input type="checkbox" id="GPIO_IO47_value4"></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
<tr class="GPIO_IO12 GPIO_item expert">
|
||||
<tr class="GPIO_IO47 GPIO_item expert">
|
||||
<td class="indent2">
|
||||
<span class="GPIO_IO12 GPIO_item">GPIO12 Enable REST API</span>
|
||||
<span class="GPIO_IO47 GPIO_item">GPIO47 Enable REST API</span>
|
||||
</td>
|
||||
<td><input type="checkbox" id="GPIO_IO12_value5"></td>
|
||||
<td><input type="checkbox" id="GPIO_IO47_value5"></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
<tr class="GPIO_IO12 GPIO_item expert">
|
||||
<tr class="GPIO_IO47 GPIO_item expert">
|
||||
<td class="indent2">
|
||||
<span class="GPIO_IO12 GPIO_item">GPIO12 Name</span>
|
||||
<span class="GPIO_IO47 GPIO_item">GPIO47 Name</span>
|
||||
</td>
|
||||
<td><input type="text" id="GPIO_IO12_value6"></td>
|
||||
<td><input type="text" id="GPIO_IO47_value6"></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
<tr class="GPIO_item" unused_id="wstypeex3">
|
||||
<td class="indent1">
|
||||
<span class="GPIO_IO12 GPIO_item" id="GPIO_LEDType_text">LED Type (NeoPixel)</span>
|
||||
<span class="GPIO_IO47 GPIO_item" id="GPIO_LEDType_text">LED Type (NeoPixel)</span>
|
||||
</td>
|
||||
<td class="GPIO_item">
|
||||
<select class="GPIO_item" id="GPIO_LEDType_value1">
|
||||
@@ -1848,7 +1848,7 @@
|
||||
<span class="GPIO_item" id="GPIO_LEDColor_text">LED Color</span>
|
||||
</td>
|
||||
<td>
|
||||
R <input required type="number" class="GPIO_IO12 GPIO_item" id="GPIO_LEDColor_value1"
|
||||
R <input required type="number" class="GPIO_IO47 GPIO_item" id="GPIO_LEDColor_value1"
|
||||
min="0" max="255" step="1" oninput="(!validity.rangeUnderflow||(value=0)) && (!validity.rangeOverflow||(value=255)) &&
|
||||
(!validity.stepMismatch||(value=parseInt(this.value)));">
|
||||
</td>
|
||||
@@ -1858,7 +1858,7 @@
|
||||
<tr class="GPIO_item" unused_id="LEDRGBex9">
|
||||
<td></td>
|
||||
<td>
|
||||
G <input required type="number" class="GPIO_IO12 GPIO_item" id="GPIO_LEDColor_value2"
|
||||
G <input required type="number" class="GPIO_IO47 GPIO_item" id="GPIO_LEDColor_value2"
|
||||
min="0" max="255" step="1" oninput="(!validity.rangeUnderflow||(value=0)) && (!validity.rangeOverflow||(value=255)) &&
|
||||
(!validity.stepMismatch||(value=parseInt(this.value)));">
|
||||
</td>
|
||||
@@ -1867,12 +1867,12 @@
|
||||
<tr class="GPIO_item" unused_id="LEDRGBex9">
|
||||
<td></td>
|
||||
<td>
|
||||
B <input required type="number" class="GPIO_IO12 GPIO_item" id="GPIO_LEDColor_value3"
|
||||
B <input required type="number" class="GPIO_IO47 GPIO_item" id="GPIO_LEDColor_value3"
|
||||
min="0" max="255" step="1" oninput="(!validity.rangeUnderflow||(value=0)) && (!validity.rangeOverflow||(value=255)) &&
|
||||
(!validity.stepMismatch||(value=parseInt(this.value)));">
|
||||
</td>
|
||||
</tr>
|
||||
<!------------- GPIO12 end ------------------>
|
||||
<!------------- GPIO47 end ------------------>
|
||||
|
||||
<!------------- GPIO13 begin ------------------>
|
||||
<tr class="GPIO_IO13 GPIO_item expert">
|
||||
@@ -2394,7 +2394,7 @@ function UpdateInput() {
|
||||
WriteParameter(param, category, "GPIO", "IO1", true);
|
||||
WriteParameter(param, category, "GPIO", "IO3", true);
|
||||
WriteParameter(param, category, "GPIO", "IO4", true);
|
||||
WriteParameter(param, category, "GPIO", "IO12", true);
|
||||
WriteParameter(param, category, "GPIO", "IO47", true);
|
||||
WriteParameter(param, category, "GPIO", "IO13", true);
|
||||
WriteParameter(param, category, "GPIO", "LEDType", false);
|
||||
WriteParameter(param, category, "GPIO", "LEDNumbers", false);
|
||||
@@ -2562,7 +2562,7 @@ function ReadParameterAll() {
|
||||
ReadParameter(param, "GPIO", "IO1", true);
|
||||
ReadParameter(param, "GPIO", "IO3", true);
|
||||
ReadParameter(param, "GPIO", "IO4", true);
|
||||
ReadParameter(param, "GPIO", "IO12", true);
|
||||
ReadParameter(param, "GPIO", "IO47", true);
|
||||
ReadParameter(param, "GPIO", "IO13", true);
|
||||
ReadParameter(param, "GPIO", "LEDType", false);
|
||||
ReadParameter(param, "GPIO", "LEDNumbers", false);
|
||||
@@ -2641,7 +2641,7 @@ function UpdateExpertModus() {
|
||||
}
|
||||
});
|
||||
|
||||
Array.from(document.querySelector("#GPIO_IO12_value1").options).forEach(function(option_element) {
|
||||
Array.from(document.querySelector("#GPIO_IO47_value1").options).forEach(function(option_element) {
|
||||
if (option_element.value != "external-flash-ws281x") {
|
||||
option_element.hidden = _hidden;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user