3 LED's stay on solid after disarm?

3 LED's stay on solid after disarm?

Postby exibar » Sun May 06, 2012 3:35 am

Hi There!
I'm in need of at least one of the 3 LED's to stay lit continously after a disarm. I'm going to use the +5v from one of them to power a CD-Rom tray motor to open up the tray, I'd only need the LED to stay lit for 2 -3 second in order to open the CD-Rom drive tray.

Can this be done easily through the firmware code?

thanks again!
Mike B
exibar
Newbie
Newbie
 
Posts: 10
Joined: Fri Jan 27, 2012 3:05 am

Re: 3 LED's stay on solid after disarm?

Postby Michael » Sun May 06, 2012 6:13 am

Yes, these types of modifications can be done by changing the code. Have you studied the code? It is downloadable from here: http://nootropicdesign.com/defusableclock/hack.html

This is the bit of code that controls what happens when the device is defused or not.

Code: Select all
  if (!defused) {
    detonate();
  } else {
    beep(4500, 80);
    delay(2000);
    displayCountdown = false;
  }
Michael
Administrator
Administrator
 
Posts: 477
Joined: Sat May 29, 2010 8:24 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest