Sygaldry
Loading...
Searching...
No Matches
sygsa-two_wire.hpp
1#pragma once
2/*
3Copyright 2023 Travis J. West, https://traviswest.ca, Input Devices and Music Interaction Laboratory
4(IDMIL), Centre for Interdisciplinary Research in Music Media and Technology
5(CIRMMT), McGill University, Montréal, Canada, and Univ. Lille, Inria, CNRS,
6Centrale Lille, UMR 9189 CRIStAL, F-59000 Lille, France
7
8SPDX-License-Identifier: MIT
9*/
10
11#include "Wire.h"
12#include "sygah-metadata.hpp"
13
14namespace sygaldry { namespace sygsa {
20
21template<int sda_pin, int scl_pin, uint32_t frequency = 100000>
22struct TwoWire
23: name_<"Two Wire Bus">
24, description_<"the Arduino I2C bus driver">
25, author_<"Travis J. West">
26, copyright_<"Copyright 2023 Travis J. West">
27, license_<"SPDX-License-Identifier: MIT">
28, version_<"0.0.0">
29{
30 void init()
31 {
32 Wire.begin(sda_pin, scl_pin, frequency);
33 }
34};
35
38} }
Document the author of an entity, e.g. a component or binding.
Definition sygah-metadata.hpp:39
Document the copyright statement of an entity, e.g. a component or binding.
Definition sygah-metadata.hpp:47
Document a textual description of an entity, e.g. an endpoint, component or binding.
Definition sygah-metadata.hpp:35
Document the copyright license of an entity, e.g. a component or binding.
Definition sygah-metadata.hpp:45
Document the name of an entity, e.g. an endpoint, component, or binding.
Definition sygah-metadata.hpp:33
Definition sygsa-two_wire.hpp:29
Document a textual description of the version number of an entity, e.g. a component or binding.
Definition sygah-metadata.hpp:51