1
0
Fork 0
mirror of https://github.com/SMFSW/cI2C synced 2025-07-03 03:56:44 +02:00

v0.5: speed enum names change

This commit is contained in:
SMFSW 2017-02-02 00:03:07 +01:00
parent b50281b841
commit 52b3885bfc
10 changed files with 138 additions and 133 deletions

View file

@ -6,7 +6,7 @@
This example code is in the public domain.
created Jan 12 2017
latest mod Jan 22 2017
latest mod Jan 31 2017
by SMFSW
*/
@ -18,7 +18,7 @@ I2C_SLAVE FRAM; // slave declaration
void setup() {
Serial.begin(115200); // start serial for output
I2C_init(I2C_LOW); // init with low speed (400KHz)
I2C_init(I2C_FM); // init with Fast Mode (400KHz)
I2C_slave_init(&FRAM, 0x50, I2C_16B_REG);
}