NES emulator on an ESP32

User avatar
ESP_krzychb
Posts: 400
Joined: Sat Oct 01, 2016 9:05 am
Contact:

Re: NES emulator on an ESP32

Postby ESP_krzychb » Tue Jan 10, 2017 2:56 pm

Hi a2retro,
To fix back-light check http://www.esp32.com/viewtopic.php?f=17&t=325#p3823 by rudi.

a2retro
Posts: 56
Joined: Tue Dec 01, 2015 3:09 am

Re: NES emulator on an ESP32

Postby a2retro » Tue Jan 10, 2017 3:02 pm

Okay so I looked more closely at the change documented by Rudi above and the back-light works as expected. :D
I looked at that last night but it was late - that's my story ...

a2retro
Posts: 56
Joined: Tue Dec 01, 2015 3:09 am

Re: NES emulator on an ESP32

Postby a2retro » Tue Jan 10, 2017 3:37 pm

Seems like I make one step forward and then step back again.
After updated esp-idf to the latest code i get this message

$ make flash
make[1]: *** No rule to make target 'libcoap/src/address.o', needed by 'libcoap.a'. Stop.
make: *** [/home/Glenn/src/esp-idf/make/project.mk:378: coap-build] Error 2

my libcoap dir is empty

i see it's a submodule - not sure why it's not being pulled in

Edit: recloned with --recursive worked as well. It seemed odd as initially I saw other submodules automatically pulled down but not libcoap for some reason
Last edited by a2retro on Tue Jan 10, 2017 5:37 pm, edited 1 time in total.

User avatar
ESP_krzychb
Posts: 400
Joined: Sat Oct 01, 2016 9:05 am
Contact:

Re: NES emulator on an ESP32

Postby ESP_krzychb » Tue Jan 10, 2017 3:52 pm


User avatar
rudi ;-)
Posts: 1727
Joined: Fri Nov 13, 2015 3:25 pm

Re: NES emulator on an ESP32

Postby rudi ;-) » Tue Jan 10, 2017 5:19 pm

:D

hi guys,
what you think?
can we save ROMS to sd card (yes )
make a menue for selecting from this ( yes )
after select, ROM cpy to nmap (yes )
is no sdcard found, load "factory" 0x10000
return romdata (yes)

perhaps we can nmap sdcard (raw) too (usually yes) 8-) vfat? :idea:

best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: NES emulator on an ESP32

Postby ESP_igrr » Tue Jan 10, 2017 6:21 pm

Unfortunately, we can't mmap SD cards like we can mmap SPI flash. Flash MMU only knows how to use SPI0 peripheral to talk to SPI flash chips. But copying from SD into flash and mmap-ing the flash is certainly doable.

User avatar
rudi ;-)
Posts: 1727
Joined: Fri Nov 13, 2015 3:25 pm

Re: NES emulator on an ESP32

Postby rudi ;-) » Thu Feb 09, 2017 9:50 pm

ESP_igrr wrote:..But copying from SD into flash and mmap-ing the flash is certainly doable.
yes , first steps now it works from sdhc now too, txs ivan.
play with a menu just in time for simple selection and load the next game :mrgreen:
IMG_5892_s.jpg
IMG_5892_s.jpg (93.46 KiB) Viewed 18152 times
if esp_sprite too busy at the time for sound... i will try this next time too, but not sure how this comes in steps.. must read in deeper first.

best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

Redvenger
Posts: 2
Joined: Mon Mar 27, 2017 2:19 pm

Re: NES emulator on an ESP32

Postby Redvenger » Mon Mar 27, 2017 2:21 pm

rudi ;-) wrote:hi

cause tested with ESP32 WROVER KIT V2 ( black )
found out, that we must change a small thing.

https://github.com/espressif/esp32-nese ... _lcd.c#L53

Code: Select all

/*orig WROVER KIT 1 ( red ) Backlight active high! */
// #define LCD_BKG_ON()    GPIO.out_w1ts = (1 << PIN_NUM_BCKL) // Backlight ON
// #define LCD_BKG_OFF()   GPIO.out_w1tc = (1 << PIN_NUM_BCKL) //Backlight OFF

/*rudi mod 06 jan 2017 on WROVER KIT V2 ( black ) Backlight active low! */
#define LCD_BKG_OFF()    GPIO.out_w1ts = (1 << PIN_NUM_BCKL) // Backlight OFF
#define LCD_BKG_ON()     GPIO.out_w1tc = (1 << PIN_NUM_BCKL) //Backlight ON

txs for your great work Jeroen!
now i need a PS1/PS2 Controller :mrgreen:
i usually do not play ;-) so sorry for this i have not PS1/PS2 controller here :oops:

IMG_5832_s.jpg
see a sequenze on twitter

best wishes
rudi ;-)
The screen looks great, what is the LCD size of this one? And what model is it? Thanks

User avatar
rudi ;-)
Posts: 1727
Joined: Fri Nov 13, 2015 3:25 pm

Re: NES emulator on an ESP32

Postby rudi ;-) » Mon Mar 27, 2017 3:58 pm

hi

if you lookup in the pdf shematic of wrover
screen_Z320IT010.jpg
screen_Z320IT010.jpg (56.16 KiB) Viewed 17981 times
you see Z320IT010 and it is a 240RGBx320 3.2" screen sheet from here

hope this helps
best wishes
rudi ;-)

edit:
look up 1

look up 2
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

Redvenger
Posts: 2
Joined: Mon Mar 27, 2017 2:19 pm

Re: NES emulator on an ESP32

Postby Redvenger » Sat Apr 01, 2017 8:47 am

rudi ;-) wrote:hi

if you lookup in the pdf shematic of wrover
screen_Z320IT010.jpg
you see Z320IT010 and it is a 240RGBx320 3.2" screen sheet from here

hope this helps
best wishes
rudi ;-)

edit:
look up 1

look up 2

Thanks it looks awesome

Who is online

Users browsing this forum: No registered users and 23 guests