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

Multiplexor I2C hardware #77

Open
novvere opened this issue Apr 29, 2020 · 2 comments
Open

Multiplexor I2C hardware #77

novvere opened this issue Apr 29, 2020 · 2 comments
Assignees
Labels
feature New feature or request scopes/firmware Firmware related issues scopes/hardware Hardware related issues

Comments

@novvere
Copy link
Contributor

novvere commented Apr 29, 2020

Añadir un multiplexos !2C hardware, por el momento el TCA9548A

@novvere
Copy link
Contributor Author

novvere commented Apr 29, 2020

Hay que inicializar el bus I2C (MCU-TCA) y seleccionar el bus de sensores que se va a usar antes de crear los sensores que los utilicen (antes de crear los BME280).
Una vez inicializado I2C y seleccionado el bus 0 se pueden crear los sensores conectados a este bus.
Para instanciar las clases de los sensores conectados a otro bus primero hay que selecciona el bus que corresponda con I2CbusSelect(n_bus) numerando los buses del 0 al 7.

@novvere
Copy link
Contributor Author

novvere commented Jun 1, 2020

Cambiar el parámetro que especifica el número de bus de unsigned a signed, de esta forma, usando un valor por defecto = -1 significa que no hay multiplexor y no hay que hacer cambio de bus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request scopes/firmware Firmware related issues scopes/hardware Hardware related issues
Projects
None yet
Development

No branches or pull requests

1 participant