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.
main.cpp
- Committer:
- 12104404
- Date:
- 2016-03-13
- Revision:
- 0:815555c72774
- Child:
- 1:308cc5302475
File content as of revision 0:815555c72774:
#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);
}
}