Comments (4)
Well, at the moment you can't, but removing these three lines and wrapping all the code in gpiowatcher.cc with #ifdef linux ... #endif to avoid compile errors might do it. I haven't got osx so I can't try it out. If you can try it out, verify that it works, and make a pull request I'll merge it in.
from onoff.
Taking the OS out of the package.json was enough to get it to install on
osx. I haven't tried using it, but I can require it.
Francis Gulotta
[email protected]
On Mon, Sep 16, 2013 at 4:02 PM, fivdi [email protected] wrote:
Well, at the moment you can't, but removing these three lineshttps://github.com/fivdi/onoff/blob/master/package.json#L21-L23and wrapping all the code in
gpiowatcher.cchttps://github.com/fivdi/onoff/blob/master/src/gpiowatcher.ccwith #ifdef linux ... #endif to avoid compile errors might do it. I
haven't got osx so I can't try it out. If you can try it out, verify that
it works, and make a pull request I'll merge it in.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/12#issuecomment-24539841
.
from onoff.
v0.1.7 with the modifications is now available on npm. Good luck with FirmataPi.
from onoff.
Thanks!
On Sep 17, 2013 3:04 PM, "fivdi" [email protected] wrote:
v0.1.7 with the modifications is now available on npmhttps://npmjs.org/package/onoff.
Good luck with FirmataPi https://github.com/firmata/firmata-pi.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/12#issuecomment-24614080
.
from onoff.
Related Issues (20)
- Problem using watch function with relay HOT 10
- Initialize GPIO without change pin status. HOT 6
- GPIO not working in a worker_thread - nodejs 14.15 HOT 2
- EACCES: permission denied, open '/sys/class/gpio/export' as superuser HOT 2
- Cannot run on non Rpi system HOT 1
- TypeError: writeSync is not a function HOT 4
- Raspberry Pi GPIO control in electron App HOT 8
- My computer does not have a /sys/class/gpio directory, but has /dev/gpiochip* HOT 1
- Interrupt misfire HOT 3
- Raspberry 4 - malloc(): corrupted top size HOT 3
- Error: EPERM: operation not permitted, write HOT 4
- Does not work with Compute Module 4. HOT 2
- Event is fired multiple times
- Superb library - I am running on Node v20 HOT 2
- Pi 5 Compatibility issues HOT 9
- Compatibility with ppp asked?
- RPI 5 gpio numbers HOT 2
- fs error HOT 8
- Newer version of epoll
- Button.watch spams endlessly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onoff.