This program is done as an Lab assignment for ECE2036.

Dependencies:   4DGL-uLCD-SE PinDetect SDFileSystem mbed

Fork of mythermostat by jim hamblen

This program is a lab assignment to ECE 2036. It uses uLCD, pushputtons and SDCard via sdFileSystem. This is designed as a concept to train animal that could be used by biologist to determine if lemurs have a concept of numbers. uLCD is divided into two different rectangle. In each rectangle, program generate random shapes of different color. Pushbutton is used to select which side has smaller number of shapes. Each trial, result is stored in sdCard as datalogging.

Revision:
5:e3916a6d72b8
Parent:
4:9a4d22a279b3
--- a/TMP36.h	Thu Jan 23 16:47:05 2014 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-#include "mbed.h"
-
-//Setup a new class for TMP36 sensor
-class TMP36
-{
-public:
-    TMP36(PinName pin);
-    TMP36();
-    operator float ();
-    float read();
-private:
-//class sets up the AnalogIn pin
-    AnalogIn _pin;
-};
-
-TMP36::TMP36(PinName pin) : _pin(pin)
-{
-// _pin(pin) means pass pin to the AnalogIn constructor
-}
-
-float TMP36::read()
-{
-//convert sensor reading to temperature in degrees C
-    return ((_pin.read()*3.3)-0.500)*100.0;
-}
-//overload of float conversion (avoids needing to type .read() in equations)
-TMP36::operator float ()
-{
-//convert sensor reading to temperature in degrees C
-    return ((_pin.read()*3.3)-0.500)*100.0;
-}
\ No newline at end of file