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

use circuitpython on generic linux platform with FT232H #60

Closed
oshadmon opened this issue Nov 27, 2018 · 7 comments
Closed

use circuitpython on generic linux platform with FT232H #60

oshadmon opened this issue Nov 27, 2018 · 7 comments

Comments

@oshadmon
Copy link

Machine Specs: Ubuntu 18.04 Desktop on an i7 based workstation.

Background: I'm using an Adafruit HTU21D-F Humidity/Temp sensor connected to a USB pluggable FT232H breakout board (C232HM-DDHSL‌-0 USB2.0/I2C cable). Adafruit GPIO has support for FT232H (https://github.com/adafruit/Adafruit_Python_GPIO/blob/master/Adafruit_GPIO/FT232H.py)

Question: I want to use circuitpython, in particular, the HTU21D-F code (https://github.com/adafruit/Adafruit_CircuitPython_HTU21D/blob/master/adafruit_htu21d.py) but I don't have a supported board as I'm using a linux desktop computer. What are my options? Can I use circuitpython? Is there any documentation regarding this type of use?

I realize this may be the wrong place to post this, if so where should I post it? Who should I consult? (Thanks!)

@tannewt
Copy link
Member

tannewt commented Nov 27, 2018

Here or the forum is fine. @ladyada is probably the person who knows best.

@oshadmon
Copy link
Author

Thank you. I have also posted the question on the forum

@ladyada
Copy link
Member

ladyada commented Nov 27, 2018

hiya this is something we do want to do soon, it requires adding to Adafruit-Blinka and its not easy :( you can subscribe to https://github.com/adafruit/Adafruit_Blinka to get notified when we'll add it. if you have any links to good FT232H examples for python3, that would be rad. or, if you can contribute code, that would be really great :)

@tannewt tannewt transferred this issue from adafruit/circuitpython Dec 3, 2018
@caternuson
Copy link
Contributor

So would the idea here be to provide something that could be a drop in replacement for busio? Ex:

import adafruit_ft232h
i2c = adafruit_ft232h.I2C()
sensor = some_sensor.Sensor(i2c)

or even

import adafruit_ft232h as busio
# proceed as usual

@ladyada
Copy link
Member

ladyada commented Aug 21, 2019

yes, OR we could set the environmental var to 'force' FT232H usage (which i did add) and then code is identical

@ladyada
Copy link
Member

ladyada commented Sep 21, 2019

added!

@ladyada
Copy link
Member

ladyada commented Sep 21, 2019

guide coming soon...

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