projectwerk
Dependencies: NeoPixelString SimplyLog
Fork of NeoPixelI2cSlave by
i2c_device.cpp@3:02931c2b1e82, 2016-01-09 (annotated)
- Committer:
- BramHeldenbergh
- Date:
- Sat Jan 09 13:10:19 2016 +0000
- Revision:
- 3:02931c2b1e82
- Parent:
- 0:3a31c84ed525
programma projectwerk
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dwini | 0:3a31c84ed525 | 1 | #include "i2c_device.h" |
dwini | 0:3a31c84ed525 | 2 | |
dwini | 0:3a31c84ed525 | 3 | I2cDevice::I2cDevice(PinName sda, PinName scl, I2cSettings* settings) : I2CSlave(sda, scl){ |
dwini | 0:3a31c84ed525 | 4 | this->settings = settings; |
dwini | 0:3a31c84ed525 | 5 | this->frequency(settings->frequency); |
dwini | 0:3a31c84ed525 | 6 | this->address(settings->address); |
dwini | 0:3a31c84ed525 | 7 | } |