User Tools

Site Tools


led_matrix_shades_bitmap_patterns

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
led_matrix_shades_bitmap_patterns [2014/07/29 14:57]
macegr
led_matrix_shades_bitmap_patterns [2014/07/29 17:03]
macegr
Line 1: Line 1:
 ====== Introduction ====== ====== Introduction ======
-The LED Matrix Shades use three main approaches to generating patterns on the front LED array: +The [[http://macetech.com/store/index.php?main_page=index&cPath=11|LED Matrix Shades]] use three main approaches to generating patterns on the front LED array: 
-  * Scroll a text message. A message string is mapped to a bitmap font, which is used to generate and scroll the bitmap representation of the text across the LED matrix. The topic is covered here: [[http://docs.macetech.com/doku.php/led_matrix_shades_changing_messages|Changing Messages]]+  * Scroll a text message. A message string is mapped to a bitmap font, which is used to generate and scroll the bitmap representation of the text across the LED matrix. The topic is covered here: [[led_matrix_shades_changing_messages|Changing Messages]]
   * Swap out full frame bitmap images. An array of bytes is stored in flash, retrieved, and the bits within each byte are mapped to the LED matrix. Swapping out several frames will allow animated images.   * Swap out full frame bitmap images. An array of bytes is stored in flash, retrieved, and the bits within each byte are mapped to the LED matrix. Swapping out several frames will allow animated images.
   * Generate patterns directly to the LED array using mathematical functions. Code can render a graphical pattern based on an incrementing counter, random input, etc.   * Generate patterns directly to the LED array using mathematical functions. Code can render a graphical pattern based on an incrementing counter, random input, etc.
  
 ====== Bitmap Frames ====== ====== Bitmap Frames ======
 +Before attempting to modify LED Matrix Shades code, you should go through the [[led_matrix_shades#programming_instructions|Programming Instructions]] to make sure that everything is set up correctly.
 +
 In the current implementation of the LED Matrix Shades code, bitmap frames are stored in flash memory as an array of bytes. They are stored in binary notation to make them a little easier to read and edit manually. The default AS1130Glasses sketch contains graphic frames associated with the ''beatingHearts()'' function, which cycles through three sizes of heart shapes to create a pulsing heart animation. The code for the bitmap frames is copied below: In the current implementation of the LED Matrix Shades code, bitmap frames are stored in flash memory as an array of bytes. They are stored in binary notation to make them a little easier to read and edit manually. The default AS1130Glasses sketch contains graphic frames associated with the ''beatingHearts()'' function, which cycles through three sizes of heart shapes to create a pulsing heart animation. The code for the bitmap frames is copied below:
 <code>// Full-frame bitmap graphics <code>// Full-frame bitmap graphics
/home/macetec/public_html/docs/data/pages/led_matrix_shades_bitmap_patterns.txt · Last modified: 2014/07/29 17:03 by macegr