NXShield  v1.07
NXShield Library Reference by OpenElectrons.com
 All Classes Files Functions Variables Enumerations Enumerator Macros Pages
RCXLight Class Reference

This class interfaces with RCX Light sensor attached to NXShield. More...

#include <RCXLight.h>

Inheritance diagram for RCXLight:
NXShieldAGS

Public Member Functions

bool init (NXShield *shield, SH_BankPort bp)
 
- Public Member Functions inherited from NXShieldAGS
 NXShieldAGS ()
 
 NXShieldAGS (NXShield *shield, SH_BankPort bp)
 
bool setType (uint8_t type)
 
int readRaw ()
 
bool init (NXShield *shield, SH_BankPort bp)
 

Additional Inherited Members

- Public Attributes inherited from NXShieldAGS
NXShieldmp_shield
 
SH_BankPort m_bp
 

Detailed Description

This class interfaces with RCX Light sensor attached to NXShield.

Note, the light sensor does not work on BAS1.

Member Function Documentation

bool RCXLight::init ( NXShield shield,
SH_BankPort  bp 
)

initialize the RCXLight sensor with a pointer to the NXShield and the bank port it is connected to


The documentation for this class was generated from the following files: