This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

OLED WITH I2C

I am using nrf52832 and I am trying to interface OLED with it. I am attaching the code below and i referred that code from https://github.com/devdprj/olednrf here,

i made the changes because it has some file missing. I am not getting any character on display and it remains blank. I tried to change address but doesnt works.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdio.h>
#include "nrf_drv_twi.h"
#include "nrf_delay.h"
#include "i22c.h"
#include "ssd1306.h"
#include "binary.h"
extern uint8_t time_buffer[128];
#define LOGO16_GLCD_HEIGHT 16
#define LOGO16_GLCD_WIDTH 16
static const unsigned char /*PROGMEM*/ logo16_glcd_bmp[] = {
B00000000, B11000000,
B00000001, B11000000,
B00000001, B11000000,
B00000011, B11100000,
B11110011, B11100000,
B11111110, B11111000,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX