-
Notifications
You must be signed in to change notification settings - Fork 517
Spark #141
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
Spark #141
Conversation
|
I'd like to see Spark Core support also. 👍 Thanks @jacobrosenthal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't work as it does with the other boards defined in this file. The Spark's PWM support is available on D0, D1, A0, A1, A4, A5, A6 and A7.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it will work as long as the spark core firmware defines digitalPinHasPWM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about
#define IS_PIN_PWM(p) ((p) == 0 || (p) == 1 || ((p) >= 10 && (p) <= 17))There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally the equivalent of an arduino variant pins_arduino.h file should be added to spark/core-firmware. Here's an example from the standard arduino variant: https://github.com/arduino/Arduino/blob/master/hardware/arduino/variants/standard/pins_arduino.h
|
Is there a spark core port to Arduino? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reasoning behind this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spark (and maybe others) don't support any random positive number as a truth value. @rwaldron is attempting to push a fix upstream https://github.com/spark/core-firmware/issues/247 so it may not be necessary
|
This pull request needs to be submitted against the dev branch, not master. I don't accept pull requests to master unless it's just a readme update or something like that. |
|
What to do with this mess now. I can revert the bitmask lines, but we seem no closer to an agreed upon Spark #ifdef Another issue Ive found is Spark has swapped their input/output enum |
|
The best solution is if Spark implements the Arduino Stream interface. This would be a smart move for them in terms of Arduino compatibility. That would eliminate the need for the Spark #ifndef in Firmata.cpp if I update Firmata.cpp to include Stream.h rather than HardwareSerial.h. |
|
Seems like they do: heres it being used On Mon, Sep 1, 2014 at 7:54 PM, Jeff Hoefs [email protected] wrote:
|
|
If I merge this: #144 It will eliminate the need for any reference to Spark in Firmata.cpp. However it's going to break pretty much everything anyone has made with Firmata that relies on HardwareSerial so I'm not sure when is a good time to release it. |
|
That seems like a admirable goal, but in the meantime Id love to get the I dont think I need the digital write change anymore since it was accepted Im testing the rest of the Boards entry to make sure its good for stuff Ill submit against dev soon. On Mon, Sep 1, 2014 at 8:14 PM, Jeff Hoefs [email protected] wrote:
|
|
For now, I would rather create a separate version of Firmata for Spark |
|
We're over at https://github.com/firmata/spark now. Thanks all. |
Spark.io support