Skip to content

Commit f51a8c7

Browse files
committed
Automatically sync converted examples from project repo
1 parent 905fb9b commit f51a8c7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

snippets/examples/ch1_3_i2c.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ This example demonstrates how to use the Addressor component to automatically
55
configure the address pins of an I2C client device based on a desired I2C address.
66
"""
77

8-
import Addressor3
8+
#pragma experiment("MODULE_TEMPLATING")
9+
10+
import Addressor
911
import I2C
1012
import ElectricPower
1113
import ElectricLogic
@@ -42,7 +44,7 @@ module I2CExampleDriver:
4244
"""
4345

4446
# addressor with 3 address lines
45-
addressor = new Addressor3
47+
addressor = new Addressor<address_bits=3>
4648
ic = new I2CExampleIC
4749
power = new ElectricPower
4850

0 commit comments

Comments
 (0)