Re: nrf52 overlay file to reconfigure GPIO for buttons and leds


frv
 

Hi,

I'm getting further but not completely there.

So I added these changes to my overlay file:

&button0 {
          gpios = <&gpio0 4 GPIO_PUD_PULL_UP>;
          label = "Normal call button";
        };
 
&button1 {
          gpios = <&gpio0 5 GPIO_PUD_PULL_UP>;
          label = "Assistance call button";
        };
 
&button2 {
          gpios = <&gpio0 6 GPIO_PUD_PULL_UP>;
          label = "Yellow call button";
};

I remapped for uart0 the pins to:

&uart0 {
     tx-pin  = <22>;
     rx-pin  = <23>;
     cts-pin = <24>;
     rts-pin = <25>;
     #status = "disabled";
};

I can control button0 which is now mapped to pin 4 but the  button1 and button2 which are resp. mapped to 5 and 6 I can't get to work.
Could it be that the pins 5 and 6 don't support GPIO pull_up?

Thanks,
Br,
Frank
 
 

Join devel@lists.zephyrproject.org to automatically receive all group messages.