Skip to content

Commit

Permalink
Issue_162: Prepare optional feature ROTARY_ENCODER for Nano Every
Browse files Browse the repository at this point in the history
  • Loading branch information
boerge1 committed Jan 21, 2024
1 parent ffc678d commit e8cc4f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ Die SD Karte (Ordner mp3 und advert) hat sich gegenüber der Version 3.1.2 geän
# Change Log

## Version 3.1.5 (21.01.2024)
- [Issue 162](https://github.com/tonuino/TonUINO-TNG/issues/162): Prepare optional feature ROTARY_ENCODER for Nano Every
- [Issue 160](https://github.com/tonuino/TonUINO-TNG/issues/160): Improve the description for platform.io in the Readme

## Version 3.1.5 (12.12.2023)
## Version 3.1.5 (21.01.2024)
- [Issue 153](https://github.com/tonuino/TonUINO-TNG/issues/153): Some improvements of the DF Player handling
- [Issue 149](https://github.com/tonuino/TonUINO-TNG/issues/149): Add possibility to reset the current track on hoerbuch mode
- [Issue 148](https://github.com/tonuino/TonUINO-TNG/issues/148): New handling of prev and next button on first and last track
Expand Down
8 changes: 6 additions & 2 deletions src/constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
*/
//#define DISABLE_SHUTDOWN_VIA_BUTTON

/* uncomment the below line to enable the rotary encoder for volume setting (only for AiOplus)
* um den Drehgeber zu unterstützen bitte in der nächste Zeile den Kommentar entfernen (nur für AioPlus)
/* uncomment the below line to enable the rotary encoder for volume setting (only for AiOplus and Nano Every)
* um den Drehgeber zu unterstützen bitte in der nächste Zeile den Kommentar entfernen (nur für AioPlus und Nano Every)
*/
//#define ROTARY_ENCODER
#ifdef ALLinONE_Plus
Expand All @@ -55,6 +55,10 @@
inline constexpr uint8_t rotaryEncoderClkPin = 36; // PF2
inline constexpr uint8_t rotaryEncoderDtPin = 37; // PF3
#endif // ALLinONE_Plus
#ifdef TonUINO_Every
inline constexpr uint8_t rotaryEncoderClkPin = 8; // D8
inline constexpr uint8_t rotaryEncoderDtPin = 6; // D6
#endif // TonUINO_Every


/* uncomment the below line to enable the poti for volume setting
Expand Down

0 comments on commit e8cc4f4

Please sign in to comment.