Smooth LED fading via PWM


Results 1 to 40 of 55

Threaded View

  1. #30
    Join Date
    Jan 2009
    Location
    California, USA
    Posts
    323


    Did you find this post helpful? Yes | No

    Default Re: Smooth LED fading via PWM

    I've gotta go stack wood, so this is quickk and needs fixing, but this is the sort of thing I was thinking:


    Code:
    count = count + 1
    
    If count < 33 then address = 1                   'all "counts" less than 33 point to address 1 
            if count < 1 then 
            address = 0                                     'unless count is 0. Then it points to address 0
            endif
            else address = count - 33                     'all counts above 33 get offset down so they pick up the sequence starting at address 2
    endif


    steve

    edited to add:

    Never mind, Steve B already did it.
    Last edited by Byte_Butcher; - 20th September 2011 at 21:57.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts