Distance_Sensor
Dependencies: N5110 SDFileSystem SRF02 mbed
main.h
- Committer:
- garyk6666
- Date:
- 2016-05-05
- Revision:
- 0:17a67f6f9383
- Child:
- 1:7aa3cd153a01
File content as of revision 0:17a67f6f9383:
/** @file main.h @brief Header file containing functions prototypes, defines and global variables. @brief Shows examples of creating Doxygen documentation. @brief Acknowledgements to Craig A. Evans's N5110 Library. @brief Acknowledgements to Craig A. Evans's SRF02 Library. @brief Revision 1.0. @author Kai Yuan @date May 2016 */#include "mbed.h" #include "SRF02.h" #include "N5110.h" #include "SDFileSystem.h" /** @namespace SRF02_sensor @brief GPIO output for status LED */ SRF02 sensor(I2C_SDA,I2C_SCL); Serial serial(USBTX, USBRX); /** @namespace N5110_lcd @brief LCD Display */ N5110 lcd (PTE26 , PTA0 , PTC4 , PTD0 , PTD2 , PTD1 , PTC3); /** @namespace r_led @brief red led */ DigitalOut r_led(LED_RED); /** @namespace g_led @brief green led */ DigitalOut g_led(LED_GREEN); /** @namespace b_led @brief blue led */ DigitalOut b_led(LED_BLUE); // K64F on-board switches /** @namespace button @brief button connection; */ InterruptIn button(PTB18); Ticker ticker; /** @namespace buzzer @brief buzzer connection; */ PwmOut buzzer(PTA2); /** @namespace green_led @brief led connection; */ PwmOut green_led(PTC2); volatile bool yesno = false;/*!<create struct variable*/ /** Initializing on board LEDS */ void green1(); /** Changing the variable */ void green(); /** Initializing the k64F */ void init_K64F();