From cdcfe9ba7465d8229d23e2e38ffddd221c33e0d0 Mon Sep 17 00:00:00 2001 From: Tanja Sukal Date: Tue, 10 Sep 2024 12:36:43 +0000 Subject: [PATCH] Update 'Follow_the_line/Programs /Read_sensor_values.py' --- Follow_the_line/Programs /Read_sensor_values.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Follow_the_line/Programs /Read_sensor_values.py b/Follow_the_line/Programs /Read_sensor_values.py index 734463b..3940b6b 100644 --- a/Follow_the_line/Programs /Read_sensor_values.py +++ b/Follow_the_line/Programs /Read_sensor_values.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 - +# Version 1.0 from 01/08/23 from time import sleep import ev3dev2 as ev3 from ev3dev2.sensor import INPUT_1,INPUT_2,INPUT_3,INPUT_4 @@ -10,10 +10,10 @@ cs_right = ColorSensor(INPUT_4) cs_left = ColorSensor(INPUT_2) while True: - # printing the values of the right colour sensor + # printing the values of the right color sensor print('Right-Sensor: ','Intensity=', cs_right.reflected_light_intensity,' Color=',cs_right.color) - # printing the values of the left colour sensor + # printing the values of the left color sensor print('Left-Sensor: ','Intensity=', cs_left.reflected_light_intensity,' Color=',cs_left.color) sleep(1) #the values are printed every second