Skip to content
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

configurable pins #22

Open
ponty opened this issue Apr 3, 2017 · 0 comments
Open

configurable pins #22

ponty opened this issue Apr 3, 2017 · 0 comments

Comments

@ponty
Copy link

ponty commented Apr 3, 2017

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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant