
Keep your method calls in try/catch causes therefore if you want to handle errors.Īs stated above, whereever a getter and a setter to a property exists, I have synthesized methods behaving like computed properties. To prepare this library better for the new Xojo framework, I fire exceptions when the result is below 0, adding the exception message according to pigpio‘s error list. Whereby pigpio returns you an integer for as good as method call, I have only done so if this return value needs to be remembered, like a handle. Differences to pigpio original implementation Look into the description tags or consult the pigpio documentation at.
On error in xojo how to#
Look into the classes in the module that demonstrate how to use the library.Ī gpioWrite for example is pigpio.DigitalValue(GPIOPin) = True or False, while you can get the value via pigpio.DigitalValue(gpioPin).Īll public methods and properties are documented. Just change their scope and maybe unhide them. If you want to use it in a form closest to the original, you find the declare as external methods in the module. I tried to create virtual properties and convenience methods around the library. Not really a pigpio feature, but maybe useful: a OneWire Temperature sensor class for reading DB18B20 values.Ĭopy the pigpio module and the bitwise extension from the project into your own Raspberry Pi project.It informs you about wiring when you select a demo. Demo console app to make use of a few of these features, including pigpio timers and interrupts.Servo class using the pigpio servo methods and an optional Double parameter for fractions of the maximum left and right deflection.

RGBLED class that can be addressed with Xojo color and an additional brightness value and uses 12 bit color per channel internally.Interrupt-driven IRMotionDetector class.

Button class with interrupts enabling background responses.LCD Display class with rough Umlaut translation.Basically only the scripts section and two or three bulk methods are missing where I am unsure about the structure being used. almost every pigpio method and property, including exception messages for easier debugging.(Besides a lot of fairly untested pigpio declares): Please see the demo console app and the method descriptions. A Xojo library for pigpio features in Raspberry Pi projects
