REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches
io.h
Go to the documentation of this file.
1// Copyright (c) 2024 anabrid GmbH
2// Contact: https://www.anabrid.com/licensing/
3//
4// SPDX-License-Identifier: MIT OR GPL-2.0-or-later
5
6#pragma once
7
8namespace io {
9
10constexpr uint8_t PIN_BUTTON = 29;
11constexpr uint8_t PIN_DIO_6 = 31;
12// constexpr uint8_t PIN_DIO_7 = 21; // CARE: Actually in use as EXTHALT on new flexio:3 mode
13constexpr uint8_t PIN_DIO_11 = 0;
14constexpr uint8_t PIN_DIO_12 = 38;
15constexpr uint8_t PIN_DIO_13 = 13; // CARE: Is LED_BUILTIN
16constexpr uint8_t PIN_DIO_23 = 1;
17constexpr uint8_t PIN_DIO_28 = 33;
18constexpr uint8_t PIN_RESERVED_7 = 30;
19
20void init();
21
22bool get_button();
23
25
26} // namespace io
Definition io.h:8
constexpr uint8_t PIN_BUTTON
Definition io.h:10
constexpr uint8_t PIN_DIO_12
Definition io.h:14
void init()
Definition io.cpp:12
constexpr uint8_t PIN_DIO_13
Definition io.h:15
constexpr uint8_t PIN_DIO_28
Definition io.h:17
bool get_button()
Definition io.cpp:18
constexpr uint8_t PIN_DIO_23
Definition io.h:16
void block_until_button_press_and_release()
Definition io.cpp:21
constexpr uint8_t PIN_RESERVED_7
Definition io.h:18
constexpr uint8_t PIN_DIO_6
Definition io.h:11
constexpr uint8_t PIN_DIO_11
Definition io.h:13