#include "pwmclass.h" #include "fifo.h" #include "player.h" #include "GsmDecoder.h" //////////////////////////////////////////////////////// /* Demo, které jen počítá od 0 do 1000000. Výstup je PWM * na pinech PA1/PA8 24kHz. Odvozeno a teploměru na * https://github.com/Kizarm/TTSCP_Client/tree/main/kecal/stm * * Tohle se do CH32V003 prostě nevejde. */ //////////////////////////////////////////////////////// static PwmClass pwm; static FIFO fifo; static TextPlayer player (fifo); static GsmDecoder decoder(fifo); int main () { pwm.attach(decoder); int pass = 0u; for (;;) { player.say(pass++); pwm.delay (); } return 0; }