Code Monkey home page Code Monkey logo

energia-tiva's Introduction

energia-tiva

Some test programs for the Tiva C Launchpad using the Energia IDE. The language is the same as Arduino, so they should work mostly unmodified on Arduino platforms.

LED Test Program

This program loops through the red, green and blue LEDs and turns each of them on for half a second.

Note that RED_LED, GREEN_LED and BLUE_LED are defined in the Tiva header files, so we don't have to separately define them here

Serial Lib + LEDs

This program demonstrates the ability to parse commands that are sent over the serial port, and perform actions based on them. There following sample commands are implemented:

"red" - turn on just red LED
"green" - turn on just green LED
"blue" - turn on just blue LED
"white" - turn on all LEDs
"off" - turn off all LEDs

To issue the command, after loading the program, open the Serial Monitor from Energia. Choose "Newline" instead of "No line ending" and then send commands.

Once the program receives a newline, it will take the string in its buffer and run a command based on it.

This program uses SerialEvent code from http://energia.nu/Tutorial_SerialEvent.html

energia-tiva's People

Contributors

wkchen avatar

Watchers

James Cloos 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.