BS2e Help lost code
Rutcgr18
Posts: 47
I am working on a project.· I am a vol firemen and i am trying to use hte BS2e to be my flash pack for my leds that i am making.· My only problem is that i had wrote some code for the BS2e and my hd crashed and lost the code i need to some how get it from the stamp.· I also need to figure out how to have one have a mometary swith on it so when i hit it it changes flash patterns.· Any help would be great.· I wrote most of the code in binary so i could flash more than one pin at a time.· Is there and easier way?
Thanks
Mike
Thanks
Mike
Comments
thanks
mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
mike
Reset:
· DIRA = %1111
Main:
· FOR OUTA = %0000 TO %1111
··· PAUSE 1000
· NEXT
· GOTO Main
This displays binary values, %0000 to %1111 on P0..P3, with a one-second delay between changes.· If this isn't what you're looking for then you'll have to be much more SPECIFIC, going so far as to spelling out the sequence you want, e.g.,
1 - 0000
2 - 1001
3 - 0110
-- back to #1
As far as different ways to flash the LEDs, I suggested StampWorks earlier because it has an excellent example (even if I do say so myself) of presenting different patterns on LEDs.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Post Edited (Jon Williams (Parallax)) : 10/27/2005 4:43:02 AM GMT
I dont know what the command was bfore the binary
%0000000001
I think had something here not sure
%0000000010
basicly what ineed to do is i am trying to make flash patterns for these leds i have made for my car. so i will need to lets say flash pin 0 and pin 2 at the same time then flip to pin 1 and to pin 3. I dont knowif you are familer with strobe patterns on a police car. I am basicly making whats on the police cars and fire trucks. I jsut need to make the flash back with the BS2e
Thanks
Mike
This is about as simple as it gets.
Post Edited (BPM) : 10/27/2005 5:21:39 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
thanks
mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
I am new to it all as you cant tell
thanks
mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
thanks
mike
http://www.parallax.com/detail.asp?product_id=28123
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
thank you
FLASH:
HIGH 0
PAUSE 500
LOW 0
PAUSE 500
HIGH 2
PAUSE 500
LOW 2
HIGH 1
PAUSE 500
LOW 1
HIGH 3
PAUSE 500
LOW 3
IF IN5 = 0 THEN FLASH:
IF IN5 = 1 THEN DOUBLE:
Double:
HIGH 0
PAUSE 800
LOW 0
PAUSE 500
HIGH 2
PAUSE 800
LOW 2
HIGH 1
PAUSE 800
LOW 1
HIGH 3
PAUSE 800
LOW 3
IF IN5 = 0 THEN DOUBLE:
IF IN5 = 1 THEN TRIPLE:
Triple:
Yes, the best way to start understanding the stamp, is to hook it up and try it out.
Definetly read the WAM... I would do that first before trying to program the BS2