Code Monkey home page Code Monkey logo

univarse-js / arduinopure Goto Github PK

View Code? Open in Web Editor NEW

This project forked from omnidan/arduinopure

0.0 0.0 0.0 10.35 MB

:vhs: This is a project to achieve compiling programs for the Arduino without any external programs like the Arduino IDE. It uses all the standard programs you love so much: make, cc, ... This is also the only way I was able to flash arduino programs to microcontrollers with the stk500.

License: BSD 2-Clause "Simplified" License

C++ 52.09% C 42.72% Objective-C 5.19%

arduinopure's Introduction

ArduinoPure

Copyright (c) 2012-2013, Daniel Bugl. All rights reserved. BSD open-source licensed, see LICENSE for further information.

Folder structure (new)

  • preconf/ - Preconfigured Makefiles for specific Arduino boards (eg, Arduino Uno) and programmer/chip combinations (eg, stk500 and atmega8)
  • templates/ - Makefile templates: Makefile.arduino for Arduino projects and Makefile.general for other projects.

Trying out ArduinoPure on an Arduino Uno

Note: All the Makefiles in the current repository have been tested and should work (besides the Makefile.general and Makefile.arduino file, those are templates). If something doesn't work for you, please open an issue report and I'll try to resolve this with you.

  1. Download ArduinoPure and cd into the directory.
  2. Run "make -o preconf/Makefile.arduino_uno" (for other setups, specify the right Makefile in the -o option)
  3. Run "make -o preconf/Makefile.arduino_uno upload" (again, specify the right Makefile in the -o option if you have a different setup than the Arduino Uno connected via USB)

Creating a new project with ArduinoPure

  1. Copy ArduinoPure into your project directory
  2. Copy the right makefile to "Makefile". Example: cp ./Makefile.stk500_atmega ./Makefile
  3. (Optional) To keep your project directory clean, delete the other Makefiles. You can also remove the main.cpp test file.
  4. Open up the Makefile file with an editor and change the project name (main) and source files (main.cpp)
  5. Run "make" to compile the project
  6. Run "make upload" to upload the compiled hex code to your microcontroller.

Hacking ArduinoPure

If you want to do more with ArduinoPure, you need to modify the Makefile. For Arduino projects, please edit the first few lines of the Makefile.arduino file For other projects (especially those that use the STK500, because its default configuration is to use the stk500 programmer), please edit the first few lines of the Makefile.general file.

arduinopure's People

Contributors

omnidan avatar

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.