Skip to content

Connecting a Digital Sensor

MaxFishman edited this page Apr 10, 2025 · 3 revisions

Connecting a Digital Sensor

For basic digital input devices like buttons that don’t require pullup or pulldown resistors:

  1. Connect one lead of the button to any - (ground) via.
  2. Connect the other lead to the desired digital input via, and make sure to reflect this choice in your code.
  3. To connect an LED to this circuit, simply place an LED in one of the allocated LED slots, and place your resistor in a resistor slot in the same row.

alt_text

The code for this circuit can be found in the Seraph Github repository under the name Seraph_ButtonDemo

Clone this wiki locally