File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,12 +42,12 @@ Of course, you must import the library to use it:
42
42
43
43
.. code :: python
44
44
45
- import nativeio
45
+ import busio
46
46
import adafruit_ds1307
47
47
import time
48
48
49
49
All the Adafruit RTC libraries take an instantiated and active I2C object
50
- (from the `nativeio ` library) as an argument to their constructor. The way to
50
+ (from the `busio ` library) as an argument to their constructor. The way to
51
51
create an I2C object depends on the board you are using. For boards with labeled
52
52
SCL and SDA pins, you can:
53
53
@@ -62,7 +62,7 @@ Now, to initialize the I2C bus:
62
62
63
63
.. code :: python
64
64
65
- myI2C = nativeio .I2C(SCL , SDA )
65
+ myI2C = busio .I2C(SCL , SDA )
66
66
67
67
Once you have created the I2C interface object, you can use it to instantiate
68
68
the RTC object:
You can’t perform that action at this time.
0 commit comments