Bottesford Posted January 5, 2017 at 01:45 PM Share Posted January 5, 2017 at 01:45 PM I was wondering if there was a way to disable any of the status LEDs found on the various bricks & bricklets? I'm using the wifi extension + motion detector bricklet which between them have 3 bright LEDs. These are useful in testing but for the motion detector especially it is undesirable having the bright blue light on every time someone walks in the room. I intend to set it up in a bedroom (for automatic switch on of lighting at suitable times) so a bright LED in the middle of the night isn't nice. Also I'm considering the power use of all these LEDs running all the time - it would be better to disable them when not testing the system. Is the any plan to add some a method 'SetStatusLightsOff' or similar? Quote Link to comment Share on other sites More sharing options...
borg Posted January 9, 2017 at 09:12 AM Share Posted January 9, 2017 at 09:12 AM For the Master Brick there is a disable_wifi2_status_led() as well as a disable_status_led() function. For the Motion Detector Bricklet we currently don't have such an API. I will write in on my TODO list, adding this API is not a huge amount of work. edit: Translated to English, accidentally answered in German . Quote Link to comment Share on other sites More sharing options...
Bottesford Posted January 9, 2017 at 10:16 PM Author Share Posted January 9, 2017 at 10:16 PM Thank you, very helpful! Quote Link to comment Share on other sites More sharing options...
borg Posted January 9, 2017 at 11:01 PM Share Posted January 9, 2017 at 11:01 PM I already added the API in the Motion Detector source code, will be available with the next Bindings release. https://github.com/Tinkerforge/motion-detector-bricklet/commit/f327f00f01dafd6a01bc4bc704b49e686aea94bb Quote Link to comment Share on other sites More sharing options...
Bottesford Posted January 21, 2017 at 05:19 PM Author Share Posted January 21, 2017 at 05:19 PM When will the updated c# DLL be ready so I can use this in my code? My bricklet was updated but I still can't use the new method yet. Thanks. Quote Link to comment Share on other sites More sharing options...
borg Posted January 25, 2017 at 09:48 AM Share Posted January 25, 2017 at 09:48 AM We just made a new Bindings release, so the new function is now available in C# . Quote Link to comment Share on other sites More sharing options...
Bottesford Posted January 26, 2017 at 08:41 PM Author Share Posted January 26, 2017 at 08:41 PM Thanks but I'm getting : System.MissingMethodException : Method not found: 'Void Tinkerforge.BrickletMotionDetector.SetStatusLEDConfig(Byte)'. I call it like this: bricklet.SetStatusLEDConfig(BrickletMotionDetector.STATUS_LED_CONFIG_OFF); I'm using the latest bindings (2.1.12.0) and I have fully updated all my Bricks & Bricklets as well as Brickd and viewer. Quote Link to comment Share on other sites More sharing options...
borg Posted January 27, 2017 at 08:52 AM Share Posted January 27, 2017 at 08:52 AM You have to update the firmware on your Bricklet, it does not now the method yet. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.