- For wiring, I'm using an example from SparkFun. See this diagram. I'm using pin D0 on the Spark.
- Copy paste musicFunction.cpp into the spark builder and flash it to your spark. (The code is from here). This sets up the sing function that will play notes you send it. After it flashes, you can test with
https://api.spark.io/v1/devices/{{deviceID}}/sing -d access_token={{accessToken}} -d "args=abba"
- Get the Spark device ID and access token.
- Make a twitter app and get the credentials for that (See ExampleBot for details). Be sure your bot and access token have read and write permissions, or favoriting won't work.
- Change the filenames of the config file to be sparkConfig.js and twitterConfig.js Edit sparkConfig.js and twitterConfig.js with the details of your twitter and spark device
- Run bot.js
gelicia/singSpark
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published