analogsensors pulse output #2624 and frequncy input #2631

This commit is contained in:
MichaelDvP
2025-09-26 08:47:31 +02:00
parent b1d6ab3c96
commit 4cfcba18ee
9 changed files with 159 additions and 26 deletions

View File

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