Arm Mbed OS support forum

BatteryService vs pinout

Hello,
I try to start BatteryService
I write
BLE &ble = BLE::Instance();
BatteryService(ble,100);
What about the pinout ?
Where it is defined ?
Thanks for advance.

I change the pinout in mbed_app.json It’s correct ?
{
“config”: {
“BLUENRG_2_SPI_MOSI”: “PA_7”,
“BLUENRG_2_SPI_MISO”: “PA_6”,
“BLUENRG_2_SPI_nCS”: “PA_2”,
“BLUENRG_2_SPI_RESET”: “PA_4”,
“BLUENRG_2_SPI_IRQ”: “PF_4”,
“BLUENRG_2_SPI_SCK”: “PA_5”
}
}