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:
- 13:226b63f2b5e4
- Parent:
- 12:2fc3e1efa646
- Child:
- 14:68623bf5de94
--- a/main.cpp Mon Sep 15 09:55:36 2014 +0000 +++ b/main.cpp Tue Sep 23 08:52:57 2014 +0000 @@ -27,8 +27,8 @@ //Chip communication SPI spi(p5, p6, p7); spi.format(MLX90393::spi_bits,MLX90393::spi_mode); - spi.frequency(100000); - MLX90393 sensor(p8,&spi); + spi.frequency(100000000); + MLX90393 sensor(p21,&spi); //variables @@ -88,8 +88,6 @@ } case 7: { //read measurement - //incl i f(ddry is not set loop until it's set) - sensor.RM(read_buffer,hostData1,hostData2); dataInteger0 = (read_buffer[0]<<24)+ (read_buffer[1]<<16)+(read_buffer[2]<<8)+read_buffer[3]; dataInteger1 = (read_buffer[4]<<24)+ (read_buffer[5]<<16)+(read_buffer[6]<<8)+read_buffer[7]; @@ -109,6 +107,19 @@ printf("%i\n",read_buffer[0]); break; } + case 10: { + //memory recall + sensor.HR(read_buffer,hostData1); + printf("%i\n",read_buffer[0]); + break; + } + case 11: { + //memory store + sensor.HS(read_buffer,hostData1); + printf("%i\n",read_buffer[0]); + break; + } + } } } \ No newline at end of file