This is a demonstration of two Choro Q Hybrid cars.

Committer:
shintamainjp
Date:
Mon Nov 22 12:23:23 2010 +0000
Revision:
0:d825f8dae2be
Initial version.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
shintamainjp 0:d825f8dae2be 1 /*
shintamainjp 0:d825f8dae2be 2 * WiiNunchuckReader. A program allowing the output of one or two
shintamainjp 0:d825f8dae2be 3 * Wii Nunchucks to be read via I2C and decoded for use, using the mbed
shintamainjp 0:d825f8dae2be 4 * microcontroller and its associated libraries.
shintamainjp 0:d825f8dae2be 5 *
shintamainjp 0:d825f8dae2be 6 * Copyright (C) <2009> Petras Saduikis <petras@petras.co.uk>
shintamainjp 0:d825f8dae2be 7 *
shintamainjp 0:d825f8dae2be 8 * This file is part of WiiNunchuckReader.
shintamainjp 0:d825f8dae2be 9 *
shintamainjp 0:d825f8dae2be 10 * WiiNunchuckReader is free software: you can redistribute it and/or modify
shintamainjp 0:d825f8dae2be 11 * it under the terms of the GNU General Public License as published by
shintamainjp 0:d825f8dae2be 12 * the Free Software Foundation, either version 3 of the License, or
shintamainjp 0:d825f8dae2be 13 * (at your option) any later version.
shintamainjp 0:d825f8dae2be 14 *
shintamainjp 0:d825f8dae2be 15 * WiiNunchuckReader is distributed in the hope that it will be useful,
shintamainjp 0:d825f8dae2be 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
shintamainjp 0:d825f8dae2be 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
shintamainjp 0:d825f8dae2be 18 * GNU General Public License for more details.
shintamainjp 0:d825f8dae2be 19 *
shintamainjp 0:d825f8dae2be 20 * You should have received a copy of the GNU General Public License
shintamainjp 0:d825f8dae2be 21 * along with WiiNunchuckReader. If not, see <http://www.gnu.org/licenses/>.
shintamainjp 0:d825f8dae2be 22 */
shintamainjp 0:d825f8dae2be 23
shintamainjp 0:d825f8dae2be 24 #ifndef SNATCH59_I2CCONFIG_H
shintamainjp 0:d825f8dae2be 25 #define SNATCH59_I2CCONFIG_H
shintamainjp 0:d825f8dae2be 26
shintamainjp 0:d825f8dae2be 27 #include <mbed.h>
shintamainjp 0:d825f8dae2be 28
shintamainjp 0:d825f8dae2be 29 class I2CPort_A {
shintamainjp 0:d825f8dae2be 30 public:
shintamainjp 0:d825f8dae2be 31 static const PinName SDA;
shintamainjp 0:d825f8dae2be 32 static const PinName SCL;
shintamainjp 0:d825f8dae2be 33 };
shintamainjp 0:d825f8dae2be 34
shintamainjp 0:d825f8dae2be 35
shintamainjp 0:d825f8dae2be 36 class I2CPort_B {
shintamainjp 0:d825f8dae2be 37 public:
shintamainjp 0:d825f8dae2be 38 static const PinName SDA;
shintamainjp 0:d825f8dae2be 39 static const PinName SCL;
shintamainjp 0:d825f8dae2be 40 };
shintamainjp 0:d825f8dae2be 41
shintamainjp 0:d825f8dae2be 42 const PinName I2CPort_A::SDA = p9;
shintamainjp 0:d825f8dae2be 43 const PinName I2CPort_A::SCL = p10;
shintamainjp 0:d825f8dae2be 44
shintamainjp 0:d825f8dae2be 45 const PinName I2CPort_B::SDA = p28;
shintamainjp 0:d825f8dae2be 46 const PinName I2CPort_B::SCL = p27;
shintamainjp 0:d825f8dae2be 47
shintamainjp 0:d825f8dae2be 48 #endif