Skip to content

Matrix Orbital

Personal tools
You are here: Home » Application Notes » Javelin Stamp » Large Digits

Large Digits

Document Actions
This Applications note shows how easy it is to utilize large digits that are built into Matrix Orbital displays.
Our alphanumeric displays have the ability to display large digits. This is usefull if you want to see the temperature in large easy to read letters.

Stamp: Javelin Stamp
Communication Type: Serial
Display Used: Any Matrix Orbital display that supports serial communication such as the MOS or LK/VK/PK series

Introduction:

Large digits is a combination of the 8 custom characters an alphanumeric display has. These 8 custom characters are user defined and can be used how ever the user sees fit. You will have to note, that you cannot use Large Digits, Bar Graps or user defined Custom Characters at the same time. It has to be one or the other.

Countdown Example:


// Uart.dirTransmit -> Uart will be used to transmit data only.
// CPU.pin0 -> Pin used to transmit data
// Uart.dontInvert -> data is not inverted
// Uart.speed19200 -> serial data transfer speed (baud rate)
// Uart.stop1 -> Number of stop bits used is 1

static Uart txUart = new Uart(Uart.dirTransmit, CPU.pin0, Uart.dontInvert, Uart.speed19200, Uart.stop1 );



// Countdown from 9 to 0
    txUart.sendByte(0xFE);    // Command prefix
    txUart.sendByte(0x6E);    // Initialize large digits

    for(i = 9; i >= 0; i--)   // Iterate from 9 to 0
    {
      txUart.sendByte(0xFE);  // Command prefix
      txUart.sendByte(0x23);  // Place large digits command
      txUart.sendByte(19);    // Column where to start placing digit
      txUart.sendByte(i);     // Digit to display (From 9 to 0)
      CPU.delay(30000);       // Pause for 3 seconds to allow viewing
    }


In this code, the display will display 10 large digits, starting with 9 and going to 0. You can expand on this by creating 2+ more numbers at the same time. This code is usefull for the digital thermometer we will be building next.

For technical discussions and questions, please visit ourforums
Created by Henry
Last modified 2005-08-06 08:54 PM
 

Powered by Plone

This site conforms to the following standards: