SimpleLib_03272011
Embed:
(wiki syntax)
Show/hide line numbers
I2CConfig.h
00001 /* 00002 * WiiClassicControllerReader. A program allowing the output of one or two 00003 * Wii Classic Controllers to be read via I2C and decoded for use, using the mbed 00004 * microcontroller and its associated libraries. 00005 * 00006 * Written by Alfredo Guerrero <alfredog83@gmail.com> for the mbedGC open-source 00007 * game console <http://www.mbedgc.com>. Based on the original code for 00008 * the WiiNunchuckReader written by Petras Saduikis <petras@petras.co.uk>. 00009 * 00010 * This file is part of WiiClassicControllerReader. 00011 * 00012 * WiiClassicControllerReader is free software: you can redistribute it and/or modify 00013 * it under the terms of the GNU General Public License as published by 00014 * the Free Software Foundation, either version 3 of the License, or 00015 * (at your option) any later version. 00016 * 00017 * WiiClassicControllerReader is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU General Public License for more details. 00021 * 00022 * You can find a copy of the GNU General Public License at <http://www.gnu.org/licenses/>. 00023 */ 00024 00025 #ifndef ALFREDOG83_I2CCONFIG_H 00026 #define ALFREDOG83_I2CCONFIG_H 00027 00028 #include <mbed.h> 00029 00030 class I2CPort_A 00031 { 00032 public: 00033 static const PinName SDA; 00034 static const PinName SCL; 00035 }; 00036 00037 00038 class I2CPort_B 00039 { 00040 public: 00041 static const PinName SDA; 00042 static const PinName SCL; 00043 }; 00044 00045 const PinName I2CPort_A::SDA = p9; 00046 const PinName I2CPort_A::SCL = p10; 00047 00048 const PinName I2CPort_B::SDA = p28; 00049 const PinName I2CPort_B::SCL = p27; 00050 00051 #endif
Generated on Fri Jul 15 2022 15:25:50 by
1.7.2