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

Added examples, loosely based on some existing johnny-five examples #26

Merged
merged 5 commits into from
Jun 3, 2014

Conversation

Resseguie
Copy link
Collaborator

Adds some examples as requested by #9

These have been tested successfully with the latest versions of J5/spark-io/voodoospark (following the PWM commits).

@Resseguie
Copy link
Collaborator Author

I'll update with some jshint cleanup as required by Travis CI

@rwaldron
Copy link
Owner

rwaldron commented Jun 3, 2014

I really wish we had a spark core component for fritzing...

@rwaldron
Copy link
Owner

rwaldron commented Jun 3, 2014

Wooo! Check this out: https://github.com/technobly/SparkCore-Fritzing

Let's get your new examples landed and then we'll split up the work into issues for each example.

token: process.env.SPARK_TOKEN,
deviceId: process.env.SPARK_DEVICE_ID
}),
port: "/dev/cu.usbmodem1421"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be ignored since the port argument would've been used by Serialport—this line can be removed

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, right. I just copied this over from J5, but probably not relevant to Spark at all. Just delete this example you think?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, why not

Based on suggestions by @rwaldron
@Resseguie
Copy link
Collaborator Author

FYI I decided against adding Johnny-Five as a devDependency in the package.json file because technically it's only needed for specific examples, not for developing the library itself. And where do you stop? Do I add temporal? keypress? etc.

I figured users of the examples will just have to npm install what they need for that particular one. Is that the right way to go?

@rwaldron
Copy link
Owner

rwaldron commented Jun 3, 2014

@Resseguie I would put these:

  • johnny-five
  • keypress
  • temporal

In regular dependencies

@rwaldron
Copy link
Owner

rwaldron commented Jun 3, 2014

So, I think I jumped the gun and landed this too soon—looks like you're still making changes. I'm really sorry, but let's close out this branch and PR and any new examples can branch from master

@rwaldron
Copy link
Owner

rwaldron commented Jun 3, 2014

Next time I'll wait until you give me the green light to land stuff

@Resseguie
Copy link
Collaborator Author

But are they really dependencies? You don't have to have any of them to use spark-io by itself.

@rwaldron
Copy link
Owner

rwaldron commented Jun 3, 2014

I will make sure I get the last commit here

@rwaldron
Copy link
Owner

rwaldron commented Jun 3, 2014

But are they really dependencies? You don't have to have any of them to use spark-io by itself.

yeah good point... I say we omit them and if anyone tries to run the program it will fail fast and they will figure it out

@Resseguie
Copy link
Collaborator Author

I think the only other one I added was the servo docs and diagram. You going to cherry pick it or you want me to make new PR?

@rwaldron rwaldron merged commit 504b615 into rwaldron:master Jun 3, 2014
@rwaldron
Copy link
Owner

rwaldron commented Jun 3, 2014

@Resseguie I got it: 504b615

Super sorry about that

@Resseguie
Copy link
Collaborator Author

No problem. I'm going to tweak that LED diagram and do a PR on Johnny-Five too since it's missing that one as well.

@rwaldron
Copy link
Owner

rwaldron commented Jun 3, 2014

@Resseguie I just made you a repo collaborator, so for now just make PRs and I'll review them, but I'll leave you to land them when you're ready.

@Resseguie
Copy link
Collaborator Author

@rwaldron awesome, thanks!

@Resseguie Resseguie deleted the j5-examples branch June 3, 2014 16:20
@rwaldron
Copy link
Owner

rwaldron commented Jun 3, 2014

@Resseguie no, thank you! Your work on this has been awesome :)

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

Successfully merging this pull request may close these issues.

2 participants