Skip to content

Arduino interface library for the TI TCA6408 8-bit I2C I/O Expander.

License

Notifications You must be signed in to change notification settings

janelia-arduino/TCA6408

Repository files navigation

TCA6408

Library Information

Name
TCA6408
Version
0.1.0
License
BSD
URL
https://github.com/janelia-arduino/TCA6408
Author
Peter Polidoro
Email
peter@polidoro.io

Description

Arduino interface library for the TI TCA6408 8-bit I2C I/O Expander.

Host Computer Setup

Download this repository

https://github.com/janelia-arduino/TCA6408.git

git clone https://github.com/janelia-arduino/TCA6408.git

PlatformIO

Install PlatformIO Core

https://docs.platformio.org/en/latest/core/installation/index.html

python3 -m venv .venv
source .venv/bin/activate
pip install platformio
pio --version

99-platformio-udev.rules

Linux users have to install udev rules for PlatformIO supported boards/devices.

Download udev rules file to /etc/udev/rules.d

curl -fsSL https://raw.githubusercontent.com/platformio/platformio-core/develop/platformio/assets/system/99-platformio-udev.rules | sudo tee /etc/udev/rules.d/99-platformio-udev.rules

Restart udev management tool

sudo service udev restart

Add user to groups

sudo usermod -a -G dialout $USER && sudo usermod -a -G plugdev $USER

Remove modemmanager

sudo apt-get purge --auto-remove modemmanager

After setting up rules and groups

You will need to log out and log back in again (or reboot) for the user group changes to take effect.

After this file is installed, physically unplug and reconnect your board.

Compile the firmware

Gnu/Linux

make teensy-firmware
make mega-firmware
make uno-firmware

Other

pio run -e teensy40
pio run -e mega
pio run -e uno

Upload the firmware

Gnu/Linux

make teensy-upload
make mega-upload
make uno-upload

Other

pio run -e teensy40 -t upload
pio run -e mega -t upload
pio run -e uno -t upload

Serial Terminal Monitor

Gnu/Linux

make monitor

Other

pio device monitor

About

Arduino interface library for the TI TCA6408 8-bit I2C I/O Expander.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published