# Help with Unicorn HAT Mini, unable to recognize, (error device.no\_cs = true)

**URL:** <https://forums.pimoroni.com/t/help-with-unicorn-hat-mini-unable-to-recognize-error-device-no-cs-true/26991>\
**Category:** Support\
**Created:** [January 4, 2025, 1:09am UTC](https://forums.pimoroni.com/t/help-with-unicorn-hat-mini-unable-to-recognize-error-device-no-cs-true/26991 "2025-01-04T01:09:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mccann.kristian](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@mccann.kristian](https://forums.pimoroni.com/u/mccann.kristian)\
**Post date:** [January 4, 2025, 1:09am UTC](https://forums.pimoroni.com/t/help-with-unicorn-hat-mini-unable-to-recognize-error-device-no-cs-true/26991/1 "2025-01-04T01:09:35Z")

</div>

Hello,

This is my first project on a raspberry pi, please excuse me as a novice. I ran through the Pimoroni guide on a Raspberry Pi 5 with a fresh OS install and update. ([Getting Started with Unicorn HAT Mini](https://learn.pimoroni.com/article/getting-started-with-unicorn-hat-mini)). Installed the python libraries, SPI is enabled, however I could not get the examples to run. I went ahead and followed the next step in the guide, trying to program via REPL the following line takes issue when defining the hat:

```auto
unicornhatmini = UnicornHATMini()

```

The shell issues a traceback: `device.no_cs = True`

Any suggestions on what I can do would be greatly appreciated!

-Kris

---

<div class="post-metadata">

**Author:** ![stratocastom](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/stratocastom/32/11487_2.png) [@stratocastom](https://forums.pimoroni.com/u/stratocastom)\
**Post date:** [February 21, 2025, 2:44pm UTC](https://forums.pimoroni.com/t/help-with-unicorn-hat-mini-unable-to-recognize-error-device-no-cs-true/26991/2 "2025-02-21T14:44:54Z")

</div>

I’ve come across the same issue, were you able to find a fix?

From what I’ve found, the Pi 5 GPIO has been updated and doesn’t work with libs used by the unicorn lib (possibly RPi.GPIO).

---

<div class="post-metadata">

**Author:** ![mccann.kristian](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@mccann.kristian](https://forums.pimoroni.com/u/mccann.kristian)\
**Post date:** [February 21, 2025, 4:15pm UTC](https://forums.pimoroni.com/t/help-with-unicorn-hat-mini-unable-to-recognize-error-device-no-cs-true/26991/3 "2025-02-21T16:15:38Z")

</div>

I was told by customer support that the issue is with the OS update to Bookworm. The solution they suggested is to flash using the old OS Bullseye. I haven’t gotten around to it but I’ll let you know if I can get anything to work.

---

<div class="post-metadata">

**Author:** ![stratocastom](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/stratocastom/32/11487_2.png) [@stratocastom](https://forums.pimoroni.com/u/stratocastom)\
**Post date:** [February 24, 2025, 6:33pm UTC](https://forums.pimoroni.com/t/help-with-unicorn-hat-mini-unable-to-recognize-error-device-no-cs-true/26991/4 "2025-02-24T18:33:20Z")

</div>

Ah damn.

I’ve just migrated a home server from a Pi 4 to a 5, and not sure I have the patience/remaining sanity to roll back the OS!
