The original snake game for the mbedgc
Dependencies: mbed EthernetNetIf HTTPClient
Fork of SimpleLib_03272011 by
Diff: mbedGC/I2CConfig.h
- Revision:
- 0:011be8250218
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbedGC/I2CConfig.h Sat Apr 02 23:23:07 2011 +0000 @@ -0,0 +1,51 @@ +/* +* WiiClassicControllerReader. A program allowing the output of one or two +* Wii Classic Controllers to be read via I2C and decoded for use, using the mbed +* microcontroller and its associated libraries. +* +* Written by Alfredo Guerrero <alfredog83@gmail.com> for the mbedGC open-source +* game console <http://www.mbedgc.com>. Based on the original code for +* the WiiNunchuckReader written by Petras Saduikis <petras@petras.co.uk>. +* +* This file is part of WiiClassicControllerReader. +* +* WiiClassicControllerReader is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* WiiClassicControllerReader is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You can find a copy of the GNU General Public License at <http://www.gnu.org/licenses/>. +*/ + +#ifndef ALFREDOG83_I2CCONFIG_H +#define ALFREDOG83_I2CCONFIG_H + +#include <mbed.h> + +class I2CPort_A +{ +public: + static const PinName SDA; + static const PinName SCL; +}; + + +class I2CPort_B +{ +public: + static const PinName SDA; + static const PinName SCL; +}; + +const PinName I2CPort_A::SDA = p9; +const PinName I2CPort_A::SCL = p10; + +const PinName I2CPort_B::SDA = p28; +const PinName I2CPort_B::SCL = p27; + +#endif \ No newline at end of file