I have not used the Seeed nRF52840, but I think it works similar to ESP32, can you check if these codes work?