-
Notifications
You must be signed in to change notification settings - Fork 31
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
new five.Button ( TypeError: pin.replace is not a function ) #63
Comments
There is no mistake in your code, this is just a bug that appears to be the result of some newer changes to Johnny-Five. I'll take a look at it this evening. |
new version of Johnny-Five will push out later this evening. |
Yeah that works a treat, thanks heaps! |
All set—fix is released! |
BOOM! 💣 |
👏 |
Hi-- I am also running into the same error. I am pretty to new to this so any guidance is greatly appreciated.
Here's the script:
Here's the error:
Does it have something to do with the mapping of the shield? Thanks! |
Hi folks,
I’ve come across an error when adding a
new five.Button()
to spark-io board.I’ve looked through the examples in
/eg
, but there doesn’t seem to be one using a button,so forgive me if Im missing something about buttons and spark-io - I’m kind of new to this.
Here’s the script
Here’s the error:
So here are the
opts
whenjohnny-five
calls it’s button initialisation:https://github.com/rwaldron/johnny-five/blob/master/lib/button.js#L187
Here are the opts when the button is initialised:
https://github.com/rwaldron/johnny-five/blob/master/lib/button.js#L21
… and the
spark-io
throws an error here:https://github.com/rwaldron/spark-io/blob/master/lib/spark.js#L325
The text was updated successfully, but these errors were encountered: