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:
- 18:1fddc3e5fffe
- Parent:
- 17:0dee2d58c357
- Child:
- 19:87665d5b094e
diff -r 0dee2d58c357 -r 1fddc3e5fffe main.cpp --- a/main.cpp Wed Oct 29 13:18:21 2014 +0000 +++ b/main.cpp Wed Nov 05 08:39:34 2014 +0000 @@ -22,9 +22,9 @@ #include "MLX90393.h" int main() { - //mBed indicators - DigitalOut a1(p21); - DigitalOut a0(p22); + //mBed I2C indicators + /*DigitalOut a1(p21); + DigitalOut a0(p22);*/ //PC-communication Serial pc (USBTX, USBRX); @@ -36,18 +36,19 @@ char read_buffer[11], hostCommand; //Chip communication (SPI) - /*SPI spi(p5, p6, p7); + SPI spi(p5, p6, p7); spi.format(MLX90393::spi_bits,MLX90393::spi_mode); spi.frequency(100000000); - MLX90393 sensor(p8,&spi); - */ - + MLX90393 sensor(p21,&spi); + + //Chip communication (I2C) - a1=0; + /*a1=0; a0=0; I2C i2c(p9, p10); i2c.frequency(75000); MLX90393 sensor(MLX90393::i2c_address,&i2c); + */ //if you remove this line the program will fail