Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add files via upload #301

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Add files via upload #301

wants to merge 5 commits into from

Conversation

ChMatsch
Copy link

Extension of the encoder to half and quarter steps for encoders that have 2 or 4 detent positions per pulse period.
The configuration takes place when the class instance is created using the constructor. The new parameters are optional, so existing code can continue to be used unchanged.

A special feature emerged with double or quadruple evaluation when using hardware debouncing of the encoder signals via RC element: If the interrupt release occurs during initialization immediately after the port mode has been defined, the capacitor is still empty and is charging. This leads to an unwanted detection of an alleged rotary movement. Therefore the interrupt release must be delayed. For the sake of simplicity, I used the delay() method here, since this is called only once during boot and only during setup.

Extension of the encoder to half and quarter steps for encoders that have 2 or 4 detent positions per pulse period.
The configuration takes place when the class instance is created using the constructor. The new parameters are optional, so existing code can continue to be used unchanged.

A special feature emerged with double or quadruple evaluation when using hardware debouncing of the encoder signals via RC element: If the interrupt release occurs during initialization immediately after the port mode has been defined, the capacitor is still empty and is charging. This leads to an unwanted detection of an alleged rotary movement. Therefore the interrupt release must be delayed. For the sake of simplicity, I used the delay() method here, since this is called only once during boot and only during setup.
@jp112sdl
Copy link
Collaborator

Hast du bei der Button.h die Line-Endings verändert? Im Diff wird das komplette File als Unterschied erkannt

@ChMatsch
Copy link
Author

ChMatsch commented Jul 20, 2022 via email

@stan23
Copy link
Contributor

stan23 commented Jul 20, 2022

Wenn du Notepad++ hast, kannst du dort im Menü Bearbeiten --> Format Zeilenende --> UNIX (LF) wählen, und dann als weitere Version hochladen.
UltraEdit kann das auch:
https://www.ultraedit.com/wiki/Converting_line_terminators

So sieht man den tatsächlichen Unterschied:
https://github.com/pa-pa/AskSinPP/pull/301/files?diff=split&w=1
Damit werden Whitespace Änderungen ignoriert.

@jp112sdl
Copy link
Collaborator

Damit werden Whitespace Änderungen ignoriert.

Cool, den Splitview und Hide Whitespaces im Github kannte ich noch nicht

@ChMatsch
Copy link
Author

ChMatsch commented Jul 20, 2022 via email

@psi-4ward
Copy link
Contributor

Einfach die Datei in deinem fork mit nem neuen commit reparieren.

Line ending fixed
@psi-4ward
Copy link
Contributor

Und jetzt noch das andere file 😉

@ChMatsch
Copy link
Author

ChMatsch commented Jul 20, 2022 via email

@ChMatsch
Copy link
Author

Sehe gerade im Binärvergleich, dass es bei Remote.h genau andersrum ist wie bei Button.h! Dort sind original CR/LF drin und in der neuen Version nun nur noch LF! Krrr.

@ChMatsch
Copy link
Author

Jetzt aber!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants