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

Add support for panStamp AVR #117

Closed
gandy92 opened this issue Mar 11, 2015 · 6 comments
Closed

Add support for panStamp AVR #117

gandy92 opened this issue Mar 11, 2015 · 6 comments

Comments

@gandy92
Copy link

gandy92 commented Mar 11, 2015

Is it possible to add support for the panStamp AVR and panStamp NRG boards?

@ivankravets ivankravets added this to the 1.2.0 milestone Mar 13, 2015
ivankravets added a commit that referenced this issue Mar 16, 2015
Add support for "panStamp" boards // Resolve #117
@gandy92
Copy link
Author

gandy92 commented Mar 22, 2015

Thank you for adding support for panstamp so promptly 👍

I managed to successfully build the panstamp-blink.ino. However, I have a few issues compiling a sketch that uses the Wire lib, similar to what is mentioned here: http://www.panstamp.org/forum/archive/index.php/thread-3978.html Apparently, using the panstamp libraries requires a few patches to the libraries shipped with arduino.

Should I open a new issue covering this? Shall I provide more information, or a testcase?

@gandy92
Copy link
Author

gandy92 commented Mar 22, 2015

I looked into this more closely, apparently they just rename twi.c from libraries/Wire/utility to twi.cpp to make it work. Would this be a viable solution?

@ivankravets
Copy link
Member

@gandy92 thanks for report. I've just opened new issue #133 . It should resolve this problem.

P.S: You can currently avoid this problem via adding specific libs to your project libs directory. These libs have more higher priority then framework's libs. Just copy PanStamp's Wire lib to projects libs/Wire. Did it help you?

@gandy92
Copy link
Author

gandy92 commented Mar 22, 2015

Thanks for the workaround. For a preliminary fix I manually copied the libraries to the platformio directories. Your solution is much more elegant, though, I will try this with a clean installation, tomorrow.

@ivankravets
Copy link
Member

Ok, I will wait for your results.

P.S: Please restore default PlatformIO packages. Just uninstall/install specified platforms or remove totally ~/.platformio dir.

@gandy92
Copy link
Author

gandy92 commented Mar 22, 2015

Removed .platformio dir and copied panstamp-avr specific libraries to lib/

Worked fine for both of my projects. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants