This is a library for the JY-LKM1638 Display

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "LKM1638.h"
00003                     //Strobe //CLK  //Data
00004 LKM1636 display(p23,p22,p21);
00005 
00006 int main() {
00007 
00008 
00009 
00010     while(1) //Do what ever is between these brackets forever or until the micro is reset.
00011             {
00012                 for(unsigned char count = 0; count<225; count++)
00013                 {
00014                     display.Write_Short(count,0);
00015                     display.Write_Short(225-count,1);
00016                     display.LEDS (count);
00017                     wait(.1);
00018                     count++;
00019                 }
00020                 for(unsigned long int count = 65536; count<65700; count)
00021                 {
00022                     display.Write_Long(count);
00023                     wait(.1);
00024                     count++;
00025                     display.Switch_To_LED(display.read_buttons ());
00026                 }
00027                 display.Clear();
00028 
00029             }   
00030 }
00031