Comments (20)
Created #34 to track XInput / Xbox 360 support.
from nestang.
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.
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.
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.
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.
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.
the S1 button already does that.
from nestang.
Thank you for that information, I did not see it anywhere or maybe I missed it when searching for it.
from nestang.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
@nand2mario I guess this issue can be closed
from nestang.
Related Issues (20)
- sd_file_list_reader's list_namelen is always 8'h00 HOT 1
- ST7789 display support and original nes controller HOT 2
- Outdated Verilator Build Instructions? HOT 2
- Use the BL616/M0S for USB, file system and more HOT 15
- [MMC5 mapper] Faulty emulation of MMC5 HOT 4
- Add support for 4:3 resolution HOT 2
- Super Mario Bros 2p hack - buggy gameplay HOT 3
- Can't synthesis the project. HOT 7
- [Help wanted][Testers] Multitap Four Score support
- add suporte for Family Computer Disk System =) HOT 1
- [Migration to softcore] Some issues bringing up the uC HOT 9
- Softcore not loading HOT 8
- [Enhancements][Cheats] Porting from NES_MISTer
- [0.9][Nano][Cannot load ROM][f_puts failed] Latest master build won't load ROMs HOT 3
- tang nano 20K with blueretro adapter? HOT 3
- 8bitdo N30 2.4g gamepad not working HOT 3
- Screen tearing
- Screen tearing! HOT 1
- exFAT not work and file list load glitches on FAT32
- Stereo Settings
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nestang.