Quantcast
Channel: fritzing forum - Latest topics
Viewing all articles
Browse latest Browse all 5416

Text display problem on an oled screen

$
0
0

Hello everyone I have a school project to set up and I would like to know if it would be possible to integrate the whole text on the screen with the u8x8 library I use a 128x128 screen here is the result I would like to have

here is the result I have on my screen

Here is the code I use

#include <Arduino.h>
#include <U8x8lib.h>

#ifdef U8X8_HAVE_HW_SPI
#include <SPI.h>
#endif
      
U8X8_SSD1306_128X64_ALT0_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); 	     

void setup(void)
{
  u8x8.begin();
  u8x8.setPowerSave(0);
}

void loop(void)
{
  u8x8.setFont(u8x8_font_chroma48medium8_r);
  u8x8.drawString(0,1,"ed nibh tincidunt feu giat. Maecenas enim massa, fringilla sed malesuada");
  u8x8.refreshDisplay();
  delay(2000);
}

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 5416

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>