This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:multiasm:exercisesbook:avr:sut:scenarios:avr5 [2026/05/04 13:25] – pczekalski | en:multiasm:exercisesbook:avr:sut:scenarios:avr5 [2026/05/04 13:27] (current) – pczekalski | ||
|---|---|---|---|
| Line 133: | Line 133: | ||
| ret | ret | ||
| </ | </ | ||
| - | <note tip> | + | <note tip> |
| + | ** Step 5 **\\ | ||
| + | Set the main loop. Here you're on your own, but the hint for the algorithm to have a real heartbeat is as follows: | ||
| + | < | ||
| + | loop infinitely: | ||
| + | // --- First beat (Lub) --- | ||
| + | pulse() | ||
| + | delay(200) | ||
| + | |||
| + | // --- Second beat (Dub) --- | ||
| + | pulse() | ||
| + | delay(750) | ||
| + | </ | ||
| ** Result validation **\\ | ** Result validation **\\ | ||