Added delay function, corrected LED GPIO