# Unicorn pHAT RGB wrong way round

**URL:** https://forums.pimoroni.com/t/unicorn-phat-rgb-wrong-way-round/16704
**Category:** Support
**Created:** [March 22, 2021, 5:01pm UTC](https://forums.pimoroni.com/t/unicorn-phat-rgb-wrong-way-round/16704 "2021-03-22T17:01:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dmorganstein](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@dmorganstein](https://forums.pimoroni.com/u/dmorganstein)
#### Post date: [March 22, 2021, 5:01pm UTC](https://forums.pimoroni.com/t/unicorn-phat-rgb-wrong-way-round/16704/1 "2021-03-22T17:01:18Z")

</div>

Have a Unicorn pHAT as part of the mood light kit.  
Used a Hammer Header on the pHAT + Pi Zero WH.  
If use set\_pixel command RGB seems to work fine (ie first number sets red etc).

However if use a for loop to set the whole HAT - using the code from the intro tutorial, RGB are the wrong way round, so to get a red light have to use (x,y,0,0,255) for example.

What am I doing wrong?  
I thought it might be a loose connection at first, but all pixels give “correct” colour if set individually.
