Search site Dead Hackers Society
Other BBSes »
 
 

Outline 2017
 

Sommarhack 2017
Demoscene   º   Coding   º   CT60   º   Buy/sell   º   Misc/crap   º   Alive magazine   º   SNDH/Tracking

Atari coding BBS
 
Re: Internal Drive Light
Posted by: Thadoss Dec,07.2015-01:22 

To have a variation in the dim, you have to change the value of d0 after each VBL.

You start with D0 = 1
Then, the next time, d0 = 2
Then, the next time, d0 = 3
...
Then, a little before the full lignted led , d0 = 254
Then, a little before the full lignted led , d0 = 255
Then you let the led ON

(I don't remenber the time and values to use, you'll have to search them).


If yopu want to go from light to dark, it's just the opposite :

You start from a light led and stop it a little before light it again :

Light OFF
loop do
Light ON

You start with D0 = 1
Then, the next time, d0 = 2
Then, the next time, d0 = 3
...
Then, a little before the led is full off, d0 = 254
Then, a little before the led is full off, d0 = 255
Then you let the led OFF



The main idea is to increase or decrease the time when the led is on/off during the time to have it dim more / less.

Don't hesitate to ask if it's not clear.

Regards
Laurent





[All messages in this thread]

Topic Posted by  Date 
Internal Drive Light Bod/Effect Dec,05.2015-22:34
  Re: Internal Drive Light Thadoss Dec,06.2015-00:01
    Re: Internal Drive Light Bod/Effect Dec,06.2015-00:23
    Re: Internal Drive Light Bod/Effect Dec,06.2015-17:09
      Re: Internal Drive Light Bod/Effect Dec,06.2015-17:51
        Re: Internal Drive Light dml Dec,07.2015-11:29
          Re: Internal Drive Light PeP Mar,24.2016-10:00
      Re: Internal Drive Light Thadoss Dec,07.2015-01:22
        Re: Internal Drive Light defjam Dec,07.2015-11:29
        Re: Internal Drive Light Bod/Effect Dec,07.2015-15:45
          Re: Internal Drive Light Bod/Effect Dec,07.2015-17:04


Reply to this message
Name:
Topic:
Human verification (enter the text of the ASCII-art below):

       _       _ _             _   
 _____|_|___ _| | |_ ___ _____| |_ 
|     | |   | . | . | . |     | . |
|_|_|_|_|_|_|___|___|___|_|_|_|___|
Message:




© 1994-2016 Dead Hackers Society Contact: Anders Eriksson