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.
You are viewing an older revision! See the latest version
Homepage
Example code for ADT7320 Temperature Sensor SPI Code to be used with mbed supported microcontroller
MOSI > DIN of ADT7320
MISO > DOUT of ADT7320
SCLK > SCLK of ADT7320
CS > CS/EN of ADT7320
- include "mbed.h"
- include "ADT7320_SPI.h" ADT7320_SPI adt(D11, D12, D13, D10); mosi, miso, sclk, cs int main() { while(1) { printf("Temperature = %.2f\r\n", adt.readTemp()); wait(0.5); }
}