Coder Social home page Coder Social logo

arduino-demo's Introduction

Arduino 101

The following steps were performed to create this demo:

  • Install the arduino IDE from https://www.arduino.cc
  • Look at an arduino tutorial fx. https://www.brainy-bits.com/scroll-text-using-the-max7219-led-dot-matrix/
  • Copy the text at the bottom and put it into a new "arduino-demo.ino" file
  • Open this file in the arduino IDE. Conveniently by double clicking it
  • Change the GPIO pin assignment. I use 11, 12 & 13 which is conveniently also available on the nano's ICSP header
  • Dowload the required library(ies). I made a "libraries" subfolder for this and git submodule add'ed the required library there (MaxMatrix) like so: cd libraries; git submodule add https://github.com/riyas-org/max7219.git
  • Now add libraries/max7219/MaxMatrix to the Arduino system under "Sketch" / "Include Library" / "Add .zip lirary ..." Don't worry, it will allow you to add a directory as well.

Since i hate IDE's with a healthy heart, I will now create a saner CLI based environment

  • Add an Arduino make wrapper. This one looks good: git submodule add https://github.com/sudar/Arduino-Makefile.git
  • Copy the Makefile from the "Blink" example and put in the parameters for board and MCU
  • Add symlink to "MaxMatrix" under libraries, pointing to max7219/MaxMatrix
  • Since my vim setup likes .cpp files better than .ino files, the bulk of the demo is moved to demo.cpp, demo.h
  • And Bob's you uncle: You can do a make upload and see your reward scroll by .. Hooray!

Pinout of the nano Pinout of the nano

Final result Final result

arduino-demo's People

Contributors

themadsens avatar

Watchers

 avatar  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.