Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

I2C Analog ADS1219 Addon Support #120

Merged
merged 3 commits into from
Oct 8, 2022

Conversation

arntsonl
Copy link

@arntsonl arntsonl commented Oct 8, 2022

This code enables the I2C Analog ADS1219 add-on board support created by Fortinbra. The board uses i2c communication and talks to A0/A1/A2/A3 analog pins, which I currently map to left-stick X/Y, and right-stick X/Y respectively.

Future enhancements will include selection of A[x] pin maps to Analog controls and more refined options for the ADS1219 chip.

This add-on currently supports the following:
 A0 = Left-Stick X-Axis
 A1 = Left-Stick Y-Axis
 A2 = Right-Stick X-Axis
 A3 = Right-Stick Y-Axis

The VREF measurement assumes the internal VREF calculation is used, but we should probably change this once a proper VREF is hooked up or Vin voltage is limited to get more accurate readings.
@TheTrainGoes
Copy link

Tested and working well

@TheTrainGoes TheTrainGoes merged commit 0ca5186 into OpenStickFoundation:main Oct 8, 2022
@arntsonl arntsonl deleted the i2canalog_addon branch October 13, 2022 11:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants