Git Product home page Git Product logo

textwhacker's Introduction

Textwhacker readme

Textwhacker enables Bitlash to print scrolling marquee text to a Sparkfun LED matrix.

Install

Install Bitlash per instructions at http://bitlash.net

Install this textwhacker library in the same place you put Bitlash

Connect your Sparkfun LED matrix per these notes in textwhacker.cpp, or change these lines to be appropriate for your hardware setup:

//////////
// Pin Configuration for software SPI interface
//
#define DATAOUT 	15	// MOSI
#define SPICLOCK	14	// SCK
#define SLAVESELECT 16	// ~SS, active low

#define BOARD_VERSION	20	// 20 for 2.0, 25 for 2.5
#define NUMBOARDS		1	// one board please

Restart the Arduino IDE (!) and open: File -> Examples -> textwhacker -> bitlash_textwhacker

Upload to your Arduino

Connect with a serial monitor and play with the new functions

New functions

text("Agent number: %03d", 7)

Formats the given arguments like printf() would and displays the resulting text in scrolling marquee format on the LED array.

fgcolor(color("red")) and bgcolor(color("blue"))

Set the foreground/background color for text.

Because it's inconvenient to memorize the color codes a translation function named color() is provided. It knows the color map for the display. Use it to look up the color number for you as in the examples above.

speed(50)

Sets the text scroll rate, more properly the pixel scroll interval, default is 50 ms.

Smaller values make it go faster.

fill(color("white"))

Fills the display with the given color

color("red")

Returns the color code for the given color name.

These color names are supported:

black
blue
cyan
green
magenta
red
white
yellow

textwhacker's People

Contributors

billroy avatar

Watchers

 avatar James Cloos avatar Scotty Franzyshen 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.