hybridgroup / artoo-spark Goto Github PK
View Code? Open in Web Editor NEWArtoo adaptor for the Spark core device
Home Page: http://artoo.io
License: Other
Artoo adaptor for the Spark core device
Home Page: http://artoo.io
License: Other
The LED driver doesn't seem to exist in the Artoo gem anymore. It's also not available in this gem either. Am I missing something?
Hi. I'm wondering if I could use the neopixel address accessable leds from Adafruit with the artoo-spark library. Adafruit provides their own library for their led strings, rings and matrices. So, would this be possible by maybe inserting the neopixel code into artoo's "work block"?
I just tried the sample code as follows:
require 'artoo'
connection :spark, :adaptor => :spark, :access_token => 'xxx'
device :led, :driver => :led, :pin => 'D0'
work do
every(1.second) do
led.toggle
end
end
I see the following when I run it:
$ ruby cylon-spark.rb
I, [2014-03-06T21:00:48.634944 #27816] INFO -- : Registering connection 'spark'...
I, [2014-03-06T21:00:48.635046 #27816] INFO -- : Registering device 'led'...
I, [2014-03-06T21:00:48.635089 #27816] INFO -- : Preparing work...
I, [2014-03-06T21:00:48.635782 #27816] INFO -- : Initializing connection spark...
I, [2014-03-06T21:00:48.639616 #27816] INFO -- : Initializing device led...
I, [2014-03-06T21:00:48.643199 #27816] INFO -- : Starting work...
I, [2014-03-06T21:00:48.643605 #27816] INFO -- : Connecting to 'spark' on port 'none'...
I, [2014-03-06T21:00:48.644218 #27816] INFO -- : Starting driver 'Artoo::Drivers::Led'...
It just hangs there. The device is connected to wifi and is currently running a previous program, but doesn't change to this behavior...
Is there something I should check to see why this is happening? Should I be seeing something else in the command line?
BTW, I wasn't able to get the cylon-spark example to work either, but there is a clear error being displayed. I have been able to get the cylon-ardrone to work though...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.