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

How can I use this libary for Banana Pi M2 Berry? #183

Open
hexzhen3x7 opened this issue Nov 11, 2024 · 1 comment
Open

How can I use this libary for Banana Pi M2 Berry? #183

hexzhen3x7 opened this issue Nov 11, 2024 · 1 comment
Assignees

Comments

@hexzhen3x7
Copy link

hexzhen3x7 commented Nov 11, 2024

i use:

var rpio = require('../lib/rpio');
rpio.init({mock: 'raspi-3'});

rpio.init({mapping: 'gpio'});
rpio.open(17, rpio.OUTPUT, rpio.LOW); // Opens GPIO 17 as output and set to low
rpio.write(17, rpio.HIGH); // Setze GPIO 17 auf HIGH*/

console.log('GPIO 17 im Mock-Modus auf HIGH gesetzt');

Im using GPIO Pin 17 (Pin 11)
what I need to do?

@jperkin jperkin self-assigned this Nov 11, 2024
@jperkin
Copy link
Owner

jperkin commented Nov 11, 2024

Mock mode means the library won't actually do anything, it's just to run through internal parts for e.g. testing, but it will not interact with hardware at all. Try removing the rpio.init({mock: 'raspi-3'}); line.

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