The pointer rotates over a circular consisting of 8 segments. A sensor is assigned to each segment. If the pointer stops at a segment, the corresponding input of the sensor is set.
Write a program that displays a number between 1 and 8 on the 7-segment display when the corresponding sensor is activated.
I0.0 No. 1 to display
I0.1 No. 2 to display
I0.2 No. 3 to display
I0.3 No. 4 to display
I0.4 No. 5 to display
I0.5 No. 6 to display
I0.6 No. 7 to display
I0.7 No. 8 to display
O0.0 1. segment
O0.1 2. segment
O0.2 3. segment
O0.3 4. segment
O0.4 5. segment
O0.5 6. segment
O0.6 7. segment
Ещё видео!