projectwerk
Dependencies: NeoPixelString SimplyLog
Fork of NeoPixelI2cSlave by
i2c_device.cpp@0:3a31c84ed525, 2015-10-25 (annotated)
- Committer:
- dwini
- Date:
- Sun Oct 25 11:25:11 2015 +0000
- Revision:
- 0:3a31c84ed525
Start of NeoPixel I2c Slave library.
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 | } |