Class VL53L0X

  • All Implemented Interfaces:
    Iarm32, Izynq7000

    public class VL53L0X
    extends IrqInterrupt
    implements Izynq7000

    Interrupt controlled driver for the VL53L0X TOF Sensor with the SPI1 of the Zynq7000.

    Remember:
    The driver runs with a loop time of 1ms. The SPI interface is only accessible through the following pins:

    • MOSI: MIO 10
    • MISO: MIO 11
    • CLK : MIO 12
    • CS : MIO 13
    • Constructor Detail

      • VL53L0X

        public VL53L0X​(int sensors)
        Initialize up to 4 VL53L0X time of flight sensors
        Parameters:
        sensors - number of sensors (1..4)
    • Method Detail

      • action

        public void action()
        Task function handling the general state and operations of this driver Not to be called manually!
        Overrides:
        action in class IrqInterrupt
      • read

        public int[] read()
        Read last measurement data
        Returns:
        distances in mm, the returned array has as many elements as sensors were requested in the constructor