SensorVL53L1X

Reading Data from the VL53L1X Time Of Flight distance sensor over i2c. Wrapper for code from https://www.waveshare.com/wiki/VL53L1X_Distance_Sensor
https://codeberg.org/gepatto/SensorVL53L1X

To install, run:

haxelib install SensorVL53L1X 1.0.1 

See using Haxelib in Haxelib documentation for more information.

README.md

SensorVL53L1X OpenFL Extension for Raspberry Pi

Reading data from a VL53L1x Distance Sensor connected via i2c

This extension is a wrapper for code taken from:
https://www.waveshare.com/wiki/VL53L1X_Distance_Sensor

build with: lime rebuild . rpi -clean

installation

checkout and add:
haxelib dev SensorVL53L1X path_to_SensorVL53L1X

add to project.xml
<haxelib name="SensorVL53L1X" />

example usage

    import sensors.SensorVL53L1X;
    import sensors.vl53l1x.events.DistanceEvent;

    ----
    var sensor = new SensorVL53L1X();
    if( sensor.initialize() ){
        sensor.addEventListener ( DistanceEvent.DISTANCE,  sensor_distance);
        sensor.startMeasuring();
    }

    private function sensor_distance (event:DistanceEvent):Void{
        trace('distance ${event.distance}');
    }

scheam

Contributors
Gepatto
Version
1.0.1
Published
8 months ago
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub