GithubHelp home page GithubHelp logo

guyzmo / arduino-tools Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 7.0 165 KB

Tools for working with arduino without launching the IDE

Home Page: http://wiki.leloop.org/index.php/ArduinoTools

Arduino 33.26% Python 66.74%

arduino-tools's People

Contributors

guyzmo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

arduino-tools's Issues

Error while building

Hi @guyzmo,

I think you've made an pretty awesome Makefile, so cheers for that. I do have a question though; how can I make this working :)?!

This is the current state of my make file: https://gist.github.com/stefanvermaas/b5d247bf040db5b4290d. The only thing I've changed is the local lib Morse, but when I run the make command, I'm seeing this error:

โžœ  MorseLib  make
# Here is the "preprocessing".
# It creates a .cpp file based with the same name as the .ino file.
# On top of the new .cpp file comes the WProgram.h header.
# At the end there is a generic main() function attached,
# plus special magic to get around the pure virtual error
# undefined reference to `__cxa_pure_virtual' from Print.o.
# Then the .cpp file will be compiled. Errors during compile will
# refer to this new, automatically generated, file.
# Not the original .ino file you actually edit...
test -d applet || mkdir applet
echo '#include "Arduino.h"' > applet/MorseLib.cpp
cat MorseLib.ino >> applet/MorseLib.cpp
echo 'extern "C" void __cxa_pure_virtual() { while (1) ; }' >> applet/MorseLib.cpp
cat /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/main.cpp >> applet/MorseLib.cpp
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -mmcu=atmega328p -I. -DF_CPU=16000000L  -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino -Iuno.build.variant=standard/variants/standard   -IMorse/ -Os -std=c++0x -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -DARDUINO=100 applet/MorseLib.cpp -o applet/MorseLib.o
In file included from applet/MorseLib.cpp:1:
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Arduino.h:235:26: error: pins_arduino.h: No such file or directory
applet/MorseLib.cpp:2:19: error: Morse.h: No such file or directory
applet/MorseLib.cpp:4: error: 'Morse' does not name a type
applet/MorseLib.cpp: In function 'void loop()':
applet/MorseLib.cpp:9: error: 'morse' was not declared in this scope
make: *** [applet/MorseLib.o] Error 1

Do you've got any idea what goes wrong? Well apparently the error is the missing pin_header, but I'm not sure how to fix this.

This is my project structure:

MyLib/
-- MyLib.ino
-- libraries/
---- Morse/
------ Morse.h

And I'm on a Mac. Could you help me make this work?

Cheers!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.