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

Allow custom GPIO initialization in DeviceSelector #23

Closed
valoni opened this Issue Aug 28, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@valoni
Contributor

valoni commented Aug 28, 2017

on DeviceSelector.h maybe is good to add an option for pins pullup/pulldown declaration for default values (to be included on compile/creation of firmware)

Gpio pins state (pullup,pulldown) declaration of default values states for pins

for example:

_p(a,0) = 1 or _p(a,0) = 0 or _p(a,0)=-1 which will activate (pullup, none, pulldown) or different way
_p(a,0) = u or _p(a,0) = n or _p(a,0)=d

@Arke64

This comment has been minimized.

Show comment
Hide comment
@Arke64

Arke64 Aug 28, 2017

Member

Something like this is possible. We can do it like we do with PWM where we provide some initialization values. Not just pull mode, also drive mode and any other parameters that GPIO on the processor supports.

Member

Arke64 commented Aug 28, 2017

Something like this is possible. We can do it like we do with PWM where we provide some initialization values. Not just pull mode, also drive mode and any other parameters that GPIO on the processor supports.

@Arke64 Arke64 changed the title from Idea for TinyCLR OS Port - about GPIO pins state to Allow custom GPIO initialization in DeviceSelector Aug 28, 2017

@Arke64 Arke64 added this to the v0.7.0 milestone Sep 6, 2017

@Arke64 Arke64 self-assigned this Sep 6, 2017

@Arke64 Arke64 closed this in ef01846 Sep 28, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment