Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use Software I2C with this library? #137

Open
papsukkal09 opened this issue Feb 21, 2022 · 2 comments
Open

How to use Software I2C with this library? #137

papsukkal09 opened this issue Feb 21, 2022 · 2 comments

Comments

@papsukkal09
Copy link

papsukkal09 commented Feb 21, 2022

Please provide the following information:

library version 1.8.2

LCD display type ssd1306

Steps to reproduce the issue

Expected behavior

Actual behavior

How can I define software I2C with this library on arduino uno (atmega328p).

#define CONFIG_SOFTWARE_I2C_AVAILABLE
#define CONFIG_SOFTWARE_I2C_ENABLE

I used this defination but it does nothing.

In Readme file writes if I want to change I2C pins, I can do it with API. Which API and how can I use I didnt understand .

@lexus2k
Copy link
Owner

lexus2k commented Mar 10, 2022

Hi,

you need manually initialize software i2c via void ssd1306_i2cInit_Embedded(int8_t scl, int8_t sda, uint8_t sa);

@ishyesh
Copy link

ishyesh commented Oct 13, 2023

First, insert
#include "intf/i2c/ssd1306_i2c.h into ssd1305.h.

Also, looking at the source, for Arduino Uno 328p, you have to use ports on PORTC. (ssd1306_i2c_embedded.c).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants