# Microdot-phat rotated 180 degrees but set\_decimal does not rotate

**URL:** https://forums.pimoroni.com/t/microdot-phat-rotated-180-degrees-but-set-decimal-does-not-rotate/11035
**Category:** Support
**Created:** [July 20, 2019, 9:12pm UTC](https://forums.pimoroni.com/t/microdot-phat-rotated-180-degrees-but-set-decimal-does-not-rotate/11035 "2019-07-20T21:12:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![wilco.kuijt](https://avatars.discourse-cdn.com/v4/letter/w/34f0e0/32.png) [@wilco.kuijt](https://forums.pimoroni.com/u/wilco.kuijt)
#### Post date: [July 20, 2019, 9:12pm UTC](https://forums.pimoroni.com/t/microdot-phat-rotated-180-degrees-but-set-decimal-does-not-rotate/11035/1 "2019-07-20T21:12:05Z")

</div>

Hello all,

I modified the source of the clock ([https://github.com/pimoroni/microdot-phat/blob/master/examples/clock.py](https://github.com/pimoroni/microdot-phat/blob/master/examples/clock.py)) and added set\_rotate180(True) to use the display upside down.  
Unfortunately the set\_decimal does not rotate?  
[http://docs.pimoroni.com/microdotphat/reference/python.html#microdotphat.set\_rotate180](http://docs.pimoroni.com/microdotphat/reference/python.html#microdotphat.set_rotate180)

I tried to set the pixels next to the characters but did not succeed.

Does someone have any ideas?

Best regards,  
Wilco

---

<div class="post-metadata">

### Author: ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)
#### Post date: [July 20, 2019, 10:48pm UTC](https://forums.pimoroni.com/t/microdot-phat-rotated-180-degrees-but-set-decimal-does-not-rotate/11035/2 "2019-07-20T22:48:44Z")

</div>

Looking at the LED matrix, the decimal is an extra LED all on its own in the corner. Rotating the LED Matrix is going to put it in the wrong spot. Thats likely why it doesn’t rotate. It can only ever be in that one physical location.

> **[LTP-305 LED matrix (pair) – Pimoroni](https://shop.pimoroni.com/products/led-module-pair?variant=25455044487)**
>
> The Lite-On LTP-305 LED matrices have quite a heritage! They were first developed in 1971 by Texas Instruments, but subsequently have been manufactured by Lite-On.

Using set pixel it would have to be one of the ones in the regular matrix. And you would have to allow for the display being upside down when you enter X Y Z. Plus, if the number being displayed actually used that LED, your not going to see it. It will already be lit up.

---

<div class="post-metadata">

### Author: ![wilco.kuijt](https://avatars.discourse-cdn.com/v4/letter/w/34f0e0/32.png) [@wilco.kuijt](https://forums.pimoroni.com/u/wilco.kuijt)
#### Post date: [July 22, 2019, 10:53am UTC](https://forums.pimoroni.com/t/microdot-phat-rotated-180-degrees-but-set-decimal-does-not-rotate/11035/3 "2019-07-22T10:53:47Z")

</div>

Ah, thanks alphanumeric.

It was my mistake by thinking there was a colum of dots/decimals in between every LED matrix.  
Reading your answer and checking the datasheet I noticed my mistake.

Best regards,  
Wilco

---

<div class="post-metadata">

### Author: ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)
#### Post date: [July 22, 2019, 11:05am UTC](https://forums.pimoroni.com/t/microdot-phat-rotated-180-degrees-but-set-decimal-does-not-rotate/11035/4 "2019-07-22T11:05:57Z")

</div>

Stuff happens, thats the way it goes some times. I have the display flipped 180 on my sense hat led matrix. I’m displaying scrolling text though, and its an 8 x 8 matrix, so its fine with no hidden issues.  
It messed up the Sense Hat joystick though, I had recode all my functions, up was now down etc.
