<jupyter_start><jupyter_text>Linetracker ExampleThis example shows how to use the [Linetracker](http://www.dfrobot.com.cn/goods-784.html) on the board.  The Linetraker has 2 models: digital and analog model.For this notebook, a PYNQ Arduino is required, and the pins of linetracker should be set in the A0-A5.<jupyter_code># Make sure the base overlay is loaded
from pynq.overlays.base import BaseOverlay
base = BaseOverlay("base.bit")<jupyter_output><empty_output><jupyter_text>1. Instantiate linetracker Before use the linetrackers(at most 2), you should set the pins for themThis notebook is also for testing the capacity of linetracker<jupyter_code>LT_PINS = ["CHANNEL_A0","CHANNEL_A1","CHANNEL_A2",
           "CHANNEL_A3","CHANNEL_A4","CHANNEL_A5"]
from pynq.lib.arduino import LT_sen

# Instantiate linetracker on Arduino
linetrack = LT_sen(base.ARDUINO,"CHANNEL_A3","CHANNEL_A4")
#default pins is left:CHANNEL_A3, right:CHANNEL_A4
#if you set the pins as the default configuration
#linetrack = LT_sen(base.ARDUINO) such a format is legal<jupyter_output><empty_output><jupyter_text>2. Test the capacity of linetrackerrun the code below, linetrackers will print the voltage level every second<jupyter_code>from time import sleep
while (1):
    print(linetrack.read_lt_data())
    sleep(1)<jupyter_output>[223, 340, 0.01, 0.02]
[229, 351, 0.01, 0.02]
[1278, 346, 0.07, 0.02]
[65535, 342, 3.33, 0.02]
[881, 344, 0.04, 0.02]
[221, 344, 0.01, 0.02]
[65535, 360, 3.33, 0.02]
[65535, 341, 3.33, 0.02]
[65535, 354, 3.33, 0.02]
[65535, 346, 3.33, 0.02]
[65535, 361, 3.33, 0.02]
[65535, 979, 3.33, 0.05]
[65535, 65535, 3.33, 3.33]
[270, 329, 0.01, 0.02]
[263, 379, 0.01, 0.02]
[1028, 65535, 0.05, 3.33]
[324, 65535, 0.02, 3.33]
[265, 333, 0.01, 0.02]
[261, 340, 0.01, 0.02]
[254, 335, 0.01, 0.02]
[264, 337, 0.01, 0.02]
[262, 342, 0.01, 0.02]
[272, 341, 0.01, 0.02]
[266, 339, 0.01, 0.02]
[257, 341, 0.01, 0.02]
[256, 329, 0.01, 0.02]
[235, 351, 0.01, 0.02]
[231, 344, 0.01, 0.02]
[230, 338, 0.01, 0.02]
[226, 338, 0.01, 0.02]
[228, 340, 0.01, 0.02]