Git Product home page Git Product logo

Comments (15)

fivdi avatar fivdi commented on July 22, 2024 1

The direction argument passed to the Gpio constructor is usually 'out' for an output Gpio. Instead of 'out', 'high' or 'low' can also be specified and will configure the GPIO as an output with an initial level of high or low respectively.

Can 'high' or 'low' be specified to achieve the desired behavior?

from onoff.

fivdi avatar fivdi commented on July 22, 2024

@docmattman were you able to make any progress here?

from onoff.

danb5 avatar danb5 commented on July 22, 2024

This bug makes this unusable.

from onoff.

fivdi avatar fivdi commented on July 22, 2024

So calling the Gpio constructor with a direction argument of 'high' or 'low' instead of 'out' didn't help?

from onoff.

danb5 avatar danb5 commented on July 22, 2024

I must admit to being a novice. I am trying to use this with a home bridge plugin called homebridge-gpio-garagedoor. It uses onoff as a dependancy for goop control. Not sure how I change how onoff sets the pin.

from onoff.

danb5 avatar danb5 commented on July 22, 2024

Forgot. I am using a Raspberry Pi zero running Jesse.

from onoff.

danb5 avatar danb5 commented on July 22, 2024

Where do I call the grip constructor

from onoff.

fivdi avatar fivdi commented on July 22, 2024

It looks link it's being called indirectly from here: https://github.com/KraigM/homebridge-gpio-garagedoor/blob/master/lib/SwitchPort.ts#L20

That's TypeScript code so the TypeScript transpiler will need to be called to generate the JavaScript code.

from onoff.

danb5 avatar danb5 commented on July 22, 2024

Hmm, I will need to figure out what you mean but I see where you are pointing in the code. I can't thank you enough for the help.

from onoff.

fivdi avatar fivdi commented on July 22, 2024

@docmattman @danb5 were you able to make any progress here?

from onoff.

danb5 avatar danb5 commented on July 22, 2024

Sorry, yes you were correct in the issue.

Dan

On Nov 14, 2016, at 1:47 PM, Brian Cooke [email protected] wrote:

@docmattman @danb5 were you able to make any progress here?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

from onoff.

fivdi avatar fivdi commented on July 22, 2024

That's good news. Thanks for the feedback.

from onoff.

docmattman avatar docmattman commented on July 22, 2024

Sorry for the late response. Setting the direction to high or low did work. At the time, I wasn't aware those were options. I only saw out. So, yes, problem solved. Thanks!

from onoff.

fivdi avatar fivdi commented on July 22, 2024

I'm glad it worked and thanks for taking the time to provide the feedback.

from onoff.

Cirrostratuss avatar Cirrostratuss commented on July 22, 2024

@docmattman where did you change the direction?

from onoff.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.