nebrius / johnny-five-iot-edge

An IoT Edge module for interacting with hardware based on http://johnny-five.io/
MIT License
8 stars 0 forks source link

Figure out Raspi-I2C root #7

Closed hxlnt closed 6 years ago

hxlnt commented 6 years ago

Done: Not sure; needs more information.

toolboc commented 6 years ago

i2c is made available to the module via the device parameters passed to the "Container Create Options":

        "Devices": [
            {
                "PathOnHost": "/dev/i2c-1",
                "PathInContainer": "/dev/i2c-1",
                "CgroupPermissions": "rwm"
            },
            {
                "PathOnHost": "/dev/gpiomem",
                "PathInContainer": "/dev/gpiomem",
                "CgroupPermissions": "rwm"
            }
        ],