well i currently have my rapidfire code single mode on a momentory switch so im ine but i jsut want to get this working all help is apprecited thanks.
well i currently have my rapidfire code single mode on a momentory switch so im ine but i jsut want to get this working all help is apprecited thanks.
There is a monster thread here:
http://forum.microchip.com/tm.aspx?m...1&key=񖔦
hey thanks for that link alot ye i been there since the first post and i know who amde the codes there codes are in asm so basic is easier for me thanks.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
hey Joe thanks alot How would i do it would you provide me with a example or somthing I tried doing this but it only shoots one shot and thats it Also do you happen to have aim or some sort of Instant messaging Here is my code I dont know what needs to be done i also dont know anything about settings.
Looks like you are trying to create a 3 round burst fire simulation, correct? If so you must also create a Virtual Disconnector too, a subroutine loop to stay in while waiting for the trigger to be released. Put it's call in the 3 round subroutine. Something like . . .
Code:main: If Trigger then fire goto main fire: . . . code to flash led 3 times goto Disconnect Disconnect: if trigger = 1 then goto disconnect else goto main endif
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
thank you very much joe I see what your saying WIth the triggers But for now that code up there was orginally for no triggers just external buttons that send the rapid low pulses. the loop one is rapidfire auto and loop 2 is burst. What i want to know if i attach a switch to ground than gpio.3 and when the switch is hit once it will go into loop1 or mode 1 which is auto rapidfire and if the swithch is hit one more time it goes in loop2 or mode 2 for the burst so its basically a 2 mode rapidfire and agin the 2 mode is external after i get it working it will move on to the orignal triggers. thanks joe
EDIT: On the code you wrote can I add a option to turn on and of the rapid fire I mean I know I can jsut do this for example
if buttoncheak = 1 than
sleep 6
else
goto main something like thta but where would i add it.
Last edited by thm ov3rkill; - 22nd December 2008 at 02:42.
Yes, you can. Think in terms of 2 loops each checking the switch. 1 loop elses into the main loop which loops back into the loop, but if true it goes to loop 2 which loops into itself unless true, effectively giving you an on off toggle.On the code you wrote can I add an option to turn on, and off the rapid fire ? I mean I know I can just do this for example
if buttoncheck = 1 then
sleep 6
else
goto main something like that but where would i add it.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Hi , Joe
thanks for all your help so forth really appreciate it alot
I have a couple questions
For example if i make that trigger rapidfire can it read the low coming from trigger when its being pulled and rapidfire from the same pin at once i made a little digram It doesent have to be thoe pins just did them because there closer in the digram the trigger joint is the middle one to make the on/of toggle what command would i use sleep or what?? also i was thinking of making the on off switch as a mode select for example..
when I turn the controller on It goes in mode 1 automatically. Then if I hit the tact switch attached to ground and one of the pins on chip it would go in mode 2 and stay on there untill I hit the switch. If the switch is pressed one more time it will turn rapidfire off and if i hit it one more time it would go in mode 1 like it started on also how would I make the modes I would use the if then but I dont know if i can use the same one again. here is the digram for example.
sorry for the messed up words as i do not have a steady hand
![]()
Last edited by thm ov3rkill; - 22nd December 2008 at 15:14.
Bookmarks