Giter Club home page Giter Club logo

Comments (20)

nand2mario avatar nand2mario commented on May 18, 2024 1

Created #34 to track XInput / Xbox 360 support.

from nestang.

mariogazziro avatar mariogazziro commented on May 18, 2024 1

v0.5rc - The Tang Nano 20K Release

SD card support. Now games can be loaded through a MicroSD card. Use tools/nes2img.py to generate the SD card image. A simple menu system allows easy navigation. Press S1 button on the board to return to menu.

from nestang.

nand2mario avatar nand2mario commented on May 18, 2024 1

but i would appreciate an menu option in IO pins too, since is very hard to wire a external push button from S1 smd device

Button S1 and pin 48 are both resets.

from nestang.

fjpolo avatar fjpolo commented on May 18, 2024 1

Would something like this work for a gamepad button combination? (let's say SELECT+START):

reg [7:0] reset_cnt = 255;      // reset for 255 cycles before start everything
always @(posedge clk) begin
    reset_cnt <= reset_cnt == 0 ? 0 : reset_cnt - 1;
    if (reset_cnt == 0)
        sys_resetn <= ~s1 & ~reset2 | ~(nes_btn[4] & nes_btn[5]);
end``

This would mean using some LEs, but not that many:
![image](https://github.com/nand2mario/nestang/assets/9550134/f51865b5-a630-4c16-92d7-66aa929b84ec)
![image](https://github.com/nand2mario/nestang/assets/9550134/1f1df9f5-b9ac-4a48-9b46-4bd68f35434f)

from nestang.

nand2mario avatar nand2mario commented on May 18, 2024 1

That piece of code is actually committed after 0.7.1 so you'll need to build from source, or I will put up a test build when I get a chance.

That would be appreciated if you could.

Try this: https://github.com/nand2mario/nestang/releases/tag/v0.7.2rc

from nestang.

Helder1981 avatar Helder1981 commented on May 18, 2024

Thanks for that, but any info on the button combo? Can we maybe add a button to one of the Tango GPIO to cause a Reset back to the menu?

from nestang.

mariogazziro avatar mariogazziro commented on May 18, 2024

the S1 button already does that.

from nestang.

Helder1981 avatar Helder1981 commented on May 18, 2024

Thank you for that information, I did not see it anywhere or maybe I missed it when searching for it.

from nestang.

mariogazziro avatar mariogazziro commented on May 18, 2024

but i would appreciate an menu option in IO pins too, since is very hard to wire a external push button from S1 smd device

from nestang.

Helder1981 avatar Helder1981 commented on May 18, 2024

but i would appreciate an menu option in IO pins too, since is very hard to wire a external push button from S1 smd device

I just checked the schematic and unfortunately the GPIO 88 is not broken out to any of the header pins. But maybe some kind of code can be written to implement the the Menu Return with a controller button combo.

from nestang.

mariogazziro avatar mariogazziro commented on May 18, 2024

well, its a reset in name purposes only. can be attached to any part of the cpu. but even acting like a reset, does the job to rertun to menu.

from nestang.

mariogazziro avatar mariogazziro commented on May 18, 2024

i dont think that a combo joystick button is necessary since we well need to add several LEs do filter de input and may compromises the response time of the joysticks inside nes hardware emulation.. a simple wire connecting this reset pin to gpio would help.

from nestang.

Helder1981 avatar Helder1981 commented on May 18, 2024

but i would appreciate an menu option in IO pins too, since is very hard to wire a external push button from S1 smd device

Button S1 and pin 48 are both resets.

I just tested this and pin 48 to 3.3v did not do anything neither to GND so is it a different pin other than 48 that is also reset?

from nestang.

Helder1981 avatar Helder1981 commented on May 18, 2024

i dont think that a combo joystick button is necessary since we well need to add several LEs do filter de input and may compromises the response time of the joysticks inside nes hardware emulation.. a simple wire connecting this reset pin to gpio would help.

Once I get confirmation of what pin actually causes Reset and test it I will likely add code into the ESP32 (BlueRetro) so that Home Buttons on wireless controllers trigger that pin to cause a reset so this way it does not affect any of the LE on the FPGA.

from nestang.

nand2mario avatar nand2mario commented on May 18, 2024

i dont think that a combo joystick button is necessary since we well need to add several LEs do filter de input and may compromises the response time of the joysticks inside nes hardware emulation.. a simple wire connecting this reset pin to gpio would help.

Once I get confirmation of what pin actually causes Reset and test it I will likely add code into the ESP32 (BlueRetro) so that Home Buttons on wireless controllers trigger that pin to cause a reset so this way it does not affect any of the LE on the FPGA.

That piece of code is actually committed after 0.7.1 so you'll need to build from source, or I will put up a test build when I get a chance.

from nestang.

Helder1981 avatar Helder1981 commented on May 18, 2024

That piece of code is actually committed after 0.7.1 so you'll need to build from source, or I will put up a test build when I get a chance.

That would be appreciated if you could.

from nestang.

Helder1981 avatar Helder1981 commented on May 18, 2024

That piece of code is actually committed after 0.7.1 so you'll need to build from source, or I will put up a test build when I get a chance.

That would be appreciated if you could.

Try this: https://github.com/nand2mario/nestang/releases/tag/v0.7.2rc

That works perfect now. I'm going to see if I can make the home button enable a pin high on the esp32 and tie it to pin 48 to cause an exit of the game back to the menu.

from nestang.

fjpolo avatar fjpolo commented on May 18, 2024

This branch should let the user use Start+Select to reset the system: fjpolo/dev_ResetButtonCombo

Bitstream:
NESTang_0v8_SelectStartResetCombo.zip

⚠I use a cheap USB SNES controller, using both this combination and button reset bugs the USB gamepad. But I think it's because of the gamepad itself

from nestang.

fjpolo avatar fjpolo commented on May 18, 2024

As an update: NESGamepad module will support original NES joysticks, meaning it supports 8BitDo joysticks and its Home button (Select+Dn button combo)

from nestang.

fpolomimi avatar fpolomimi commented on May 18, 2024

@nand2mario I guess this issue can be closed

from nestang.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.