David Rimer
/
Gigatron_Emulator
A small emulator for the gigatron created for the STM32F746G-DISCO and an NES wii controller
WiiClassicControllerReader/I2CConfig.h@1:4c1f3d32fceb, 2020-03-05 (annotated)
- Committer:
- davidr99
- Date:
- Thu Mar 05 01:33:52 2020 +0000
- Revision:
- 1:4c1f3d32fceb
Emulator all one project
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
davidr99 | 1:4c1f3d32fceb | 1 | /* |
davidr99 | 1:4c1f3d32fceb | 2 | * WiiClassicControllerReader. A program allowing the output of one or two |
davidr99 | 1:4c1f3d32fceb | 3 | * Wii Classic Controllers to be read via I2C and decoded for use, using the mbed |
davidr99 | 1:4c1f3d32fceb | 4 | * microcontroller and its associated libraries. |
davidr99 | 1:4c1f3d32fceb | 5 | * |
davidr99 | 1:4c1f3d32fceb | 6 | * Written by Alfredo Guerrero <alfredog83@gmail.com> for the mbedGC open-source |
davidr99 | 1:4c1f3d32fceb | 7 | * game console <http://www.mbedgc.com>. Based on the original code for |
davidr99 | 1:4c1f3d32fceb | 8 | * the WiiNunchuckReader written by Petras Saduikis <petras@petras.co.uk>. |
davidr99 | 1:4c1f3d32fceb | 9 | * |
davidr99 | 1:4c1f3d32fceb | 10 | * This file is part of WiiClassicControllerReader. |
davidr99 | 1:4c1f3d32fceb | 11 | * |
davidr99 | 1:4c1f3d32fceb | 12 | * WiiClassicControllerReader is free software: you can redistribute it and/or modify |
davidr99 | 1:4c1f3d32fceb | 13 | * it under the terms of the GNU General Public License as published by |
davidr99 | 1:4c1f3d32fceb | 14 | * the Free Software Foundation, either version 3 of the License, or |
davidr99 | 1:4c1f3d32fceb | 15 | * (at your option) any later version. |
davidr99 | 1:4c1f3d32fceb | 16 | * |
davidr99 | 1:4c1f3d32fceb | 17 | * WiiClassicControllerReader is distributed in the hope that it will be useful, |
davidr99 | 1:4c1f3d32fceb | 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
davidr99 | 1:4c1f3d32fceb | 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
davidr99 | 1:4c1f3d32fceb | 20 | * GNU General Public License for more details. |
davidr99 | 1:4c1f3d32fceb | 21 | * |
davidr99 | 1:4c1f3d32fceb | 22 | * You can find a copy of the GNU General Public License at <http://www.gnu.org/licenses/>. |
davidr99 | 1:4c1f3d32fceb | 23 | */ |
davidr99 | 1:4c1f3d32fceb | 24 | |
davidr99 | 1:4c1f3d32fceb | 25 | #ifndef ALFREDOG83_I2CCONFIG_H |
davidr99 | 1:4c1f3d32fceb | 26 | #define ALFREDOG83_I2CCONFIG_H |
davidr99 | 1:4c1f3d32fceb | 27 | |
davidr99 | 1:4c1f3d32fceb | 28 | #include <mbed.h> |
davidr99 | 1:4c1f3d32fceb | 29 | |
davidr99 | 1:4c1f3d32fceb | 30 | class I2CPort_A |
davidr99 | 1:4c1f3d32fceb | 31 | { |
davidr99 | 1:4c1f3d32fceb | 32 | public: |
davidr99 | 1:4c1f3d32fceb | 33 | static const PinName SDA; |
davidr99 | 1:4c1f3d32fceb | 34 | static const PinName SCL; |
davidr99 | 1:4c1f3d32fceb | 35 | }; |
davidr99 | 1:4c1f3d32fceb | 36 | |
davidr99 | 1:4c1f3d32fceb | 37 | const PinName I2CPort_A::SDA = PB_9; |
davidr99 | 1:4c1f3d32fceb | 38 | const PinName I2CPort_A::SCL = PB_8; |
davidr99 | 1:4c1f3d32fceb | 39 | |
davidr99 | 1:4c1f3d32fceb | 40 | #endif |