I have old code that I previously used on an Arduino Nano succesfully. Now I wanted to transition to an "Adafruit Feather nRF52840 express", but the board does not execute the following commands, like the Nano did. Here is the code:
Code: Select all
#include <Adafruit_TinyUSB.h>
void setup() {
pinMode(2, OUTPUT);
Serial.begin(9600);
}
void loop() {
digitalWrite(2, HIGH);
delay(5000);
Serial.println("Ontime over, now Dim");
analogWrite(2, 64);
delay(2500);
Serial.println("Dimtime over, now ON");
}