PAT9125 on KL46Z
Dependencies: pat9125_mbed mbed
Diff: main.cpp
- Revision:
- 1:73967d37f487
- Parent:
- 0:411244c71423
- Child:
- 2:4fb710ae08dd
- Child:
- 9:53b4b362cbb8
diff -r 411244c71423 -r 73967d37f487 main.cpp --- a/main.cpp Tue Oct 03 07:26:38 2017 +0000 +++ b/main.cpp Tue Oct 17 09:23:10 2017 +0000 @@ -25,6 +25,8 @@ Serial pc(USBTX, USBRX); +#define I2C_SDA_PIN I2C_SDA0 +#define I2C_SCL_PIN I2C_SCL0 //DigitalIn sdaDummy(I2C_SDA0, PullUp); //DigitalIn sclDummy(I2C_SCL0, PullUp); pat9125_i2c *gp_pat9125_i2c;//(I2C_SDA0, I2C_SCL0); @@ -64,7 +66,7 @@ // ------- LCM Initialization ------- // // +++++++ PAT9125 Initialization +++++++ // - gp_pat9125_i2c = new pat9125_i2c(); + gp_pat9125_i2c = new pat9125_i2c(I2C_SDA_PIN, I2C_SCL_PIN); gp_pat9125_i2c->frequency(400000); g_pat9125_mbed_state.p_i2c = gp_pat9125_i2c; g_pat9125_mbed_state.p_pc = &pc;