summary refs log tree commit diff stats
path: root/firmware/include/inputs/button.h
blob: 908ea2226b3ba5052ae6693334fd8d862539a64e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <stdint.h>

namespace inputs {

class Button {
public:
    Button(uint8_t pin);

    void init();

    bool is_pressed();

private:
    uint8_t pin;
};

}