|
|
The pointer rotates over a circular consisting of 12 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 12 on the 7-segment display when the corresponding sensor is activated.
- 12 sensors for detecting in what of the 12 partial areas the pointer of the analogue dial is located, i.e. what number is to be displayed?
- 7 actuators for display of the 7 luminous segments of the “units digit”.
- 1 actuator for display of the double segment of the “tens digit”.