declaring variables
Rosthstl
Posts: 2
Hi all; I'm new to this and having read What's a Microcontroller and searching the forums, I'm still stumped.
I have a basic stamp 2 with a serial 4x20 lcd. I've got the lcd to read and backlight etc. and I've got 2 led's
to light alternately. But, I cannot get the pin outputs to show on the lcd.
When led 1 lights, I want the lcd to read ' LED NUMBER·· *· IS ON'· when led 2 lights I want the number on the lcd to change reflecting the led change. I've tried IN1, OUT1, PIN1, IF THEN, If I define lednum as a CON then that is the only number that shows on the lcd. I've attached what I have already. Any help is appreciated.
I have a basic stamp 2 with a serial 4x20 lcd. I've got the lcd to read and backlight etc. and I've got 2 led's
to light alternately. But, I cannot get the pin outputs to show on the lcd.
When led 1 lights, I want the lcd to read ' LED NUMBER·· *· IS ON'· when led 2 lights I want the number on the lcd to change reflecting the led change. I've tried IN1, OUT1, PIN1, IF THEN, If I define lednum as a CON then that is the only number that shows on the lcd. I've attached what I have already. Any help is appreciated.
bs2
945B
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
But, because led1 and led2 are output pins wouldn't they be constants? and lednum, because it changes, would be a Var.?
led1 PIN 1
led2 PIN 2
not
led1 CON 1
led2 CON 2
try this
____$WMc%___
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Truth is out there············································ BoogerWoods, FL. USA