uint8_t nRFwake(){ pinMode(nRF_SW_EN, OUTPUT); digitalWrite(nRF_SW_EN, LOW); delay(10); digitalWrite(nRF_SW_EN, HIGH); } uint8_t nRFrst(){ pinMode(nRF_RST, OUTPUT); digitalWrite(nRF_RST, LOW); delay(10); digitalWrite(nRF_RST,HIGH); } void setup() { pinMode(nRF_EN, OUTPUT); digitalWrite(nRF_EN, HIGH); nRFrst(); nRFwake(); } void loop() { delay(50000); // give it chance to flash code }