/****************************************************
 *  LightSensor.c                                         
 *  Created on: 2012/04/17 11:45:53                      
 *  Implementation of the Class LightSensor       
 *  Original author: hiroyuki.watanabe                     
 ****************************************************/

#include "ecrobot_interface.h"
#include <string.h>
#include <stdlib.h>

#include "LightSensor.h"

void LightSensor_init(LightSensor* this, INPUT_PORT a_inputPort)
{
	this->inputPort = a_inputPort;
	
}

unsigned int LightSensor_getBrightness(LightSensor* this)
{
	return ecrobot_get_light_sensor(this->inputPort);
} 




