(C)stachan 08.02.2024

Task :: Fibonacci v1

fibonacci

Das Programm soll im Takt 1T=60000 die Fibonacci-Folge ausgeben. Sobald die Zahl 89 erreicht ist, soll die Folge wieder bei 0 beginnen und die rote LED leuchtet für 0,5T, danch die gelbe (0,5T) und zum Schluss die grüne (1T).

Wird der rote Button gedrückt, wird der Text “Fibonacci Folge” ausgegeben und die grüne LED leuchtet für 1T.


The program should output the Fibonacci sequence in intervals of T1=60000. As soon as the number 89 is reached, the sequence is to start at 0 again and the red LED lights up for 0,5T, the the yellow LED (0,5T), and finally the green LED (1T).

If the red button is pressed, the text “Fibonacci sequence” is output and the green LED lights up for 1T.