@jerry_fuyi I suggest you to add some random logic blocks and then see it in python code - will be much easier to understand mechanics. Ofcourse, coding hardware is useless without event triggers most of time