Skip to content

Commit

Permalink
[Docs] mention pin_t changes in README change log
Browse files Browse the repository at this point in the history
  • Loading branch information
tttapa committed Nov 3, 2024
1 parent caf2b29 commit f77680f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,17 @@ documentation page for a table with supported features per board.

### 2.x

- ([7bd5268](https://github.com/tttapa/Control-Surface/commit/7bd5268fe8906ba4fbd01024fbddc8598ffd9eb3))
The `pin_t` type is now a distinct type rather than an alias to an integer.
This improves type safety, because `pin_t` is no longer implicitly
convertible to an integer (although integers are still convertible to
`pin_t`), and it is no longer possible to accidentally use incorrect
constructs such as `mux.digitalRead(mux.pin(0))`. A new type, `pin_int_t`,
was added to represent sizes and offsets of pins (e.g. “the sixth pin of this
multiplexer)”, and the argument types of the member functions of the
ExtendedIOElement class have been modified accordingly. If you were using a
class that inherited from ExtendedIOElement, you should update the signatures
of any overridden methods.
- ([b0f4d63](https://github.com/tttapa/Control-Surface/commit/b0f4d636838b12907bea6cf989d20760a8a998bf))
Replace `MIDI_Notes::X(n)` by `MIDI_Notes::X[n]` to avoid issues with the Arduino `F(...)` macro.
- ([7b0eee1](https://github.com/tttapa/Control-Surface/commit/7b0eee16f15d730f0d68f6e38e6a60c634d861ad))
Expand Down

0 comments on commit f77680f

Please sign in to comment.