Here are some more LED examples for use with the QL200 development board
Example 1:
#include
//We use an xtal crystal, no watchdog,
//no low-voltage protection and no code protection.
#fuses XT, NOWDT, NOLVP, NOPROTECT
#use delay (clock=4M)
int j;
void main()
{
while(1)
{
//counter example
for (j=0;jExample 2:
#include
//We use an xtal crystal, no watchdog,
//no low-voltage protection and no code protection.
#fuses XT, NOWDT, NOLVP, NOPROTECT
#use delay (clock=4M)
int j;
void main()
{
while(1)
{
//counter example
for (j=0;jExample 3:
#include
//We use an xtal crystal, no watchdog,
//no low-voltage protection and no code protection.
#fuses XT, NOWDT, NOLVP, NOPROTECT
#use delay (clock=4M)
void main()
{
while(1)
{
//counter example
output_c(0b00000000);
delay_ms(500);
output_c(0b10000001);
delay_ms(500);
output_c(0b11000011);
delay_ms(500);
output_c(0b11100111);
delay_ms(500);
output_c(0b11111111);
delay_ms(500);
output_c(0b11100111);
delay_ms(500);
output_c(0b11000011);
delay_ms(500);
output_c(0b10000001);
delay_ms(500);
}
}