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

Support for common IoT libraries #70

Closed
shaggygi opened this issue Dec 4, 2018 · 3 comments
Closed

Support for common IoT libraries #70

shaggygi opened this issue Dec 4, 2018 · 3 comments
Labels
area-device-bindings Device Bindings for audio, sensor, motor, and display hardware that can used with System.Device.Gpio Design Discussion Ongoing discussion about design without consensus

Comments

@shaggygi
Copy link
Contributor

shaggygi commented Dec 4, 2018

This is not for a specific feature, but more to gain synergy on possibly getting other core APIs created or central location for related "How-Tos" that would help while coding APIs/apps more specific to IoT/hardware.

For example, Binary Coded Decimal (BCD) conversions are common in many devices for displays and dates. While this conversion is simple, it might seem redundant to include helper methods in each binding API where needed. A new specific API for this might be overkill, so maybe it would be better to have topic created in a markdown file as a quick reference.

It would be nice to offer support down to the bit level. Here is a previous thread on CoreFxLab repo that appears to be a good start for this.

Thoughts? /cc @terrajobst @stephentoub

@joshfree joshfree added the Design Discussion Ongoing discussion about design without consensus label Dec 5, 2018
@joperezr
Copy link
Member

For this one, one thing I was planning to do is to get common static methods like the ones you suggest, and have that code live on a Common folder under src/devices. Once we have it there, then different device bindings can just add the specific .cs file they need to the Compile item if they require that functionality/method in their binding. In the end, we will package every bidning (and the common code as well) into one single library Iot.Device.Bindings.dll, so this would be a good way to avoid redundancy.

@joperezr joperezr added the area-device-bindings Device Bindings for audio, sensor, motor, and display hardware that can used with System.Device.Gpio label Feb 11, 2019
@shaggygi
Copy link
Contributor Author

@joperezr this makes sense and to be clear these were created at different times with different things in mind (although they now seem to overlap). APIs like BCD seem to fit more with the scenario of the graphics API in #178.

The bit manipulation API could also be useful outside IoT APIs, but still fits here as well. You can close this or #178 if you think only one is needed for the topic.

@joperezr
Copy link
Member

I'll close this one because I feel is the more general question of where to put common code, which we now have an answer for. I'll keep #178 open to track the graphics library progress.

joperezr pushed a commit to joperezr/iot that referenced this issue Feb 19, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Oct 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-device-bindings Device Bindings for audio, sensor, motor, and display hardware that can used with System.Device.Gpio Design Discussion Ongoing discussion about design without consensus
Projects
None yet
Development

No branches or pull requests

3 participants