# Scroll pHAT special characters

**URL:** <https://forums.pimoroni.com/t/scroll-phat-special-characters/4508>\
**Category:** Support\
**Created:** [April 5, 2017, 7:27pm UTC](https://forums.pimoroni.com/t/scroll-phat-special-characters/4508 "2017-04-05T19:27:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![roberto.sanval](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/roberto.sanval/32/1627_2.png) [@roberto.sanval](https://forums.pimoroni.com/u/roberto.sanval)\
**Post date:** [April 5, 2017, 7:27pm UTC](https://forums.pimoroni.com/t/scroll-phat-special-characters/4508/1 "2017-04-05T19:27:07Z")

</div>

Hello,

how can I add special characters to the Scroll pHAT?

For example:

- Accented words like: “Huracán”
- Spanish characters like: “Otoño”
- Degree symbol for temperature like: 24 ºC

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [April 6, 2017, 3:50pm UTC](https://forums.pimoroni.com/t/scroll-phat-special-characters/4508/2 "2017-04-06T15:50:32Z")

</div>

I see no reason why not, although support for them is currently a little limited.

The font lives in this file: [https://github.com/pimoroni/scroll-phat/blob/master/library/scrollphat/font.py](https://github.com/pimoroni/scroll-phat/blob/master/library/scrollphat/font.py)

The file is a dictionary keyed upon the characters codepoint, currently only in the basic ASCII range, but there’s no reason why you can’t extend it beyond that.

You can ask Python for the correct codepoint for each charatcer like so:

```auto
>>> ord(u"á")
225

```

The values map straight into Scroll pHAT’s buffer. Each number represents a column, and each bit in that number represents a pixel (or row) in that column.

Since you’re limited to 5 pixels tall, you may have some difficulty representing characters with accents, etc, but there’s no harm trying.

---

<div class="post-metadata">

**Author:** ![roberto.sanval](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/roberto.sanval/32/1627_2.png) [@roberto.sanval](https://forums.pimoroni.com/u/roberto.sanval)\
**Post date:** [April 15, 2017, 9:52pm UTC](https://forums.pimoroni.com/t/scroll-phat-special-characters/4508/3 "2017-04-15T21:52:21Z")

</div>

I’ve solved it using this tool [https://github.com/pimoroni/scroll-phat/tree/master/tools](https://github.com/pimoroni/scroll-phat/tree/master/tools)

Thanks!
