I have tried helping myself by using the PWM.h library,
If anyone could help me, I would be so grateful.
bool success = SetPinFrequencySafe(led1, frequency2);
pwmWrite (led2, 100); // the original code had a second variable in the brackets .... I am guessing this sets the duty ratio so set 100??
But doesn't actually specify what uint8_t val is.