Skip to content

Commit

Permalink
Update ChangeLog.md
Browse files Browse the repository at this point in the history
wtf, those changes werent in megatinycore..
  • Loading branch information
SpenceKonde authored Feb 21, 2021
1 parent 9c1be34 commit 185de99
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ Changes listed here are checked in to GitHub ("master" branch unless specificall
* Correct critical bug that prevented bootloaders from being installed when using the pyupdi-style serial port and resistor. Would report success, but only fuses were set.
* Fix bug where the INVEN bit would be unset when doing digitalWrite() on pins that can do TCD PWM; now it is only unset if PWM was actually turned off (which in turn implies that if it was inverted, that was done by analogWrite(pin,255) - that's how we can generate a continuous HIGH output without disconnecting the timer (which would produce a glitch on the other pwm channel)- we set the compare value higher than TOP (which would produce continuous low) and invert the pin.
* In the process of above, found both a terribly inefficient bit of code in analogWrite and turnOffPWM, and replaced with a much faster implementation that saves some flash too! By switching to bit_mask for most calculations a variable shift which could run as many as 7 iterations at 4 clocks each was eliminated from analogWrite. A loop that could
* Correct multiple bugs in takeOverTCAn() functions, which were missed during testing (How, I'm not sure, some of them were far from subtle)
* Add openDrain(), openDrainFast() - called with two arguments, a pin, and either LOW, CHANGE, or FLOAT. (FLOAT is simply #defined as equal to HIGH). These are the direction-only homolog to digitalWrite() which only operates on output val (ie, PORTx.DIR vs PORTx.OUT). The full size (but not the Fast version) sets the pin's output valure to 0 as well - thus, if you use the non-fast one the first time you call it, you can subsequently use the fast version and not worry about it slipping up and driving the pin HIGH. These do not change the pullup configuration.
* Correct constrain, round and similar macros.

### 2.2.7
Expand Down

0 comments on commit 185de99

Please sign in to comment.