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: main.cpp
- Revision:
- 0:815555c72774
- Child:
- 1:308cc5302475
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sun Mar 13 03:10:20 2016 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+#include "TSL2591.h"
+
+I2C i2c1(PB_9, PB_8);
+TSL2591 sensor(i2c1, TSL2591_ADDR);
+
+DigitalOut myled(LED1);
+
+int main()
+{
+ sensor.init();
+ while(1) {
+ sensor.getALS();
+ wait(1);
+ }
+}
\ No newline at end of file