I am using mosfet to control the brightness of the LED.
used Mega, Due, and Teensy4.1
When using the Mega, the brightness of the LED was very bright, and when using the Due and Teensy4, the brightness of the LED was reduced by half.
I think it's the result of the difference in pin voltage.
I tried adjusting the PWM frequency, but that didn't work. ( 15bit 4577.64hz ~ 8bit 585937.5hz )
When the voltage supplied to the MOSFET is 5v and the voltage of the Arduino is 3.3v, do I need to connect a diode?