c++ - ESP8266 running code asynchronously -
so i'm building diy game console using esp8266 - using example:
https://github.com/vilaca/handheld-color-console
i have problem music. example console has sequencer class ::play()'s in background using following code:
// enable timer, used play music sequencer async tccr1a = 0; // no options in control register tccr1b = (1 << cs10); // set prescaler divide 8 timsk1 = (1 << ocie1a); // call isr when tcnt2 = ocra2 ocr1a = 0;// set frequency of generated wave sei(); // enable interrupts generate waveform!
https://github.com/vilaca/handheld-color-console/blob/master/arduinotetris/sequencer.cpp
however esp8266 doesn't compile as:
tccr1a , tccr1b avr timer/counter control registers esp8266 not avr / has different architecture.
is possible run code on esp8266 in 'background' ?
Comments
Post a Comment