The original snake game for the mbedgc
Dependencies: mbed EthernetNetIf HTTPClient
Fork of SimpleLib_03272011 by
mbedGC/I2CConfig.h@0:011be8250218, 2011-04-02 (annotated)
- Committer:
- jp
- Date:
- Sat Apr 02 23:23:07 2011 +0000
- Revision:
- 0:011be8250218
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jp | 0:011be8250218 | 1 | /* |
jp | 0:011be8250218 | 2 | * WiiClassicControllerReader. A program allowing the output of one or two |
jp | 0:011be8250218 | 3 | * Wii Classic Controllers to be read via I2C and decoded for use, using the mbed |
jp | 0:011be8250218 | 4 | * microcontroller and its associated libraries. |
jp | 0:011be8250218 | 5 | * |
jp | 0:011be8250218 | 6 | * Written by Alfredo Guerrero <alfredog83@gmail.com> for the mbedGC open-source |
jp | 0:011be8250218 | 7 | * game console <http://www.mbedgc.com>. Based on the original code for |
jp | 0:011be8250218 | 8 | * the WiiNunchuckReader written by Petras Saduikis <petras@petras.co.uk>. |
jp | 0:011be8250218 | 9 | * |
jp | 0:011be8250218 | 10 | * This file is part of WiiClassicControllerReader. |
jp | 0:011be8250218 | 11 | * |
jp | 0:011be8250218 | 12 | * WiiClassicControllerReader is free software: you can redistribute it and/or modify |
jp | 0:011be8250218 | 13 | * it under the terms of the GNU General Public License as published by |
jp | 0:011be8250218 | 14 | * the Free Software Foundation, either version 3 of the License, or |
jp | 0:011be8250218 | 15 | * (at your option) any later version. |
jp | 0:011be8250218 | 16 | * |
jp | 0:011be8250218 | 17 | * WiiClassicControllerReader is distributed in the hope that it will be useful, |
jp | 0:011be8250218 | 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
jp | 0:011be8250218 | 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
jp | 0:011be8250218 | 20 | * GNU General Public License for more details. |
jp | 0:011be8250218 | 21 | * |
jp | 0:011be8250218 | 22 | * You can find a copy of the GNU General Public License at <http://www.gnu.org/licenses/>. |
jp | 0:011be8250218 | 23 | */ |
jp | 0:011be8250218 | 24 | |
jp | 0:011be8250218 | 25 | #ifndef ALFREDOG83_I2CCONFIG_H |
jp | 0:011be8250218 | 26 | #define ALFREDOG83_I2CCONFIG_H |
jp | 0:011be8250218 | 27 | |
jp | 0:011be8250218 | 28 | #include <mbed.h> |
jp | 0:011be8250218 | 29 | |
jp | 0:011be8250218 | 30 | class I2CPort_A |
jp | 0:011be8250218 | 31 | { |
jp | 0:011be8250218 | 32 | public: |
jp | 0:011be8250218 | 33 | static const PinName SDA; |
jp | 0:011be8250218 | 34 | static const PinName SCL; |
jp | 0:011be8250218 | 35 | }; |
jp | 0:011be8250218 | 36 | |
jp | 0:011be8250218 | 37 | |
jp | 0:011be8250218 | 38 | class I2CPort_B |
jp | 0:011be8250218 | 39 | { |
jp | 0:011be8250218 | 40 | public: |
jp | 0:011be8250218 | 41 | static const PinName SDA; |
jp | 0:011be8250218 | 42 | static const PinName SCL; |
jp | 0:011be8250218 | 43 | }; |
jp | 0:011be8250218 | 44 | |
jp | 0:011be8250218 | 45 | const PinName I2CPort_A::SDA = p9; |
jp | 0:011be8250218 | 46 | const PinName I2CPort_A::SCL = p10; |
jp | 0:011be8250218 | 47 | |
jp | 0:011be8250218 | 48 | const PinName I2CPort_B::SDA = p28; |
jp | 0:011be8250218 | 49 | const PinName I2CPort_B::SCL = p27; |
jp | 0:011be8250218 | 50 | |
jp | 0:011be8250218 | 51 | #endif |