User manual

block corresponds to the one from the programme from yesterday.
Script block for display of a number
Day 18
Today on the Advent calendar
220-ohm resistor (red-red-brown)
This resistor will not be needed until the next few days.
Random die roll with 7-segment indicator
Components: 1xbreadboard, 1x7-segment indicator, 8x220-ohm resistor (red-red-brown), 1x 20-Mohm resistor (red-black-blue), 2x clay
contact, 11xconnection cable, 1xinsulated jumper
The circuit is largely the same as that from Day 17. The decimal point of the 7-segment indicator is also connected here.
The programme
In addition to a classic six-sided die, the programme also simulates dice with two to nine sides, such as a coin toss. You can adjust the value of
the variable w using a sliding switch on the platform. This gives the highest value of the potential number range.
When one touches the clay contact, the last result is first deleted from the display. To this end, the main programme sends the message off,
which starts a script block that switches off all LED segments in one loop.
This block clears the 7-segment indicator.
Then the die appears to roll, which is simulated by the flashing of the decimal point on the 7-segment indicator. When one releases the contact,
a random number appears that is displayed again via the script block you already know.
Script block for display of a number
Day 19
Today on the Advent calendar
2xconnection cables
These connection cables will not be needed until the next few days.
Level indicator with 7-segment indicator
Components: 1xbreadboard, 1x7-segment indicator, 7x220-ohm resistor (red-red-brown), 1x 15-kohm potentiometer, 10xconnection cable,
2xinsulated jumper
The analogue value of a potentiometer is represented in this level indicator as a digit between 0 and 9.
The programme
This time the programme contains only one script block, which also contains the loop for displaying the digits on the 7-segment indicator. The
potentiometer can deliver different values in quick succession by being turned slightly. Because no external routine is called up to represent the
number, there is also no risk of timing problems if the number is not yet fully displayed and a new value is already read from the potentiometer.
The programme 19_7seg04 delivers a level indicator on the 7-segment indicator.