/* * activity13.c * * Created on: Nov 18, 2025 * Author: sowgro */ #include #include #include "systick.h" //write 1s for half the freq and 0s for the other half void play_freq(uint8_t hz) { uint32_t rollover =herz_to_systicks(hz); int count = systick_get_count(); if ((count % rollover) < (rollover >> 1)) printf("1"); else printf("0"); } void activity13_run() { init_systick(); for(;;) { play_freq(1); } }