Here you will find various programs/firwares codeded with Arduino IDE (C++) NB: these were made using an esp32, there might be a need to modify the code to have it work properly with your devices.