This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BLE Nano printing

I am using the example ble central devices from the SDK 8.1. The example provided prints out to pin 19 (the on-board LED). I wanted to change the functionality to print to an external LED that was attached to a different pin (pin 28). To do this I went into examples/bsp/custom_board.h and replaced each of the instances of pin 19 to pin 28 (by changing the 19's to 28's). After doing this I was surprised to find out that the correct pin was being written to, but it was sending the opposite signal as before. What I mean by this is that the times when pin 19 would be low pin 28 would be high instead. And when pin 19 would have been high pin 28 was low instead. I am wondering what could have caused the LED to flash at the opposite times just by switching which pin it was writing to. How can I go about fixing this?

Related