Skip to content

opening for output may be causing a change in GPIO state (to 0) occasionly  #32

@markv1

Description

@markv1

when running the following code repeatedly (setting the GPIO pin to 1 -relay off multiple times), occationally i hear the relay click and get a momentary contact on. I also see a GPIO-Admin: could not flush data to /sys/class/gpio/export: device or resource busy. I am using a RPb+ and sainsmart 8ch relay board. The momentary contact on when the relay is already off is the most problematic.

gpio.open(pin,'output', function(err) {
gpio.write(pin,highLow,function() {
gpio.close(pin);
});
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions