Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request : ads1115, mcp4725, mcp23017 as output .... feature request #65

Open
fdepalo opened this issue Jan 20, 2022 · 1 comment

Comments

@fdepalo
Copy link

fdepalo commented Jan 20, 2022

we can provide testing for these i2c components.

@anklimov
Copy link
Owner

Looks as reasonable
Complete drivers backlog for now:

UART: sc16is750 (primary for air conditioner out)
DAC: mcp4725/4728 (for 0-10V outs)
ADC: ads1115
GPO: mcp23017
I2C MUX: TCA9548A
PWM OUT: PCA9685
BMP180/BME280/BME680

I'm not sure when I will have enough time do develop all items above by myself, so pls consider info below if you have some skills to add every new driver to LightHub :

Note:

Adding new types of items (outputs) - quite easy task.
Refer modules/out_relay.cpp (.h) as simplest template for output
or modules/out_pid.cpp (.h) as little bit more complicated example for output

after implementing new item type class, inherited from "abstractOut" (most driver functionality lays in virtual methods Setup, Poll, Ctrl), just need to do several simple steps:

  • include module (see line 43-53 items.cpp) and
  • add new class initialisation to items.cpp, similar as line 184+
  • and allocate new Channel type# at lines 61+ of items.h

===
same for inputs (I will extend tutorial if smbdy will be ready to develop module):

Example:
modules/in_ccs811_hdc1080.cpp (.h)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants