mirror of
https://github.com/SMFSW/cI2C
synced 2025-07-04 20:46:56 +02:00
v0.5: speed enum names change
This commit is contained in:
parent
b50281b841
commit
52b3885bfc
10 changed files with 138 additions and 133 deletions
|
@ -5,7 +5,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
|
||||
*/
|
||||
|
||||
|
@ -17,7 +17,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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue