Comments (5)
I manually copied the lib directory to the node_modules/motor-hat directory, together with the test directory and now npm run build completes successfully.
I tried running your the basic usage script and it showed me this:
/home/pi/node-projects/motor/node_modules/motor-hat/node_modules/i2c-bus/i2c-bus.js:423
i2c.writeByteSync(peripheralSync(this, addr), cmd, byte);
^
Error: , Remote I/O error
at Bus.writeByteSync (/home/pi/node-projects/motor/node_modules/motor-hat/node_modules/i2c-bus/i2c-bus.js:423:9)
at setAllPWMSync (/home/pi/node-projects/motor/node_modules/motor-hat/dist/pwm.js:203:9)
at Object.init (/home/pi/node-projects/motor/node_modules/motor-hat/dist/pwm.js:244:7)
at Object.init (/home/pi/node-projects/motor/node_modules/motor-hat/dist/index.js:219:11)
at Object.<anonymous> (/home/pi/node-projects/motor/test.js:1:75)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12) {
errno: 121,
code: '',
syscall: 'writeByteSync'
}
That might be ok, since I do not actually have a motor hat attached to my pi. As soon as I get this going, I will try and create a node-red implementation using your module.
from motor-hat.
from motor-hat.
awesome, thanks!
from motor-hat.
hi @nrbrt , just thought I'd give a quick update.
Sorry I haven't been able to cut the new release yet, but I'm working on it. Should be out by this weekend for sure.
Cheers!
from motor-hat.
@nrbrt , I've just published v2.0.10 of motor-hat, which should solve your initial problem. If you install directly from npm now it should work for you (as long as you have the motor hat connected).
I'll close this issue for now, feel free to reopen if you're still having problems with this.
Cheers
Pepe
from motor-hat.
Related Issues (20)
- An in-range update of eslint is breaking the build 🚨 HOT 1
- Issue: We dont recognize your revision
- An in-range update of semantic-release is breaking the build 🚨 HOT 1
- Installation failing on Raspberry Pi 4, node 13.9.0, npm 6.13.7 HOT 19
- Id not recognized HOT 7
- Revision ID not recognized: new issue for Raspberry Pi 4 HOT 1
- An in-range update of semantic-release is breaking the build 🚨 HOT 4
- An in-range update of sinon is breaking the build 🚨 HOT 4
- An in-range update of semantic-release is breaking the build 🚨 HOT 2
- An in-range update of semantic-release is breaking the build 🚨 HOT 4
- An in-range update of semantic-release is breaking the build 🚨 HOT 2
- An in-range update of semantic-release is breaking the build 🚨 HOT 2
- An in-range update of isparta is breaking the build 🚨 HOT 2
- An in-range update of semantic-release is breaking the build 🚨 HOT 10
- The automated release is failing 🚨 HOT 2
- An in-range update of semantic-release is breaking the build 🚨 HOT 2
- An in-range update of semantic-release is breaking the build 🚨 HOT 2
- busnum is not passed to pwmlib HOT 3
- An in-range update of semantic-release is breaking the build 🚨 HOT 12
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 motor-hat.