Hi
I'm working on a project to drive a DC motor, I really didn't find any example. I would like to know how can I program a pin in Keil, and I would be happy to have a simple example about it.
By the way Im using NRF51 DK.
Bests,
Hi
I'm working on a project to drive a DC motor, I really didn't find any example. I would like to know how can I program a pin in Keil, and I would be happy to have a simple example about it.
By the way Im using NRF51 DK.
Bests,
Hey Guys Thank you for your helps but one remaining issue about blinky example is that, it use a pre-defined functions to configure leds pin.
I really need a simple example which goes directly to gpio.h and shows how to work with this library
We do not have such an example. But it would be quite easy to port the code you just wrote, by looking at the nrf_gpio.h
file. The equivalent to PORTA/B/C/D
on an AVR would be NRF_GPIO->OUT
. Just remember that this is 32 bit.
The equivalent to _delay_ms()
is nrf_delay_ms()
We do not have such an example. But it would be quite easy to port the code you just wrote, by looking at the nrf_gpio.h
file. The equivalent to PORTA/B/C/D
on an AVR would be NRF_GPIO->OUT
. Just remember that this is 32 bit.
The equivalent to _delay_ms()
is nrf_delay_ms()