NXShield  v1.07
NXShield Library Reference by OpenElectrons.com
 All Classes Files Functions Variables Enumerations Enumerator Macros Pages
MagicWand.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 #ifndef MagicWand_H
23 #define MagicWand_H
24 #include "NXShieldI2C.h"
25 
26 #define MagicWand_WR_Register 0x00
27 
31 class MagicWand : public NXShieldI2C
32 {
33 
34 public:
36  MagicWand(uint8_t devAddr = 0x70);
37 
39  void lightWand(uint8_t byteToWrite);
40 };
41 
42 #endif
This class implements I2C interfaces used by NXShield.
Definition: NXShieldI2C.h:32
MagicWand(uint8_t devAddr=0x70)
Definition: MagicWand.cpp:24
This class interfaces with Magic Wand attached to NXShield.
Definition: MagicWand.h:31
void lightWand(uint8_t byteToWrite)
Definition: MagicWand.cpp:29