projectwerk

Dependencies:   NeoPixelString SimplyLog

Fork of NeoPixelI2cSlave by Nico De Witte

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?

UserRevisionLine numberNew contents of line
dwini 0:3a31c84ed525 1 #pragma once
dwini 0:3a31c84ed525 2
dwini 0:3a31c84ed525 3 #include <mbed.h>
dwini 0:3a31c84ed525 4
dwini 0:3a31c84ed525 5 struct I2cSettings {
dwini 0:3a31c84ed525 6 int address;
dwini 0:3a31c84ed525 7 int frequency;
dwini 0:3a31c84ed525 8 int buffer;
dwini 0:3a31c84ed525 9 };
dwini 0:3a31c84ed525 10
dwini 0:3a31c84ed525 11 class I2cDevice : public I2CSlave {
dwini 0:3a31c84ed525 12 private:
dwini 0:3a31c84ed525 13 I2cSettings* settings;
dwini 0:3a31c84ed525 14
dwini 0:3a31c84ed525 15 public:
dwini 0:3a31c84ed525 16 I2cDevice(PinName sda, PinName scl, I2cSettings* settings);
dwini 0:3a31c84ed525 17 };