NXShield  v1.07
NXShield Library Reference by OpenElectrons.com
 All Classes Files Functions Variables Enumerations Enumerator Macros Pages
RCXLight.h
1 
2 /*
3  * NXShield interface library
4  * Copyright (C) 2011 mindsensors.com
5  *
6  * This file is part of NXShield interface library.
7  This library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU Lesser General Public
9  License as published by the Free Software Foundation; either
10  version 2.1 of the License, or (at your option) any later version.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Lesser General Public License for more details.
16 
17  You should have received a copy of the GNU Lesser General Public
18  License along with this library; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21 
22 
23 #ifndef RCXLIGHT_H
24 #define RCXLIGHT_H
25 
26 #include "NXShieldAGS.h"
27 
28 /*
29  * NOTE: NXShield Port BAS1 is High speed I2C port, and
30  * Light sensor does not work on BAS1
31  */
32 
38 class RCXLight : public NXShieldAGS
39 {
40 public:
42  bool init(NXShield * shield, SH_BankPort bp);
43 
44 };
45 
46 #endif
47 
48 
This class defines methods to access NXShield features.
Definition: NXShield.h:639
bool init(NXShield *shield, SH_BankPort bp)
Definition: RCXLight.cpp:29
This class interfaces with RCX Light sensor attached to NXShield.
Definition: RCXLight.h:38
SH_BankPort
Definition: SHDefines.h:49
NXShield Analog Sensor class.
Definition: NXShieldAGS.h:31