Featured Worklog

Price Search



PC Apex Sponsor


PC Apex Sponsors



PC Apex RSS Feeds

RSS Feed for PC Apex Reviews & ArticlesRSS Feed for PC Apex PC Modding WorklogsRSS Feed for the PC Apex Daily DisturbanceRSS Feed for the latest PC Apex Site NewsRSS Feed for PC Apex Affiliate and Web NewsRSS Feed for PC Apex Deals and Steals

Go Back   Apex Community Forums // PC Apex Forums // Modding // Other Modding

Other Modding Discussions on modding things other than cases.

Reply
 
LinkBack Thread Tools Display Modes
Old 23-October-03, 09:25 PM   #1 (permalink)
Apex Advanced Techie
benjaminrhs666's Avatar
Exclamation Need some l337 programmers help!!!

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!!!
benjaminrhs666 is offline     Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -5. The time now is 11:49 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
Copyright PCApex.com, GameApex.com, ForumApex.com 2001 - 2008
Advertisements

Page generated in 0.12415 seconds with 9 queries