Hi PJ,
Thanks for trying. English is not my first language, so I am not sure what you mean. I have a few questions.
My 2.9.1 has the moded #1/30 pins.h as b4.
1.Do you mean that you have “pins.h” in your “variants” directory?
2.What is “b4”?
3.Is the structure of “variants” directory “\Arduino15\packages\Seeduino\hardware\mbed\2.9.1\variants\SEEED_XIAO_NRF5284” different from yours?
4.Why do you use 2.466 instead of 2.4 in getBattery()?