def calcCurrent(pixels): current = 0 for pixel in pixels: break