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:
- 16:62feeff507d5
- Parent:
- 15:963d229367f6
- Child:
- 17:0dee2d58c357
diff -r 963d229367f6 -r 62feeff507d5 main.cpp --- a/main.cpp Thu Sep 25 07:17:12 2014 +0000 +++ b/main.cpp Wed Oct 29 12:03:57 2014 +0000 @@ -8,20 +8,23 @@ °°°°°°°°° °°°° °°°°° °°°°°° °°°°° °°°°° °°°°°ÛÛÛ °°°°°°°°° °°°°° °°°°°° °°°° °°°°° °°°°°° ÛÛÛ °ÛÛÛ °°ÛÛÛÛÛÛ - + °°°°°°*/ - + //TODO: /* 1. include I am alive - to check if connecting w/ the mbed was succesfull 2. include a watch dog system for unconditional errors --> auto reset */ - - + + #include "mbed.h" #include "MLX90393.h" int main() { + //watchdog timer + //WatchdogTimer wdt; + //mBed indicators DigitalOut myled(LED1); @@ -36,7 +39,7 @@ SPI spi(p5, p6, p7); spi.format(MLX90393::spi_bits,MLX90393::spi_mode); spi.frequency(100000000); - MLX90393 sensor(p26,&spi); + MLX90393 sensor(p8,&spi); //variables char read_buffer[11];