/** * @file piezoSpeaker.c * @author Trevor Barnes * @brief Provides funtionality for initializing, playing notes, and playing songs on the piezo speaker. * @version 0.1 * @date 2022-01-12 * * @copyright Copyright (c) 2022 * */ #include #include #include "piezoSpeaker.h" #include "delay.h" void piezo_init(){ // GPIOB/Timer3 enable in RCC *RCC_AHB1ENR |= (1<