How to activate buzzer when leak detector is active

Basic / Standard Reef Angel hardware
Post Reply
lmolenmaker
Posts: 59
Joined: Tue Nov 12, 2013 5:58 am

How to activate buzzer when leak detector is active

Post by lmolenmaker »

Hi guys,

I received the rope leak detector and installed it. it is working perfectly except the internal audio is not working. It is not a big deal as I have the external buzzer connected to the actinic dimming channel.

Could somebody please let me know which line of code I need to make the external Buzzer go at 100% when the leak detector is activated?

Thanks in advance.

Leslie
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: How to activate buzzer when leak detector is active

Post by rimai »

Try this:

Code: Select all

  if (ReefAngel.IsLeakDetected())
    ReefAngel.PWM.SetActinic(100);
  else
    ReefAngel.PWM.SetActinic(0);
Roberto.
Post Reply