More complex, complete examples that do several things at once

Using interrupts would be a simple way to achieve that.