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

using PCF8574 as i/p #784

Open
fire-bot opened this issue Oct 22, 2024 · 3 comments
Open

using PCF8574 as i/p #784

fire-bot opened this issue Oct 22, 2024 · 3 comments

Comments

@fire-bot
Copy link

fire-bot commented Oct 22, 2024

Sent by Derek Jones (@mmrsderek). Created by fire.


I am extremely confused regarding how to use the above device with DCC++EX.

I am using the latest s/w and MEGA clone with WIFI.

I wish to have a PCF8574 on i2c 20,21and 22.

The Web Throttle reports that I2C 20,21 and 22 are recognising the device.

I am confused as to where to put the create statements.

Also if I try to edit the myHAL.cpp file it reports that I have altered the file and will not use the updated file.

Sorry to raise this but I have not found anything on "Discord" and I am new to using expanders

Derek Jones

@Ash-4
Copy link

Ash-4 commented Oct 22, 2024

Uncertain where you are having the issue.
Use a recent devel version and you can add the lines in myAutomation.h
You will not need to use myHal.cpp

// myAutomation.h
HAL_IGNORE_DEFAULTS
HAL(PCF8574, 200, 8, 0x20)    //    For The first PCF8574
HAL(PCF8574, 208, 8, 0x21) 
HAL(PCF8574, 216, 8, 0x22) 

The # accessories topic would be good to use for this question on the discord server, and generally a prompt answer.
https://dcc-ex.com/support/index.html#preferred-option-discord

@mmrsderek
Copy link

mmrsderek commented Oct 22, 2024 via email

@pmantoine
Copy link

We would thoroughly welcome your contribution of any edits and improvements to the documentation.

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

No branches or pull requests

4 participants