Extracted Method calculateLedFromPixels()

Method calculated the extimated led number the given x value in pixels
corresponds to