M5UnitUnified 0.5.5 git rev:bf711f3
Loading...
Searching...
No Matches
m5::unit::wiring::I2CPins Struct Reference

I2C backend selection + pin numbers (pure getter result, no side effects) More...

#include <m5_unit_unified_wiring.hpp>

Public Types

enum class  Backend : uint8_t { Wire , SoftwareI2C , ExI2C }
 

Public Attributes

int8_t sda
 
int8_t scl
 
enum m5::unit::wiring::I2CPins::Backend backend
 

Detailed Description

I2C backend selection + pin numbers (pure getter result, no side effects)

Member Enumeration Documentation

◆ Backend

enum class m5::unit::wiring::I2CPins::Backend : uint8_t
strong
Enumerator
Wire 

Arduino TwoWire on (sda, scl)

SoftwareI2C 

M5HAL SoftwareI2C on (sda, scl) — NessoN1 PortB.

ExI2C 

M5.Ex_I2C (pin numbers are for reference; M5Unified manages them)