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.
Diff: SX1508.h
- Revision:
- 0:9b4d494682e0
- Child:
- 1:56f4a8d6cde7
diff -r 000000000000 -r 9b4d494682e0 SX1508.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/SX1508.h Fri Jan 22 08:58:13 2016 +0000
@@ -0,0 +1,21 @@
+#ifndef SX1508_H
+#define SX1508_H
+
+#define SX1508_ADDR 0x20
+#define SX1508_FREQ 100000
+
+class SX1508
+{
+public:
+ SX1508(PinName sda, PinName scl);
+
+ bool config(char SetPin);
+
+ char read();
+
+private:
+ I2C i2c;
+
+};
+
+#endif
\ No newline at end of file