| |||||||
| Other Modding Discussions on modding things other than cases. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) | |
| iF i posted this already, then I'm SOO SORRY!!! please forgive me... anyways, if I didn't then read on ![]() hello fellow pimps I need help, not sure if this belongs in the other modding section, but this is part of a case mod I'm hoping to do... I wanted to light my Antec LANboy up, but I didn't want any old CC tube or LED stick, so I decided to make my own original LED stick that has different patterns to it (sorta like those chrismas lights --> Execpt more fancy). Becuase everyone got the frigen same way to light my case I wanted to do something different, but when I started programing for the PIC, I got stuck... I hope some you you fellows out there can help, If the mod is sucessful, I do a guide... but for now, HELP PLZ!!! I'm done the loops, the actual on, off, (mostly in binary.. cause it helps me visualize which LED's are going to be lit) but where I got stuck is when I wanted each one of the pins to light at a different delay, yet still light together... you get it??? I'll jsut tell you what I want to do I want to make a moving line of light, and in the center of the strip of light would be the brightest one, while the ones around it would me less bright, to make that "traveling" effect. Dimmer | _ even more dimmer, like the first, not so bright | | O O L L L L L O L= Lighted O = Not lighted __| | |____ | brighter | Not so bright Brightest you get it? good by lengthing and shortening he delay loops I'm able to make the light brighter and dimmer, sorta like a pulse moter control. but this is where I got in the problem... here's the middle of my code, I know, I know, it's simple and n00b style, but I'm only 15, without further ado... the (bracketed) 1 is the LED I want to be the brighest *too keep it simple to understand the LED sequence, I'll delete those later* Loop movlw b'(1)1100011' movwf LEDPORT call Delay ;calls the delay movlw b'1(1)110001' movwf LEDPORT call Delay movlw b'11(1)11000' movwf LEDPORT call Delay movlw b'011(1)1100' movwf LEDPORT call Delay movlw b'0000(1)000' movwf LEDPORT call Delay movlw b'00011(1)11' movwf LEDPORT call Delay movlw b'100011(1)1' movwf LEDPORT call Delay movlw b'1100011(1)' movwf LEDPORT call Delay movlw b'100011(1)1' movwf LEDPORT call Delay movlw b'00011(1)11' movwf LEDPORT call Delay movlw b'0011(1)110' movwf LEDPORT call Delay movlw b'011(1)1100' movwf LEDPORT call Delay movlw b'11(1)11000' movwf LEDPORT call Delay movlw b'1(1)110001' movwf LEDPORT call Delay goto Loop ;loops the program I wrote the delay, but I need more then one variable to make the dimmer and brighter part..... any suggestions? help? or do I have to do it the long and super n00b way? do I have to write 5 different delay subroutines, then match each with the particular "high" bit then make the next one? or could I save a lot of time by selectivly delaying the pin 1 differntly from pin 2? Thanks for reading any help would be appriecated when I finish, I'll definetly make a guide, but until then... tada.. if you need any more info just post it BTW: DARK SAMURAI ROCKS!!! and PIMPRIG KICKS @Zz!!! | ||
| | | |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| good or bad, l337 or... | KayinStorm | Anything Goes | 11 | 23-May-03 04:03 PM |
| Top Ten: Am I L337? | Darksamurai | Daily Disturbance | 10 | 05-May-03 10:51 AM |
| E-L337-ism | Darksamurai | Daily Disturbance | 17 | 20-January-03 04:30 AM |
| Are you l337? | Darksamurai | Daily Disturbance | 12 | 05-January-03 04:30 AM |