/* Copyright © 2020 tyrolyean * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "sound.h" #include "dac.h" void update_sound(){ static unsigned long long audio_time = 0; audio_time++; if(!(audio_time%2000)){ dac_mode++; if(dac_mode > DAC_MODE_NOISE){ dac_mode = 1; } } return; }