Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: NeoPixelString SimplyLog
Fork of NeoPixelI2cSlave by
Diff: i2c_device.cpp
- Revision:
- 0:3a31c84ed525
diff -r 000000000000 -r 3a31c84ed525 i2c_device.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/i2c_device.cpp Sun Oct 25 11:25:11 2015 +0000
@@ -0,0 +1,7 @@
+#include "i2c_device.h"
+
+I2cDevice::I2cDevice(PinName sda, PinName scl, I2cSettings* settings) : I2CSlave(sda, scl){
+ this->settings = settings;
+ this->frequency(settings->frequency);
+ this->address(settings->address);
+}
\ No newline at end of file
