#LineSensor test

from gpiozero import LineSensor
from time import sleep
from signal import pause

def lineDetected():
    print('line detected')


def noLineDetected():
    print('no line detected')

sensor = LineSensor(14)

sensor.when_line = lineDetected
sensor.when_no_line = noLineDetected

pause()

sensor.close()

[(14, 'gpiozero.LineSensor', 'LineSensor', False, 'from gpiozero import LineSensor\n'), (19, 'signal.pause', 'pause', False, 'from signal import pause\n')]