Super Sensor

Dependencies:   N5110 PowerControl SRF02 beep mbed

Embed: (wiki syntax)

« Back to documentation index

main.cpp File Reference

main.cpp File Reference

program main and its implementation More...

Go to the source code of this file.

Functions

int main ()

Detailed Description

program main and its implementation

call functions here need one

Definition in file main.cpp.


Function Documentation

int main (  )

power down to minimise power usage

nitialise lcd display

set time using UNIX time

potentiometer to control the lcd backlight

sensor measure the distance

print distance measure on the lcd

if button is pressed, read distance (print car and wall)

Display time & date to the user

Definition at line 9 of file main.cpp.