Code Monkey home page Code Monkey logo

lixie-arduino's Introduction

Lixie Library

#Library for driving Lixie edge-lit displays! Disclaimer: This library is still in early development and may change drastically in the coming weeks! It also depends on the "FastLED" library from Daniel Garcia, so make sure you have that installed as well!

This library allows for easy writing to Lixie digit displays! It takes care of all the addressing and updating for you!


Contents


Installation

The Lixie library relies on the FastLED library from Daniel Garcia, so make sure you have that installed as well!

With Arduino Library Manager:

  1. Open Sketch > Include Library > Manage Libraries in the Arduino IDE.
  2. Search for "Lixie", and select the latest version.
  3. Click the Install button and Arduino will prepare the library and examples for you!

Manual Install:

  1. Click "Clone or Download" above to get an "Lixie-arduino-master.zip" file.
  2. Extract it's contents to the libraries folder in your sketchbook.
  3. Rename the folder from "Lixie-arduino-master" to "Lixie".

Getting Started:

#include "Lixie.h" // Include Lixie Library
Lixie lix;         // Set class nickname for faster coding

void setup() {
  lix.begin();                     // Initialize LEDs
  lix.color_on_hsv(127,255,255);   // Set color with HSV (CYAN)
}

void loop() {
  lix.write_int( millis() );       // Write millis() to the displays
  delay(1);
}

Functions

lix.begin();

Inititalizes the underlying FastLED library and sets up variables like the digit colors.

lix.clear();

Clears all displays, all lights off.

lix.write_int(unsigned int input);

Clears the displays, and pushes in a multi-digit integer as in: 2016

lix.write_string(char* input);

Clears the displays, and pushes in a char array as in: "2016". This ignores any non-numeric chars in the string, allowing you to send "12:52:47 PM" and have the displays show "12 52 47" for a clock.

lix.color_on_rgb(byte r, byte g, byte b);

Sets the "on" color of the digits using RGB. This is the color of an active number in the display. (Default: 255,255,255)

lix.color_off_rgb(byte r, byte g, byte b);

Sets the "off" color of the digits using RGB. This is the color of all inactive numbers in the display. (Default: 0,0,0)

lix.color_on_hsv(byte h, byte s, byte v);

Sets the "on" color of the digits using HSV. This is the color of an active number in the display. (Default: 0,0,255)

lix.color_off_hsv(byte h, byte s, byte v);

Sets the "off" color of the digits using HSV. This is the color of all inactive numbers in the display. (Default: 0,0,0)


Contributing

Any advice or pull requests are welcome. :)


License and Credits

Developed by Connor Nishijima (2016)

Released under the GPLv3 license.

lixie-arduino's People

Contributors

connornishijima avatar

Watchers

yfrobot-zl 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.