Corrected pin arrangements on the drawing and in the code