-
-
Notifications
You must be signed in to change notification settings - Fork 178
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 GPIO ChangeCounter #1421
Add GPIO ChangeCounter #1421
Conversation
Hi @AdrianSoundy, I'm nanoFramework bot. A human will be reviewing it shortly. 😉 |
method_lookup, | ||
"Windows.Devices.Gpio", | ||
0xD7F65BB7, | ||
method_lookup, | ||
{ 100, 1, 0, 0 } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need version bumped
Nice improvement!! 👏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
(cherry picked from commit c5b419a)
Description
Adds the Gpio ChangeCounter implementation for ESP32
Only as an input device using the internal hardware Counters available on the ESP32.
Output GPIO will give a NOT SUPPORTED exception.
Uses a 1 micro second timer for the relative timestamp thats available on ESP32.
For other devices have added empty file with the init returning NOT SUPPORTED exception.
Also requires change to Windows.Devices.Gpio
How Has This Been Tested?
Tested with a sample program with a PWM channel looped back on to the input pin.
As it implemented in hardware it supports a high frequency input signal.
Tested with 10Mhz & 1000hz
Have a sample program i will add later.
Types of changes
Checklist:
Signed-off-by: adriansoundy adriansoundy@gmail.com