# Need implementation of SSD1306Ascii in XOD

**URL:** <https://forum.xod.io/t/need-implementation-of-ssd1306ascii-in-xod/4856>\
**Category:** Uncategorized\
**Created:** [February 3, 2021, 7:10pm UTC](https://forum.xod.io/t/need-implementation-of-ssd1306ascii-in-xod/4856 "2021-02-03T19:10:21Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![zdevil](https://avatars.discourse-cdn.com/v4/letter/z/57b2e6/32.png) [@zdevil](https://forum.xod.io/u/zdevil)\
**Post date:** [February 3, 2021, 7:10pm UTC](https://forum.xod.io/t/need-implementation-of-ssd1306ascii-in-xod/4856/1 "2021-02-03T19:10:21Z")

</div>

Hi all!  
I need implementation of OLED1306ASCII library in XOD

> **[greiman/SSD1306Ascii](https://github.com/greiman/SSD1306Ascii)**
>
> Text only Arduino Library for SSD1306 OLED displays

for use with low memory boards  
Can anybody help?

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [February 3, 2021, 8:42pm UTC](https://forum.xod.io/t/need-implementation-of-ssd1306ascii-in-xod/4856/2 "2021-02-03T20:42:07Z")

</div>

[wayland/ssd1306-oled-i2c — XOD](https://xod.io/libs/wayland/ssd1306-oled-i2c/) library already exists, but it wraps Adafruit\_SSD1306 ([GitHub - adafruit/Adafruit\_SSD1306: Arduino library for SSD1306 monochrome 128x64 and 128x32 OLEDs](https://github.com/adafruit/Adafruit_SSD1306)), so it might use too much memory for you. You might be able to use it as a template for creating your own wrapper for the ASCII library even if it doesn’t work for you.

---

<div class="post-metadata">

**Author:** ![zdevil](https://avatars.discourse-cdn.com/v4/letter/z/57b2e6/32.png) [@zdevil](https://forum.xod.io/u/zdevil)\
**Post date:** [February 3, 2021, 8:57pm UTC](https://forum.xod.io/t/need-implementation-of-ssd1306ascii-in-xod/4856/3 "2021-02-03T20:57:18Z")

</div>

i tried using instruction but kept getting error

error: no matching function for call to ‘SSD1306AsciiAvrI2c :: SSD1306AsciiAvrI2c (const DevType \*, uint8\_t &)’  
Type oled = new (mem) SSD1306AsciiAvrI2c (& Adafruit128x64, i2cAddr)

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [February 3, 2021, 9:13pm UTC](https://forum.xod.io/t/need-implementation-of-ssd1306ascii-in-xod/4856/4 "2021-02-03T21:13:05Z")

</div>

Do you have pragma to include the SSD1306Ascii library? That is where that function should be defined. There are general instructions for wrapping IDE libraries [Wrapping Class-based Arduino Libraries — XOD](https://xod.io/docs/guide/wrapping-arduino-libraries/), and the wayland library I linked to above will probably be pretty close to what you want, making it a good template/example.

I’m afraid I can’t help you much beyond that since I don’t have experience with the process.

---

<div class="post-metadata">

**Author:** ![zdevil](https://avatars.discourse-cdn.com/v4/letter/z/57b2e6/32.png) [@zdevil](https://forum.xod.io/u/zdevil)\
**Post date:** [February 3, 2021, 9:17pm UTC](https://forum.xod.io/t/need-implementation-of-ssd1306ascii-in-xod/4856/5 "2021-02-03T21:17:01Z")

</div>

of course  
trouble in → Type oled = new (mem) SSD1306AsciiAvrI2c(&Adafruit128x64, i2cAddr);

#pragma XOD require “[GitHub - greiman/SSD1306Ascii: Text only Arduino Library for SSD1306 OLED displays](https://github.com/greiman/SSD1306Ascii/)”

#include “SSD1306Ascii.h”  
#include “SSD1306AsciiAvrI2c.h”

node {  
meta {  
using Type = SSD1306AsciiAvrI2c\*;  
}

```
uint8_t mem[sizeof(SSD1306AsciiAvrI2c)];
void evaluate(Context ctx) {
    if (!isSettingUp())
        return;
    uint8_t i2cAddr = getValue<input_ADDRESS>(ctx);
    Type oled = new (mem) SSD1306AsciiAvrI2c(&Adafruit128x64, i2cAddr);

    emitValue<output_DEV>(ctx, oled);
}

```

};

---

<div class="post-metadata">

**Author:** ![zdevil](https://avatars.discourse-cdn.com/v4/letter/z/57b2e6/32.png) [@zdevil](https://forum.xod.io/u/zdevil)\
**Post date:** [February 4, 2021, 7:52pm UTC](https://forum.xod.io/t/need-implementation-of-ssd1306ascii-in-xod/4856/6 "2021-02-04T19:52:48Z")

</div>

Solution found

Topic can be closed

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [February 4, 2021, 9:28pm UTC](https://forum.xod.io/t/need-implementation-of-ssd1306ascii-in-xod/4856/7 "2021-02-04T21:28:25Z")

</div>

You are not going to share your solution?

---

<div class="post-metadata">

**Author:** ![zdevil](https://avatars.discourse-cdn.com/v4/letter/z/57b2e6/32.png) [@zdevil](https://forum.xod.io/u/zdevil)\
**Post date:** [February 4, 2021, 9:41pm UTC](https://forum.xod.io/t/need-implementation-of-ssd1306ascii-in-xod/4856/8 "2021-02-04T21:41:00Z")

</div>

Sure.  
When everything is completely ready

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [March 6, 2021, 9:41pm UTC](https://forum.xod.io/t/need-implementation-of-ssd1306ascii-in-xod/4856/9 "2021-03-06T21:41:15Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
