Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 11 months ago.
Nucleo f401RE and Olimex SHIELD-LCD16x2 through I2C
Hello guys, I am a newbie on this stuff but I am currently trying to get a Olimex shield LCD 16x2 running with a Nucleo f401RE throught I2C. I use the standard commands but nothing appears on the screen. I am trying to print a single character to see if it works at all. Here is some code: <code>
- include "mbed.h"
I2C i2c(D14, D15); these are the SDA and SCL pins on the nucleo
const int addr = 0x30;
int main() { char cmd[2];
cmd[0] = 'A';
while(true){ i2c.write(addr, cmd, 1); }
} </code>
What I think might be the issue is the I2C slave address, I was not able to find anything related to it in the datasheet of the shield. Any help would be appreciated. Thank you