Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/nes2wii.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2014-01-12 09:57:05 +0400
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2014-01-12 09:57:05 +0400
commitaf0227d0a3543fcc28eab28fca38c6e4aaab2af5 (patch)
tree27577db1634f27d8176ddd05b07459f6d65a5499 /main.c
parentc81017d7874567351f6b5e5453f2e68e9ec6e944 (diff)
Code clean up
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/main.c b/main.c
index 8bd9bea..2822344 100644
--- a/main.c
+++ b/main.c
@@ -22,7 +22,6 @@ const unsigned char cal_data[32] = {
void wiimote_query()
{
- //PORTD ^= 1<<7;
}
uint8_t get_nes_gamepad()
@@ -45,11 +44,9 @@ uint8_t get_nes_gamepad()
int main()
{
- //DDRD = 1<<7;
- //PORTD = 0;
NES_PORT_DDR |= 1<<NES_LATCH_PIN; // Latch
NES_PORT_DDR |= 1<<NES_CLOCK_PIN; // Clock
- NES_PORT |= 1<<NES_DATA_PIN; // Data, подтяжка
+ NES_PORT |= 1<<NES_DATA_PIN; // Data, pull-up
unsigned char but_dat[6]; // struct containing button data
but_dat[0] = 0b01011111; // RX<4:3> LX<5:0>