Alexandre Moghrabi / Mbed 2 deprecated am2073_a3

Dependencies:   C12832 FXOS8700Q LM75B mbed

Fork of app-shield-LM75B by Chris Styles

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 /**
00002 * This project is using the following inputs:
00003 *  - SW2 Button (right): Used to navigate between the different states (views)
00004 *  - SW3 Button (left): Used to change the state mode -if the state has another mode-
00005 *  - POT1 Potentiometer (left): Used to change the update rate (in seconds)
00006 *
00007 * The project is constructed around one class: Core.
00008 * This class will manage the inputs, and the different states
00009 * (I am using a state machine, based on the state ID, and the function pointer of this state).
00010 * The states functions are called state*StateName*.
00011 *
00012 * The current states are:
00013 *  - Temperature state
00014 *    => This state has 2 modes (SW3 Button to switch): Celsius or Fahrenheit temperature
00015 *  - Accelerometer state
00016 *  - Magnetometer state
00017 *
00018 * All the outputs are done on the shield LCD.
00019 *
00020 * The documentation for each methods is defined in the core.h file
00021 */
00022 #include "core.h"
00023 
00024 int main ()
00025 {
00026     Core core;
00027     core.init();
00028     while (true)
00029     {
00030         core.update();
00031     }
00032 }