This is a library for the JY-LKM1638 Display
Diff: main.cpp
- Revision:
- 0:c05022d4f68c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Aug 19 17:09:38 2013 +0000 @@ -0,0 +1,31 @@ +#include "mbed.h" +#include "LKM1638.h" + //Strobe //CLK //Data +LKM1636 display(p23,p22,p21); + +int main() { + + + + while(1) //Do what ever is between these brackets forever or until the micro is reset. + { + for(unsigned char count = 0; count<225; count++) + { + display.Write_Short(count,0); + display.Write_Short(225-count,1); + display.LEDS (count); + wait(.1); + count++; + } + for(unsigned long int count = 65536; count<65700; count) + { + display.Write_Long(count); + wait(.1); + count++; + display.Switch_To_LED(display.read_buttons ()); + } + display.Clear(); + + } +} +