I am trying to connect a vibration motor to an arduino nano 33 BLE. I am connecting the motor to D6 and GND. The arduino is powered by the usb to the laptop, which should not be a problem.
But after uploading a code, which I am also uploading here and changing digital pins the motor does not vibrate.
int motorPin = 6;
pinMode(motorPin, OUTPUT );