Table of Contents

setirthreshold()

Function Definition: setirthreshold(set_sensor = 'left', set_value = 750)

Parameters

NameTypeDescriptionExpected ValuesDefault Value
set_sensorstringSet sensor of robot'left', 'right''left'
set_valueintSet average value of IR750750

Description

Using this function, you can set the IR threshold for the default IR sensor or the one that connects to an analog pin.

setirthreshold(‘left’,1200)

Example

There are no examples documented for this article.