This example will not work on MacOs, since relevant kernel modules are missing (i2c-stub and gpio-mockup).