ble-x-nucleo-idb0xa1 icon indicating copy to clipboard operation
ble-x-nucleo-idb0xa1 copied to clipboard

configurable pins

Open ponty opened this issue 7 years ago • 0 comments

It would be more flexible to have configurable pins instead of hardcoded pins because:

  • IDB0XA1_D13_PATCH is confusing
  • there are other alternate pins on X-NUCLEO-IDB05A1 (CS, IRQ)
  • custom designed boards can have different pins
  • it is nice to see the pin definitions in the main program

I would like to move this code block in my main program without changing the lib:

BlueNRGDevice bluenrgDeviceInstance(IDB0XA1_PIN_SPI_MOSI,
                                    IDB0XA1_PIN_SPI_MISO,
                                    IDB0XA1_PIN_SPI_SCK,
                                    IDB0XA1_PIN_SPI_nCS,
                                    IDB0XA1_PIN_SPI_RESET,
                                    IDB0XA1_PIN_SPI_IRQ);

ponty avatar Apr 03 '17 08:04 ponty