OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
Loading...
Searching...
No Matches
inputHub::codedSwitch Namespace Reference

Support for binary-coded switches attached to any input hardware. More...

Functions

void add (InputNumber bit1, InputNumber bit2, InputNumber bit4, CodedSwitch8 spec)
 Add a binary-coded switch up to 8 positions.
 
void add (InputNumber bit1, InputNumber bit2, InputNumber bit4, InputNumber bit8, CodedSwitch16 spec)
 Add a binary-coded switch up to 16 positions.
 
void add (InputNumber bit1, InputNumber bit2, InputNumber bit4, InputNumber bit8, InputNumber bit16, CodedSwitch32 spec)
 Add a binary-coded switch up to 32 positions.
 

Detailed Description

Support for binary-coded switches attached to any input hardware.

Function Documentation

◆ add() [1/3]

void inputHub::codedSwitch::add ( InputNumber bit1,
InputNumber bit2,
InputNumber bit4,
CodedSwitch8 spec )

Add a binary-coded switch up to 8 positions.

Parameters
bit1Input number assigned to pin 1
bit2Input number assigned to pin 2
bit4Input number assigned to pin 4
specInput numbers assigned to each decoded position

◆ add() [2/3]

void inputHub::codedSwitch::add ( InputNumber bit1,
InputNumber bit2,
InputNumber bit4,
InputNumber bit8,
CodedSwitch16 spec )

Add a binary-coded switch up to 16 positions.

Parameters
bit1Input number assigned to pin 1
bit2Input number assigned to pin 2
bit4Input number assigned to pin 4
bit8Input number assigned to pin 8
specInput numbers assigned to each decoded position

◆ add() [3/3]

void inputHub::codedSwitch::add ( InputNumber bit1,
InputNumber bit2,
InputNumber bit4,
InputNumber bit8,
InputNumber bit16,
CodedSwitch32 spec )

Add a binary-coded switch up to 32 positions.

Parameters
bit1Input number assigned to pin 1
bit2Input number assigned to pin 2
bit4Input number assigned to pin 4
bit8Input number assigned to pin 8
bit16Input number assigned to pin 16
specInput numbers assigned to each decoded position