diff --git a/docs/assets/js/search.js b/docs/assets/js/search.js index d5d03e6..3b455c1 100644 --- a/docs/assets/js/search.js +++ b/docs/assets/js/search.js @@ -1,3 +1,3 @@ var typedoc = typedoc || {}; typedoc.search = typedoc.search || {}; - typedoc.search.data = {"kinds":{"64":"Function","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","262144":"Accessor","4194304":"Type alias"},"rows":[{"id":0,"kind":256,"name":"ReadableDevice","url":"interfaces/readabledevice.html","classes":"tsd-kind-interface tsd-has-type-parameter"},{"id":1,"kind":2048,"name":"read","url":"interfaces/readabledevice.html#read","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"ReadableDevice"},{"id":2,"kind":256,"name":"WritableDevice","url":"interfaces/writabledevice.html","classes":"tsd-kind-interface tsd-has-type-parameter"},{"id":3,"kind":2048,"name":"write","url":"interfaces/writabledevice.html#write","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WritableDevice"},{"id":4,"kind":64,"name":"i2c","url":"globals.html#i2c","classes":"tsd-kind-function"},{"id":5,"kind":64,"name":"ads1015","url":"globals.html#ads1015","classes":"tsd-kind-function"},{"id":6,"kind":4194304,"name":"Temperature","url":"globals.html#temperature","classes":"tsd-kind-type-alias"},{"id":7,"kind":64,"name":"adt7410","url":"globals.html#adt7410","classes":"tsd-kind-function"},{"id":8,"kind":4194304,"name":"Acceleration","url":"globals.html#acceleration","classes":"tsd-kind-type-alias"},{"id":9,"kind":64,"name":"adxl345","url":"globals.html#adxl345","classes":"tsd-kind-function"},{"id":10,"kind":4194304,"name":"Distance","url":"globals.html#distance","classes":"tsd-kind-type-alias"},{"id":11,"kind":64,"name":"gp2y0e03","url":"globals.html#gp2y0e03","classes":"tsd-kind-function"},{"id":12,"kind":128,"name":"GPIO","url":"classes/gpio.html","classes":"tsd-kind-class"},{"id":13,"kind":2048,"name":"read","url":"classes/gpio.html#read","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"GPIO"},{"id":14,"kind":2048,"name":"write","url":"classes/gpio.html#write","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"GPIO"},{"id":15,"kind":1024,"name":"onchange","url":"classes/gpio.html#onchange","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"GPIO"},{"id":16,"kind":512,"name":"constructor","url":"classes/gpio.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"GPIO"},{"id":17,"kind":262144,"name":"portNumber","url":"classes/gpio.html#portnumber","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"GPIO"},{"id":18,"kind":262144,"name":"portName","url":"classes/gpio.html#portname","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"GPIO"},{"id":19,"kind":262144,"name":"pinName","url":"classes/gpio.html#pinname","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"GPIO"},{"id":20,"kind":262144,"name":"direction","url":"classes/gpio.html#direction","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"GPIO"},{"id":21,"kind":262144,"name":"exported","url":"classes/gpio.html#exported","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"GPIO"},{"id":22,"kind":2048,"name":"export","url":"classes/gpio.html#export","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"GPIO"},{"id":23,"kind":2048,"name":"unexport","url":"classes/gpio.html#unexport","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"GPIO"},{"id":24,"kind":2048,"name":"listenerCount","url":"classes/gpio.html#listenercount-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"GPIO"},{"id":25,"kind":1024,"name":"defaultMaxListeners","url":"classes/gpio.html#defaultmaxlisteners","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"GPIO"},{"id":26,"kind":2048,"name":"addListener","url":"classes/gpio.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":27,"kind":2048,"name":"on","url":"classes/gpio.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":28,"kind":2048,"name":"once","url":"classes/gpio.html#once","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":29,"kind":2048,"name":"prependListener","url":"classes/gpio.html#prependlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":30,"kind":2048,"name":"prependOnceListener","url":"classes/gpio.html#prependoncelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":31,"kind":2048,"name":"removeListener","url":"classes/gpio.html#removelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":32,"kind":2048,"name":"off","url":"classes/gpio.html#off","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":33,"kind":2048,"name":"removeAllListeners","url":"classes/gpio.html#removealllisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":34,"kind":2048,"name":"setMaxListeners","url":"classes/gpio.html#setmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":35,"kind":2048,"name":"getMaxListeners","url":"classes/gpio.html#getmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":36,"kind":2048,"name":"listeners","url":"classes/gpio.html#listeners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":37,"kind":2048,"name":"rawListeners","url":"classes/gpio.html#rawlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":38,"kind":2048,"name":"emit","url":"classes/gpio.html#emit","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":39,"kind":2048,"name":"eventNames","url":"classes/gpio.html#eventnames","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":40,"kind":2048,"name":"listenerCount","url":"classes/gpio.html#listenercount","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":41,"kind":64,"name":"gpio","url":"globals.html#gpio","classes":"tsd-kind-function"},{"id":42,"kind":4194304,"name":"Touched","url":"globals.html#touched","classes":"tsd-kind-type-alias"},{"id":43,"kind":64,"name":"mpr121","url":"globals.html#mpr121","classes":"tsd-kind-function"},{"id":44,"kind":4194304,"name":"Direction","url":"globals.html#direction","classes":"tsd-kind-type-alias"},{"id":45,"kind":64,"name":"paj7620","url":"globals.html#paj7620","classes":"tsd-kind-function"},{"id":46,"kind":4194304,"name":"Channel","url":"globals.html#channel","classes":"tsd-kind-type-alias"},{"id":47,"kind":64,"name":"pca9685","url":"globals.html#pca9685","classes":"tsd-kind-function"},{"id":48,"kind":4194304,"name":"RGB","url":"globals.html#rgb","classes":"tsd-kind-type-alias"},{"id":49,"kind":64,"name":"s11059","url":"globals.html#s11059","classes":"tsd-kind-function"},{"id":50,"kind":64,"name":"ssd1308","url":"globals.html#ssd1308","classes":"tsd-kind-function"},{"id":51,"kind":4194304,"name":"Illuminance","url":"globals.html#illuminance","classes":"tsd-kind-type-alias"},{"id":52,"kind":64,"name":"tsl2561","url":"globals.html#tsl2561","classes":"tsd-kind-function"},{"id":53,"kind":4194304,"name":"UVA","url":"globals.html#uva","classes":"tsd-kind-type-alias"},{"id":54,"kind":64,"name":"veml6070","url":"globals.html#veml6070","classes":"tsd-kind-function"},{"id":55,"kind":4194304,"name":"EnableLongRangeMode","url":"globals.html#enablelongrangemode","classes":"tsd-kind-type-alias"},{"id":56,"kind":64,"name":"vl53l0x","url":"globals.html#vl53l0x","classes":"tsd-kind-function"}]}; \ No newline at end of file + typedoc.search.data = {"kinds":{"64":"Function","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","262144":"Accessor","4194304":"Type alias"},"rows":[{"id":0,"kind":256,"name":"ReadableDevice","url":"interfaces/readabledevice.html","classes":"tsd-kind-interface tsd-has-type-parameter"},{"id":1,"kind":2048,"name":"read","url":"interfaces/readabledevice.html#read","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"ReadableDevice"},{"id":2,"kind":256,"name":"WritableDevice","url":"interfaces/writabledevice.html","classes":"tsd-kind-interface tsd-has-type-parameter"},{"id":3,"kind":2048,"name":"write","url":"interfaces/writabledevice.html#write","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WritableDevice"},{"id":4,"kind":128,"name":"I2C","url":"classes/i2c.html","classes":"tsd-kind-class"},{"id":5,"kind":512,"name":"constructor","url":"classes/i2c.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"I2C"},{"id":6,"kind":262144,"name":"portNumber","url":"classes/i2c.html#portnumber","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"I2C"},{"id":7,"kind":262144,"name":"portName","url":"classes/i2c.html#portname","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"I2C"},{"id":8,"kind":2048,"name":"open","url":"classes/i2c.html#open","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"I2C"},{"id":9,"kind":64,"name":"i2c","url":"globals.html#i2c","classes":"tsd-kind-function"},{"id":10,"kind":64,"name":"ads1015","url":"globals.html#ads1015","classes":"tsd-kind-function"},{"id":11,"kind":4194304,"name":"Temperature","url":"globals.html#temperature","classes":"tsd-kind-type-alias"},{"id":12,"kind":64,"name":"adt7410","url":"globals.html#adt7410","classes":"tsd-kind-function"},{"id":13,"kind":4194304,"name":"Acceleration","url":"globals.html#acceleration","classes":"tsd-kind-type-alias"},{"id":14,"kind":64,"name":"adxl345","url":"globals.html#adxl345","classes":"tsd-kind-function"},{"id":15,"kind":4194304,"name":"Distance","url":"globals.html#distance","classes":"tsd-kind-type-alias"},{"id":16,"kind":64,"name":"gp2y0e03","url":"globals.html#gp2y0e03","classes":"tsd-kind-function"},{"id":17,"kind":128,"name":"GPIO","url":"classes/gpio.html","classes":"tsd-kind-class"},{"id":18,"kind":2048,"name":"read","url":"classes/gpio.html#read","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"GPIO"},{"id":19,"kind":2048,"name":"write","url":"classes/gpio.html#write","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"GPIO"},{"id":20,"kind":1024,"name":"onchange","url":"classes/gpio.html#onchange","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"GPIO"},{"id":21,"kind":512,"name":"constructor","url":"classes/gpio.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"GPIO"},{"id":22,"kind":262144,"name":"portNumber","url":"classes/gpio.html#portnumber","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"GPIO"},{"id":23,"kind":262144,"name":"portName","url":"classes/gpio.html#portname","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"GPIO"},{"id":24,"kind":262144,"name":"pinName","url":"classes/gpio.html#pinname","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"GPIO"},{"id":25,"kind":262144,"name":"direction","url":"classes/gpio.html#direction","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"GPIO"},{"id":26,"kind":262144,"name":"exported","url":"classes/gpio.html#exported","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"GPIO"},{"id":27,"kind":2048,"name":"export","url":"classes/gpio.html#export","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"GPIO"},{"id":28,"kind":2048,"name":"unexport","url":"classes/gpio.html#unexport","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"GPIO"},{"id":29,"kind":2048,"name":"listenerCount","url":"classes/gpio.html#listenercount-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"GPIO"},{"id":30,"kind":1024,"name":"defaultMaxListeners","url":"classes/gpio.html#defaultmaxlisteners","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"GPIO"},{"id":31,"kind":2048,"name":"addListener","url":"classes/gpio.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":32,"kind":2048,"name":"on","url":"classes/gpio.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":33,"kind":2048,"name":"once","url":"classes/gpio.html#once","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":34,"kind":2048,"name":"prependListener","url":"classes/gpio.html#prependlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":35,"kind":2048,"name":"prependOnceListener","url":"classes/gpio.html#prependoncelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":36,"kind":2048,"name":"removeListener","url":"classes/gpio.html#removelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":37,"kind":2048,"name":"off","url":"classes/gpio.html#off","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":38,"kind":2048,"name":"removeAllListeners","url":"classes/gpio.html#removealllisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":39,"kind":2048,"name":"setMaxListeners","url":"classes/gpio.html#setmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":40,"kind":2048,"name":"getMaxListeners","url":"classes/gpio.html#getmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":41,"kind":2048,"name":"listeners","url":"classes/gpio.html#listeners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":42,"kind":2048,"name":"rawListeners","url":"classes/gpio.html#rawlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":43,"kind":2048,"name":"emit","url":"classes/gpio.html#emit","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":44,"kind":2048,"name":"eventNames","url":"classes/gpio.html#eventnames","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":45,"kind":2048,"name":"listenerCount","url":"classes/gpio.html#listenercount","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"GPIO"},{"id":46,"kind":64,"name":"gpio","url":"globals.html#gpio","classes":"tsd-kind-function"},{"id":47,"kind":4194304,"name":"Touched","url":"globals.html#touched","classes":"tsd-kind-type-alias"},{"id":48,"kind":64,"name":"mpr121","url":"globals.html#mpr121","classes":"tsd-kind-function"},{"id":49,"kind":4194304,"name":"Direction","url":"globals.html#direction","classes":"tsd-kind-type-alias"},{"id":50,"kind":64,"name":"paj7620","url":"globals.html#paj7620","classes":"tsd-kind-function"},{"id":51,"kind":4194304,"name":"Channel","url":"globals.html#channel","classes":"tsd-kind-type-alias"},{"id":52,"kind":64,"name":"pca9685","url":"globals.html#pca9685","classes":"tsd-kind-function"},{"id":53,"kind":4194304,"name":"RGB","url":"globals.html#rgb","classes":"tsd-kind-type-alias"},{"id":54,"kind":64,"name":"s11059","url":"globals.html#s11059","classes":"tsd-kind-function"},{"id":55,"kind":64,"name":"ssd1308","url":"globals.html#ssd1308","classes":"tsd-kind-function"},{"id":56,"kind":4194304,"name":"Illuminance","url":"globals.html#illuminance","classes":"tsd-kind-type-alias"},{"id":57,"kind":64,"name":"tsl2561","url":"globals.html#tsl2561","classes":"tsd-kind-function"},{"id":58,"kind":4194304,"name":"UVA","url":"globals.html#uva","classes":"tsd-kind-type-alias"},{"id":59,"kind":64,"name":"veml6070","url":"globals.html#veml6070","classes":"tsd-kind-function"},{"id":60,"kind":4194304,"name":"EnableLongRangeMode","url":"globals.html#enablelongrangemode","classes":"tsd-kind-type-alias"},{"id":61,"kind":64,"name":"vl53l0x","url":"globals.html#vl53l0x","classes":"tsd-kind-function"}]}; \ No newline at end of file diff --git a/docs/classes/gpio.html b/docs/classes/gpio.html index e4cedb9..2e9c531 100644 --- a/docs/classes/gpio.html +++ b/docs/classes/gpio.html @@ -733,7 +733,7 @@

Returns Promise<GPIOValue>

@@ -865,7 +865,7 @@

Parameters

diff --git a/docs/classes/i2c.html b/docs/classes/i2c.html new file mode 100644 index 0000000..cefd1f6 --- /dev/null +++ b/docs/classes/i2c.html @@ -0,0 +1,305 @@ + + + + + + I2C | megabit + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class I2C

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Accessors

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ +
    +
  • + +

    Parameters

    + +

    Returns I2C

    +
  • +
+
+
+
+

Accessors

+
+ +

portName

+
    +
  • get portName(): string
  • +
+
    +
  • + +

    Returns string

    +
  • +
+
+
+ +

portNumber

+
    +
  • get portNumber(): number
  • +
+
    +
  • + +

    Returns number

    +
  • +
+
+
+
+

Methods

+
+ +

open

+ + +
+
+
+ +
+
+ +
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/docs/classes/i2cport.html b/docs/classes/i2cport.html index 7703a0c..476d0f0 100644 --- a/docs/classes/i2cport.html +++ b/docs/classes/i2cport.html @@ -71,6 +71,11 @@ diff --git a/docs/globals.html b/docs/globals.html index 399e4c4..ba7de7d 100644 --- a/docs/globals.html +++ b/docs/globals.html @@ -74,6 +74,7 @@
  • GPIOAccess
  • GPIOPort
  • GPIOPortMap
  • +
  • I2C
  • I2CAccess
  • I2CPort
  • I2CPortMap
  • @@ -155,7 +156,7 @@
    Acceleration: [number, number, number]
    @@ -172,7 +173,7 @@
    Channel: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15
    @@ -182,7 +183,7 @@
    Direction: "" | "right" | "left" | "up" | "down" | "forward" | "back" | "clockwise" | "counterclockwise"
    @@ -202,8 +203,8 @@
    Distance: number
    @@ -223,7 +224,7 @@
    EnableLongRangeMode: Boolean
    @@ -241,7 +242,7 @@ @@ -261,7 +262,7 @@
    Illuminance: number
    @@ -310,7 +311,7 @@
    RGB: [number, number, number]
    @@ -327,7 +328,7 @@
    Temperature: number
    @@ -344,7 +345,7 @@
    Touched: [boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean]
    @@ -361,7 +362,7 @@
    UVA: number
    @@ -438,19 +439,19 @@

    ads1015

    • Parameters

      • -
        Default value bus: I2CPort = i2c()
        +
        Default value bus: I2C = i2c()
      • Default value address: number = 72
        @@ -467,19 +468,19 @@

        adt7410

        • Parameters

          • -
            Default value bus: I2CPort = i2c()
            +
            Default value bus: I2C = i2c()
          • Default value address: number = 72
            @@ -493,19 +494,19 @@

            adxl345

            • Parameters

              • -
                Default value bus: I2CPort = i2c()
                +
                Default value bus: I2C = i2c()
              • Default value address: number = 83
                @@ -519,19 +520,19 @@

                gp2y0e03

                • Parameters

                  • -
                    Default value bus: I2CPort = i2c()
                    +
                    Default value bus: I2C = i2c()
                  • Default value address: number = 64
                    @@ -545,13 +546,13 @@

                    gpio

                    • Parameters

                      @@ -560,7 +561,7 @@
                      pin: number
                    -

                    Returns GPIOPort

                    +

                    Returns GPIO

                  @@ -568,13 +569,13 @@

                  i2c

                    -
                  • i2c(bus?: number): I2CPort
                  • +
                  • i2c(bus?: number): I2C
                  • Parameters

                    @@ -583,7 +584,7 @@
                    Default value bus: number = 1
                  -

                  Returns I2CPort

                  +

                  Returns I2C

                @@ -591,19 +592,19 @@

                mpr121

                • Parameters

                  • -
                    Default value bus: I2CPort = i2c()
                    +
                    Default value bus: I2C = i2c()
                  • Default value address: number = 90
                    @@ -617,19 +618,19 @@

                    paj7620

                    • Parameters

                      • -
                        Default value bus: I2CPort = i2c()
                        +
                        Default value bus: I2C = i2c()
                      • Default value address: number = 115
                        @@ -666,13 +667,13 @@

                        pca9685

                          -
                        • pca9685(bus?: I2CPort, address?: number, channel?: Channel, minPulse?: undefined | number, maxPulse?: undefined | number, angleRange?: undefined | number): WritableDevice<number>
                        • +
                        • pca9685(bus?: I2C, address?: number, channel?: Channel, minPulse?: undefined | number, maxPulse?: undefined | number, angleRange?: undefined | number): WritableDevice<number>
                        • @@ -680,7 +681,7 @@

                          Parameters

                          • -
                            Default value bus: I2CPort = i2c()
                            +
                            Default value bus: I2C = i2c()
                          • Default value address: number = 64
                            @@ -749,19 +750,19 @@

                            s11059

                            • Parameters

                              • -
                                Default value bus: I2CPort = i2c()
                                +
                                Default value bus: I2C = i2c()
                              • Default value address: number = 42
                                @@ -775,19 +776,19 @@

                                ssd1308

                                • Parameters

                                  • -
                                    Default value bus: I2CPort = i2c()
                                    +
                                    Default value bus: I2C = i2c()
                                  • Default value address: number = 60
                                    @@ -801,19 +802,19 @@

                                    tsl2561

                                    • Parameters

                                      • -
                                        Default value bus: I2CPort = i2c()
                                        +
                                        Default value bus: I2C = i2c()
                                      • Default value address: number = 41
                                        @@ -827,13 +828,13 @@

                                        veml6070

                                        • @@ -844,7 +845,7 @@

                                          Parameters

                                          • -
                                            Default value bus: I2CPort = i2c()
                                            +
                                            Default value bus: I2C = i2c()

                                          Returns ReadableDevice<number>

                                          @@ -855,13 +856,13 @@

                                          vl53l0x

                                          • @@ -872,7 +873,7 @@

                                            Parameters

                                            • -
                                              Default value bus: I2CPort = i2c()
                                              +
                                              Default value bus: I2C = i2c()
                                            • Default value address: number = 41
                                              @@ -909,6 +910,9 @@
                                            • GPIOPortMap
                                            • +
                                            • + I2C +
                                            • I2CAccess
                                            • diff --git a/docs/index.html b/docs/index.html index 579dc0d..25e8398 100644 --- a/docs/index.html +++ b/docs/index.html @@ -126,6 +126,9 @@ measure();
                                            • GPIOPortMap
                                            • +
                                            • + I2C +
                                            • I2CAccess
                                            • diff --git a/docs/interfaces/readabledevice.html b/docs/interfaces/readabledevice.html index 0624819..64b7cb1 100644 --- a/docs/interfaces/readabledevice.html +++ b/docs/interfaces/readabledevice.html @@ -107,7 +107,7 @@
                                            • Returns Promise<T>

                                              diff --git a/docs/interfaces/writabledevice.html b/docs/interfaces/writabledevice.html index 719c213..1cc9589 100644 --- a/docs/interfaces/writabledevice.html +++ b/docs/interfaces/writabledevice.html @@ -107,7 +107,7 @@
                                            • Parameters