phillm6 Geschrieben October 19, 2016 at 19:47 Geschrieben October 19, 2016 at 19:47 Hello. I'm very new to tinkerforge, and I tried to scan the forum to see if I could find help in debugging some code (after finding nothing with a google search). So, I was wondering if I've evaded the proper channels for that help, or if I should just ask here. http://www.tinkerforge.com/en/doc/Software/Bricklets/AmbientLight_Bricklet_Python.html#ambient-light-bricklet-python-api If it's the latter, I'm trying to get the example code for the python api bindings for the ambient light bricklet to work properly. Unfortunately, I've been unable to get it to produce callbacks (the master brick is connected to a raspberry pi running raspbian). get_illuminance() is performing correctly (confirming that the bricklet is able to detect different levels of light), but neither of the callback functions (standard callback or threshold) are triggering (including under changing conditions, which I checked for values under different physical conditions). In addition, the code in example_threshold.py (in the above url) is throwing this error Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/tinkerforge.bricklet_ambient_light.py", line 231, in set_debounce_period self.ipcon.send_request(self, BrickletAmbientLight.FUNCTION_SET_DEBOUNCE_PERIOD, (debounce,), 'I', '') File "/usr/local/lib/python2.7/dist-packages/tinkerforge/ip_connection.py", line 980, in send_request raise Error(Error.NOT_SUPPORTED, msg) tinkerforge.ip_connection.Error: Function 11 is not supported (-10) Any help would be appreciated, even if I can be directed to the technical specifications of the bricks/the implementation details of the bindings to dig through myself. Thank you for your time. Zitieren
photron Geschrieben October 20, 2016 at 08:01 Geschrieben October 20, 2016 at 08:01 You probably have an Ambient Light Bricklet 2.0 and are trying to use an Ambient Light Bricklet (1.0) example. Try these examples instead: http://www.tinkerforge.com/de/doc/Software/Bricklets/AmbientLightV2_Bricklet_Python.html Zitieren
phillm6 Geschrieben October 21, 2016 at 18:37 Autor Geschrieben October 21, 2016 at 18:37 Thanks, that was the issue. Zitieren
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.