Lighting apparatus and driving circuit including frequency dithering and slope compensation