Skip to content

Commit

Permalink
init ig
Browse files Browse the repository at this point in the history
  • Loading branch information
echavemann committed Nov 16, 2024
1 parent ff10f0b commit 001d91c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions include/drivers/capsense_driver.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# pragma once

#include "drivers/driver_enums.hpp"
#include "drivers/gpio_pin.hpp"
#include "microbit_v2.h"
#include "util.hpp"

namespace edge::drivers {

class CapsenseController {
GPIOPin touch_logo{TOUCH_LOGO, GPIOConfiguration::IN_NORES};
CapsenseController();
~CapsenseController() = default;

public:
CapsenseController(const CapsenseController&) = delete;
CapsenseController(CapsenseController&&) = delete;
CapsenseController& operator=(const CapsenseController&) = delete;
CapsenseController& operator=(CapsenseController&&) = delete;

static CapsenseController& get();

void subscribe_captouch_press(ProcessCallbackPtr callback, uint8_t process_id);

};


} // namespace edge::drivers
Empty file added src/drivers/captouch_driver.cpp
Empty file.

0 comments on commit 001d91c

Please sign in to comment.