// ***************************************************************************************************************** // * * // * SpikenzieLabs.com * // * * // * Message Pump * // * * // * Demo Program for USB-LCD Interface * // * * // ***************************************************************************************************************** // // BY: MARK DEMERS // Sept 2008 // VERSION: 0.1 // // DESCRIPTION: // This is a demo program to specifically drive the Message Pump from Spikenzielabs.com. The hard ware uses an FTDI // USB UART to send serial data to a Microchip PIC 16F689 that drives an LCD. // // The default serial configuration is 9600 8N1 // // FUNCTION: // A. User selects a serial port form a list. // B. Splash screen is displayed. // C. User is asked to type. // D. Splash screen is cleared and key-strokes are sent to display. // import processing.serial.*; Serial port; // Create object from Serial class String[] lines; int index = 0; int state =3; int i = 0; String ports[] = Serial.list(); void setup() { size(512, 500); textFont(createFont("Arial", 12)); background(255); selectport(); } void draw() { if (state==3){ } else { background(255); text("Hit any key to send it to the dispay:", 15, 25, 600, 350); } } void selectport() { background(255); fill(0); stroke(50); text("Please press the number key that matches your serial Port:", 15, 25, 600, 350); fill(50); for(i=0; i