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

Reading raw binary digital values #17

Closed
cloud8421 opened this issue Jun 23, 2016 · 1 comment
Closed

Reading raw binary digital values #17

cloud8421 opened this issue Jun 23, 2016 · 1 comment

Comments

@cloud8421
Copy link

Hello,

I'll start by saying that my hardware experience is very limited, so I may say something wrong. Please let me know if that's the case.

I'm trying to read data from this temperature/etc. digital sensor from a Raspberry PI 3.

It's a nerves ~> 0.3.0 application, using ~> 0.5.3 for elixir_ale.

As far as I can see at this line in the c source code the value from the sensor is "discarded" to return either 1 or 0. Is that correct?

I was thinking to try to extend that myself and send a PR, but I wanted to check first if it's a good idea or not. Thanks!

@fhunleth
Copy link
Owner

fhunleth commented Jun 23, 2016

Hi - GPIO's can only be low (0) or high (1). There are no other values. I didn't look at the datasheet for the sensor, but from the webpage it looks like it has its own special form of morse code for getting temperature values from it.

I see that you found the slack channel for help. Hopefully others will be able to assist. I'll be there this evening.

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

2 participants