MBSP

Microcontroller Board Support Package

User Tools

Site Tools


digital_input_group

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
digital_input_group [ 17.08.2025 05:35] – created larsdigital_input_group [ 22.08.2025 23:03] (current) – [API] lars
Line 5: Line 5:
 Each signal is a sub group with the signal name as the group name. Each signal is a sub group with the signal name as the group name.
  
 +<code>
 +    "digital_input": {
 +        "user_button": {
 +            "pad": "PA3"
 +        }
 +    }
 +</code>
  
 ==== pad ==== ==== pad ====
Line 12: Line 19:
 **type**: string **type**: string
  
 +**default**: no default possible
 +
 +==== invert ====
 +
 +If this setting is set to "on" then a Low (Gnd) signal will be read as 1. A High (Vcc) level will be read as 0.
 +
 +If this setting is set to "off" (=default) then a High (Vcc) signal will be read as 1. A Low (Gnd) level will be read as 0.
 +
 +**type**: string
 +
 +**default**: "off"
 +
 +===== API =====
 +
 +<code>bool name_is_active(void)</code>
digital_input_group.1755408910.txt.gz · Last modified: by lars