Unable to display count on LCD display
Dave A
Posts: 31
in Propeller 1
I am trying to display a count on a LCD display. I have worked with Basic Stamp II since they came out, but this is my 1st time for the Propeller chip using SimpleIDE
The following is a copy of my code.
#include "simpletools.h" // Include simpletools
const int ON = 254;
const int CLR = 1;
int main() // main function
{
serial *lcd = serial_open(12, 12, 0, 9600); //Pin12
writeChar(lcd, ON);
writeChar(lcd, CLR);
pause(5);
int cycles = count(16,1000); // Count for 1 second Pin16
pause(10);
dprint(lcd,"count=", cycles);
pause(10);
}
Your assistance will be appreciated.
Dave
The following is a copy of my code.
#include "simpletools.h" // Include simpletools
const int ON = 254;
const int CLR = 1;
int main() // main function
{
serial *lcd = serial_open(12, 12, 0, 9600); //Pin12
writeChar(lcd, ON);
writeChar(lcd, CLR);
pause(5);
int cycles = count(16,1000); // Count for 1 second Pin16
pause(10);
dprint(lcd,"count=", cycles);
pause(10);
}
Your assistance will be appreciated.
Dave
Comments
Mike
Mike
Mike
Thank you that worked
Dave