Santiago Escobar / Mbed 2 deprecated Taller1

Dependencies:   mbed MPU6050

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers max6675_2.h Source File

max6675_2.h

00001 #ifndef MAX6675_2_h
00002 #define MAX6675_2_h
00003 
00004 #include "mbed.h"
00005 
00006 class max6675_2
00007 {
00008     SPI& spi_2;
00009     DigitalOut ncs_2;
00010   public:
00011   
00012     max6675_2(SPI& _spi_2, PinName _ncs_2);
00013     void select_2();
00014     void deselect_2();
00015     
00016     float read_temp_2();
00017   private:
00018     PinName _CS_pin_2;
00019     PinName _SO_pin_2;
00020     PinName _SCK_pin_2;
00021     int _units_2;
00022     float _error_2;
00023 };
00024 
00025 #endif