Skip to content

Commit

Permalink
Fixed example for mgos_i2c_create. (#15)
Browse files Browse the repository at this point in the history
Replaced ':' with '=' to conform to C.
  • Loading branch information
cmumford authored Sep 6, 2020
1 parent a411757 commit a0314a6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/mgos_i2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ struct mgos_i2c;
* Example:
* ```c
* const struct mgos_config_i2c cfg = {
* .enable: true,
* .freq: 400,
* .debug: 0,
* .sda_gpio: 13,
* .scl_gpio: 12,
* .enable = true,
* .freq = 400,
* .debug = 0,
* .sda_gpio = 13,
* .scl_gpio = 12,
* };
* struct mgos_i2c *myi2c = mgos_i2c_create(&cfg);
* ```
Expand Down

0 comments on commit a0314a6

Please sign in to comment.