show dac output on dashboard/sensors, fix dac pins for esp32s2

This commit is contained in:
MichaelDvP
2024-11-14 18:38:27 +01:00
parent f8c279edb0
commit e15f9dec5a
5 changed files with 17 additions and 6 deletions

View File

@@ -438,7 +438,8 @@ const Sensors = () => {
<Cell stiff>{a.g}</Cell>
<Cell>{a.n}</Cell>
<Cell stiff>{AnalogTypeNames[a.t]} </Cell>
{a.t === AnalogType.DIGITAL_OUT || a.t === AnalogType.DIGITAL_IN ? (
{(a.t === AnalogType.DIGITAL_OUT && a.g !== 25 && a.g !== 26) ||
a.t === AnalogType.DIGITAL_IN ? (
<Cell stiff>{a.v ? LL.ON() : LL.OFF()}</Cell>
) : (
<Cell stiff>{a.t ? formatValue(a.v, a.u) : ''}</Cell>