Skip to content
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Clean up help text Jul 11, 2019
capablerobot_usbhub Change register method names to be more descriptive Jul 17, 2019
examples Remove OLED example. Moving to seperate repo Jun 13, 2019
formats Change label of register address Jun 11, 2019
.gitignore Initial commit May 14, 2019
50-capablerobot-usbhub.rules
CODE_OF_CONDUCT.md Adding code of conduct Jun 5, 2019
LICENSE Initial commit May 14, 2019
README.md Update readme Jun 11, 2019
micropython.py Adding micropython method needed for some libraries Jun 5, 2019
requirements.txt Update dependencies Jun 11, 2019

README.md

Capable Robot CircuitPython USBHub Bridge

This library has two functions:

  • It provides access to internal state of the Capable Robot USB Hub, allowing you to monitor and control the Hub from an upstream computer.
  • It creates a transparent CircuitPython Bridge, allowing unmodified CircuitPython code to run on the host computer and interact with I2C devices attached to the USB Hub.

Installing Dependencies

pip3 install pyusb construct pyyaml click

On Linux, the the udev permission system will likely prevent normal users from accessing the USB Hub's endpoint which allows for Hub Monitoring, Control, and I2C Briding. To resolve this, install the provided udev rule:

sudo cp 50-capablerobot-usbhub.rules /etc/udev/rules.d/
sudo udevadm control --reload
sudo udevadm trigger

Then unplug and replug your USB Hub. Note, the provided udev rule allows all system users to access the Hub, but can be changed to a specific user or user group.

Working Functionality

  • Reading USB Hub registers over USB and decoding of register data.
  • Writing USB Hub registers over USB.
  • Reading & writing I2C data thru the Hub.
  • CircuitPython I2C Bridge.

Not Working / Not Implemented Yet

  • CircuitPython SPI Bridge.
  • CircuitPython GPIO Bridge.

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

You can’t perform that action at this time.