-
Notifications
You must be signed in to change notification settings - Fork 517
Add pinMode type #583
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 pinMode type #583
Conversation
The source of the firmata library is written assuming that the definition of INPUT is 0 and OUTPUT is 1, so I modified it to maintain compatibility. |
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.
Thank you for the PR, it is indeed much easier to work with other libraries, since they expect the norm value. It is a bit more work with switch case, but compatible is more important.
Hi, which file should I include to be able to use OUTPUT_H0H1 in my sketch? I included <bluefruit.h> but Arduino is not happy yet.
|
@ogatatsu @hathach
. pg156 nRF52832 Product Specification pdf |
Hi
It still doesn't work in version 0.21.0. I think it will work from the next version.
How about this snippet?
|
Hi @ogatatsu , |
There has been quite a few PRs that have been merged in. However, I suspect a release is no-where close because of issue #600 |
@ladyada |
this isnt an issue, its a PR - if you hav an issue you can open one, we have no guarantees of support for PRs made by others. you should probably just use a transistor to power the sensor not a pin. |
@ladyada |
I have a similar issue with hardware PWM. In this case, I am using a transistor (Mosfet) to drive my load, however, due to the relatively high input capacitance of the MOSFET, I'd like to use OUTPUT_H0H1 to decrease my slew rate. I tried the method @ogatatsu suggested as well as: nrf_gpio_cfg(ulPin, from: #361 (use high drive H0H1 for SCK and MOSI for better performance at highseed 32Mhz) and it compiles and runs as before, with no change in the slew rate. I did check hardwarePWM.ccp to see if did another pinMode and it didn't appear to Any other thoughts for workarounds? Jeff
|
Add the following pinMode types