Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: HelloWorld_IKA01A1
Fork of X_NUCLEO_IKA01A1 by
PhotoSensor Class Reference
An abstract class for photo sensor components. More...
#include <PhotoSensor.h>
Inherits Component.
Inherited by TSU104.
Public Member Functions | |
virtual unsigned int | get_voltage (void)=0 |
abstract method for obtaining the output voltage detected by photo sensor | |
virtual | ~PhotoSensor () |
Destructor. | |
virtual int | init (void *init)=0 |
Initializing the component. | |
virtual int | read_id (uint8_t *id)=0 |
Getting the ID of the component. |
Detailed Description
An abstract class for photo sensor components.
Definition at line 67 of file PhotoSensor.h.
Constructor & Destructor Documentation
virtual ~PhotoSensor | ( | ) | [virtual] |
Destructor.
Definition at line 92 of file PhotoSensor.h.
Member Function Documentation
virtual unsigned int get_voltage | ( | void | ) | [pure virtual] |
abstract method for obtaining the output voltage detected by photo sensor
- Parameters:
-
pin AnalogIn pin to use for detecting the voltage
- Return values:
-
voltage detected by photo sensor
Implemented in TSU104.
virtual int init | ( | void * | init ) | [pure virtual, inherited] |
Generated on Tue Jul 12 2022 17:01:49 by
