Wojciech Rynczuk / Mbed 2 deprecated vcdMaker_Demo

Dependencies:   mbed vcdLogger vcdSignal

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers light.hpp Source File

light.hpp

Go to the documentation of this file.
00001 /*!
00002   @file light.hpp
00003 
00004   The header of the light sensor signal class.
00005 
00006   @par Full Description
00007   The header of the light sensor signal class.
00008 
00009   @if REVISION_HISTORY_INCLUDED
00010   @par Edit History
00011   @li [0]    wojciech.rynczuk@wp.pl    20-JAN-2015    Initial file revision.
00012   @endif
00013 
00014   @ingroup Signal
00015 
00016   The MIT License (MIT)
00017   Copyright (c) 2016 Wojciech Rynczuk
00018 
00019 */
00020 
00021 #include "mbed.h"
00022 #include "signal.hpp"
00023 
00024 class Light : public AnalogIn, public Signal
00025 {
00026   public:
00027   Light(const string& name, const PinName pin, Logger& logger);
00028   
00029   void PrintState();
00030   float m_LightPrev;
00031   float m_LightCurr;
00032 };