Open josephernest opened 4 years ago
Would there be a way to make 31250 work for ATtiny45 at 8 Mhz?
I don't know. I've made my MIDI projects only with ATmega32U4 and ESP8266. See my comment: https://github.com/SlashDevin/NeoSWSerial/pull/13#commitcomment-35478778
Currently the code doesn't allow 31250 with 8 Mhz CPU. What is it so @jarosz ?
I tested to remove the CPU speed test in
and
and it compiles, but indeed, the output is not good.
Would there be a way to make 31250 work for ATtiny45 at 8 Mhz?
Thanks a lot, and congratulations again for this great project @SlashDevin @jarosz.
PS: I also tested to use the ATtiny45 at 16 Mhz, but then
generates an error. I tried replacing
PCIFR
byGIFR
andTCNT0
byTCNT1
like in the next lines for ATtiny45, but no success.PS2: I also tried, when using 8 Mhz CPU, to divide by 2 these constants, but without success: