fixed include in pixels.h
replaced some magic numbers
fixed inline assembler code