sound works

This commit is contained in:
2024-04-17 15:30:45 +02:00
parent d68dae167d
commit 36d3b2f735
16 changed files with 165 additions and 167 deletions

View File

@ -1,3 +1,4 @@
#include <stdint.h>
#include "sound.h"
#include "spi.h"
@ -7,10 +8,10 @@ void soundInit() {
}
void soundCtrl(t_SoundCmd cmd) {
void soundCtrl(uint8_t cmd) {
spiSendBegin(e_SPI_SOUND);
spiSendOctet((uint8_t)cmd);
spiSendOctet(cmd);
spiSendEnd(e_SPI_SOUND);
}