#pragma once #include #include "hardware.hpp" namespace i2c { template struct I2c { static void init() { Driver::init(); } template static bool start(bool read) { return Driver::template start(read); } static bool write(uint8_t data) { return Driver::write(data); } template static uint8_t read() { return Driver::template read(); } static void stop() { Driver::stop(); } }; } // namespace i2c