I have modified two files in Vertex-Nano-Firmware-master for controlling the cooling fan with standard M106 G-code.
File 1: Marlin-main.cpp
Find the function "set_led_brightness"
// Set led brightness according to current variable
void set_led_brightness()
{
analogWrite(7, map(vertexLedBrightness, 0, 100, 0, 255));
}
and then just put a comment before the AnalogWrite statement:
void set_led_brightness()
{
// analogWrite(7, map(vertexLedBrightness, 0, 100, 0, 255));
}
File 2: pins_K8600.h
Change
#define FAN_PIN 8
to
#define FAN_PIN 7
And then compile and upload to board. I used Arduino IDE ver 1.8.1
The LED can be connected to the 12V pin located near the connector for the internal fan.
Have fun
Niels