Skip to content

Commit

Permalink
Fix another part of the pwm bug on 8-pin parts
Browse files Browse the repository at this point in the history
  • Loading branch information
SpenceKonde committed Feb 26, 2021
1 parent 4bb071c commit 5eafaad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Changes listed here are checked in to GitHub ("master" branch unless specificall
## Released Versions
### 2.2.9
* Correct critical regression impacting PWM via TCA0 WO3, WO4, and WO5. (#335)
* Correct canShow() in tinyNeoPixel to permit use when micros() is not available - skip the test and #warn the user that they must make sure that they don't call show() too frequently. WS2812-alikes need 50us pause (according to datasheet - internet says only 20us) in the data between consecutive frames to tell them that it's time to latch the data they got, and if they don't see that before you start blasting out more data, they'll think it's part of the same stream and never turn on.
* Correct canShow() in tinyNeoPixel to permit use when micros() is not available - skip the test and #warn the user that they must make sure that they don't call show() too frequently. WS2812-alikes need 50us pause (according to datasheet - internet says only 20us) in the data between consecutive frames to tell them that it's time to latch the data they got, and if they don't see that before you start blasting out more data, they'll think it's part of the same frame and never turn on.
* Correct bug in RTC millis timekeeping that caused reverse time travel due to improper guarding against overflow during millis() processing. Also, it's an average of 1-2 us closer to the actual number now (neglecting any contribution from oscillator inaccuracy - which is of course orders of magnitude higher) (#331)


Expand Down
2 changes: 1 addition & 1 deletion megaavr/cores/megatinycore/wiring_analog.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ void analogWrite(uint8_t pin, int val) {
/* Calculate correct compare buffer register */
#ifdef __AVR_ATtinyxy2__
if (bit_mask == 0x80) {
bit_mask == 1; //on the xy2, WO0 is on PA7
bit_mask = 1; //on the xy2, WO0 is on PA7
}
#endif
uint8_t offset=0;
Expand Down

0 comments on commit 5eafaad

Please sign in to comment.