Logic_library
Library for Logic board by RoboticsBrno.
Loading...
Searching...
No Matches
1_2.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <array>
4#include <driver/gpio.h>
5
6enum ButtonID {
7 Enter = 0,
17};
18
19namespace Platform {
20
21static constexpr bool AdjustableBuzzer = false;
22static constexpr bool LedPowerOnLevel = 1;
23
24namespace Pins {
25
26namespace Corners {
27static constexpr gpio_num_t LeftUp = GPIO_NUM_18;
28static constexpr gpio_num_t LeftDown = GPIO_NUM_4;
29static constexpr gpio_num_t RightUp = GPIO_NUM_19;
30static constexpr gpio_num_t RightDown = GPIO_NUM_25;
31} // namespace Buttons
32
33namespace Arrows {
34static constexpr gpio_num_t Up = GPIO_NUM_14;
35static constexpr gpio_num_t Down = GPIO_NUM_36;
36static constexpr gpio_num_t Left = GPIO_NUM_32;
37static constexpr gpio_num_t Right = GPIO_NUM_13;
38static constexpr gpio_num_t Enter = GPIO_NUM_35;
39} // namespace Arrows
40
41static constexpr gpio_num_t Display = GPIO_NUM_23;
42static constexpr gpio_num_t Status = GPIO_NUM_21;
43
44static constexpr gpio_num_t Buzzer = GPIO_NUM_27;
45
46static constexpr gpio_num_t LedPower = GPIO_NUM_26;
47
48static constexpr std::array<gpio_num_t, MaxID> Buttons = {
54
59};
60
61} // namespace Pins
62
63} // namespace Platform
ButtonID
Definition: 1_1.hpp:6
@ LeftUp
Definition: 1_2.hpp:12
@ LeftDown
Definition: 1_2.hpp:13
@ Up
Definition: 1_2.hpp:8
@ RightUp
Definition: 1_2.hpp:14
@ Enter
Definition: 1_2.hpp:7
@ MaxID
Definition: 1_2.hpp:16
@ Left
Definition: 1_2.hpp:10
@ Down
Definition: 1_2.hpp:9
@ Right
Definition: 1_2.hpp:11
@ RightDown
Definition: 1_2.hpp:15
Definition: Buttons.hpp:17
Definition: Buzzer.hpp:10
Definition: Display.hpp:28
static constexpr gpio_num_t Enter
Definition: 1_1.hpp:38
static constexpr gpio_num_t Left
Definition: 1_1.hpp:36
static constexpr gpio_num_t Up
Definition: 1_1.hpp:34
static constexpr gpio_num_t Down
Definition: 1_1.hpp:35
static constexpr gpio_num_t Right
Definition: 1_1.hpp:37
static constexpr gpio_num_t LeftDown
Definition: 1_1.hpp:28
static constexpr gpio_num_t LeftUp
Definition: 1_1.hpp:27
static constexpr gpio_num_t RightDown
Definition: 1_1.hpp:30
static constexpr gpio_num_t RightUp
Definition: 1_1.hpp:29
static constexpr gpio_num_t Status
Definition: 1_1.hpp:42
static constexpr gpio_num_t LedPower
Definition: 1_1.hpp:46
Definition: 1_1.hpp:19
static constexpr bool LedPowerOnLevel
Definition: 1_1.hpp:22
static constexpr bool AdjustableBuzzer
Definition: 1_1.hpp:21