Thanks @felmue. When I looked at your code I realised my mistake. I'd been treating the RGB LED as a simple LED, not an RGB. I should have read the spec sheet! It's all working as expected. I have also managed to get the M5Stamp attached to Blynk. Tony