1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-13 22:28:14 +00:00

Merge pull request #20 from p1ngb4ck/mcp4461_dev

This commit is contained in:
Oliver Kleinecke 2025-02-20 13:46:38 +01:00 committed by GitHub
commit b6fa8f2419
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 10 deletions

View File

@ -38,7 +38,7 @@ enum class Mcp4461Addresses : uint8_t {
};
// @brief Class to enumerate allowed channels/wipers
enum class Mcp4461WiperIdx : uint8_t {
enum Mcp4461WiperIdx : uint8_t {
MCP4461_WIPER_0 = 0,
MCP4461_WIPER_1 = 1,
MCP4461_WIPER_2 = 2,

View File

@ -10,16 +10,16 @@ Mcp4461Wiper = mcp4461_ns.class_(
"Mcp4461Wiper", output.FloatOutput, cg.Parented.template(Mcp4461Component)
)
Mcp4461WiperIdx = mcp4461_ns.class_("Mcp4461WiperIdx")
Mcp4461WiperIdx = mcp4461_ns.enum("Mcp4461WiperIdx")
CHANNEL_OPTIONS = {
"A": MCP4461_WIPER_0,
"B": MCP4461_WIPER_1,
"C": MCP4461_WIPER_2,
"D": MCP4461_WIPER_3,
"E": MCP4461_WIPER_4,
"F": MCP4461_WIPER_5,
"G": MCP4461_WIPER_6,
"H": MCP4461_WIPER_7,
"A": Mcp4461WiperIdx.MCP4461_WIPER_0,
"B": Mcp4461WiperIdx.MCP4461_WIPER_1,
"C": Mcp4461WiperIdx.MCP4461_WIPER_2,
"D": Mcp4461WiperIdx.MCP4461_WIPER_3,
"E": Mcp4461WiperIdx.MCP4461_WIPER_4,
"F": Mcp4461WiperIdx.MCP4461_WIPER_5,
"G": Mcp4461WiperIdx.MCP4461_WIPER_6,
"H": Mcp4461WiperIdx.MCP4461_WIPER_7,
}
CONF_TERMINAL_A = "terminal_a"