Update light_ws2812.c

Use pinmask to set the data direction register.