Skip to content

Node.js Exception #174

Description

@wqy24
var rpio = require("rpio");

rpio.init({mapping: "physical"});
rpio.open(8, rpio.INPUT, rpio.LOW);
rpio.open(12, rpio.OUTPUT, rpio.LOW);

while (true) {
  if (rpio.read(8)) {
    rpio.write(12, rpio.HIGH);
  } else {
    rpio.write(12, rpio.LOW);
  }
}

This could not work on:

  • RPi 2 Model B Rev1.2
  • Node.js 18.15.0

Message: Segmentation fault

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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