stamp programing
Archiver
Posts: 46,084
I would like to use a stamp (bs2p) to control some led's. I need a
setup with three switches(momentary contact)and five leds. When
switch #1 is pressed, one led (#1)will light steady. When switch #2
is pressed, led #1 will go out and led #2 & #3 will flash (railroad
crossing style), and continue to flash until switch #1 is pressed.
At that time, led #2 & #3 will go out and #1 will be on. Switch #3
will control led's #4 & #5. Push switch #3 once and led's #4 & #5
flash (railroad crossing style), but have no affect on the other
led's associated with switch #1 & #2, and switches #1 & #2 have no
effect on switch #3 or its associated led's. Push switch #3 again
and led's #4 & #5 go out. Switch #3 only toggles led's #4 & #5 on
and off (flashing when on). At any time, led #1 & led's #4 & #5
could be on, or #2,3,4, & 5 could be on, or just #1, but never can #1
be on when Led #2 & #3 are on. If this is possible to produce,
please contact me. I really need assistance on this, and my time is
short. Charlie
setup with three switches(momentary contact)and five leds. When
switch #1 is pressed, one led (#1)will light steady. When switch #2
is pressed, led #1 will go out and led #2 & #3 will flash (railroad
crossing style), and continue to flash until switch #1 is pressed.
At that time, led #2 & #3 will go out and #1 will be on. Switch #3
will control led's #4 & #5. Push switch #3 once and led's #4 & #5
flash (railroad crossing style), but have no affect on the other
led's associated with switch #1 & #2, and switches #1 & #2 have no
effect on switch #3 or its associated led's. Push switch #3 again
and led's #4 & #5 go out. Switch #3 only toggles led's #4 & #5 on
and off (flashing when on). At any time, led #1 & led's #4 & #5
could be on, or #2,3,4, & 5 could be on, or just #1, but never can #1
be on when Led #2 & #3 are on. If this is possible to produce,
please contact me. I really need assistance on this, and my time is
short. Charlie
Comments
Download the Stamp manual from the Parallax websight. The first few program
examples show you how to control an LED. From that information, you should be
able to take it from there.
[noparse][[/noparse]Non-text portions of this message have been removed]
is not eager to give you a completely written debugged program when it
appears the user has not done any preliminary work and is simply looking for
"the answer" to a school project.
[noparse][[/noparse]Non-text portions of this message have been removed]
please contact me. I really need assistance on this, and my time is
short. Charlie
Yes it is possible and quite easy to do.
[noparse][[/noparse]Non-text portions of this message have been removed]
microprocessor groups I belong to are getting hit with similar requests.
Original Message
> Typically this group is VERY GOOD at giving sound advice. The group
typically
> is not eager to give you a completely written debugged program when it
> appears the user has not done any preliminary work and is simply looking
for
> "the answer" to a school project.
daweasel@s... writes:
>
> Must be getting towards the end of the semester -- all the robot /
> microprocessor groups I belong to are getting hit with similar requests.
>
>
Original Message
>
> >Typically this group is VERY GOOD at giving sound advice. The group
> typically
> >is not eager to give you a completely written debugged program when it
> >appears the user has not done any preliminary work and is simply looking
> for
> >"the answer" to a school project.
>
How True LOL!!!!!!!!!!
[noparse][[/noparse]Non-text portions of this message have been removed]