fruit-bat / pico-zxspectrum

ZX Spectrum for Raspberry Pico Pi RP2040
474 stars 52 forks source link

Ability to save to .tap file #120

Open Panagis1980 opened 7 months ago

Panagis1980 commented 7 months ago

Hi there, I am using Bobricius planar in original case, my kid complains that it cannot save its work. Is it planned to create Tape Recorder meny entry like the Tape Player? Selecting file, "Motor On" signifying the record button pressed.

fruit-bat commented 7 months ago

You can save your work with a 'quick save'. The snapshot can be renamed or copied from the menus.

Saving to tape in a way that doesn't create really big files is a little involved. I may have a go at some point.

Panagis1980 commented 7 months ago

Can the original mic output at least be redirected to a pin so we can connect normal datatape recorder?

On Thu, Feb 15, 2024, 8:00 PM fruit-bat @.***> wrote:

You can save your work with a 'quick save'. The snapshot can be renamed or copied from the menus.

Saving to tape in a way that doesn't create really big files is a little involved. I may have a go at some point.

— Reply to this email directly, view it on GitHub https://github.com/fruit-bat/pico-zxspectrum/issues/120#issuecomment-1946789662, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOOOH3RFAD4MRCNJTCYGC3YTZENFAVCNFSM6AAAAABDJ572O6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBWG44DSNRWGI . You are receiving this because you authored the thread.Message ID: @.***>

fruit-bat commented 7 months ago

Unfortunately, it's not quite that simple. The timing of the audio output is approximate. To get the audio input to work I use a PIO processor to buffer and synchronise the signal. I imagine the same would be needed for a 'save' to work (I've lost track now and I not even sure there is one free). I might have a go sometime but the point is it's non-trivial so won't be a quick change.

Panagis1980 commented 7 months ago

Thank you. Final commend. How can someone save a snapshot without USB keyboard and only the original one ? Meaning to press AltShift Fx combination and AltFx to bring it back? I won't bother you again.

On Thu, Feb 15, 2024, 10:46 PM fruit-bat @.***> wrote:

Unfortunately, it's not quite that simple. The timing of the audio output is approximate. To get the audio input to work I use a PIO processor to buffer and synchronise the signal. I imagine the same would be needed for a 'save' to work (I've lost track now and I not even sure there is one free). I might have a go sometime but the point is it's non-trivial so won't be a quick change.

— Reply to this email directly, view it on GitHub https://github.com/fruit-bat/pico-zxspectrum/issues/120#issuecomment-1947313845, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOOOHZFTPKEZ2PWC3RLTRDYTZXYRAVCNFSM6AAAAABDJ572O6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBXGMYTGOBUGU . You are receiving this because you authored the thread.Message ID: @.***>

fruit-bat commented 7 months ago

It's not a bother. Can you tell me which firmware you are using or send a pic of your keyboard.

Panagis1980 commented 7 months ago

PicomputerAukBob. When the Spectrum Plus is closed. I have only access to Reset and Menu. I want my daughter to.be able to save her programs even with snapshot. If we could make a weird combination to simulate the F keys or have a "Save snapshot" in the menu it would be great

On Thu, Feb 15, 2024, 11:00 PM fruit-bat @.***> wrote:

It's not a bother. Can you tell me which firmware you are using or send a pic of your keyboard.

— Reply to this email directly, view it on GitHub https://github.com/fruit-bat/pico-zxspectrum/issues/120#issuecomment-1947331062, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOOOH6R3FNTHSVPRM4KPR3YTZZNZAVCNFSM6AAAAABDJ572O6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBXGMZTCMBWGI . You are receiving this because you authored the thread.Message ID: @.***>

fruit-bat commented 7 months ago

CAPS and the menu button should do it. Give that a try on something quick and let me know if it works.

Panagis1980 commented 7 months ago

Unfortunately not . on bobricius it goes in and out of the menu rapidly flashing the screen

Generaly it is the only thing missing and I believe, since menu can be navigated byt eh real keyboard, it would be easier for you to create menu entry for it instead of playing with keyboard scan codes

From: fruit-bat @.> Sent: Thursday, 15 February, 2024 23:09 To: fruit-bat/pico-zxspectrum @.> Cc: Panagis1980 @.>; Author @.> Subject: Re: [fruit-bat/pico-zxspectrum] Ability to save to .tap file (Issue #120)

CAPS and the menu button should do it. Give that a try on something quick and let me know if it works.

— Reply to this email directly, view it on GitHub https://github.com/fruit-bat/pico-zxspectrum/issues/120#issuecomment-1947342113 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOOOH5W6CMQTPWFWFKU3ATYTZ2OFAVCNFSM6AAAAABDJ572O6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBXGM2DEMJRGM . You are receiving this because you authored the thread.Message ID: @.***>

fruit-bat commented 7 months ago

I agree it might be nicer to have a menu option. Also, not sure the menu 'back' button will be very easy with the case close. Maybe CAPS-Enter for back (Enter generally selects things).

Panagis1980 commented 7 months ago

Sure.

I any case, this will give full functionality of machines that have no usb device and only original keyboard and two buttons externally available.

Internally, there are two buttons that are used as F11-F12, completely useless. 128K mode has 48 basic option that works like a charm.

Cycling through the snapshots currently performed with F9-F10 is redundant. You can just select your image and go.

Same with F3. It can be changed from the menu without usb kb.

If you see that row 2 and above should not be tampered more, I can solder the original reset button (that has a cable) on the left side to get a third one externally, and use on from the internal buttons (Row1) along with menu and reset. Choosing from the below and use it as you see fit.

From: fruit-bat @.> Sent: Thursday, 15 February, 2024 23:23 To: fruit-bat/pico-zxspectrum @.> Cc: Panagis1980 @.>; Author @.> Subject: Re: [fruit-bat/pico-zxspectrum] Ability to save to .tap file (Issue #120)

I agree it might be nicer to have a menu option. Also, not sure the menu 'back' button will be very easy with the case close. Maybe CAPS-Enter for back (Enter generally selects things).

— Reply to this email directly, view it on GitHub https://github.com/fruit-bat/pico-zxspectrum/issues/120#issuecomment-1947361889 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOOOH45M7NM5BXGRGS775TYTZ4CJAVCNFSM6AAAAABDJ572O6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBXGM3DCOBYHE . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AFOOOHZEMSQ2VVUMXVYMDRTYTZ4CJA5CNFSM6AAAAABDJ572O6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTUCJRGC.gif Message ID: @. @.> >

fruit-bat commented 7 months ago

I've not added the menu option yet but have just been doing a little testing. CAPS-Menu is working fine for me with this firmware. I do not get rapid switching between the menu and back. Also, CAPS-Enter works for 'back' in the menu system.

You will need to unzip the following to use it:

ZxSpectrumPicomputerVgaAukBob.uf2.zip

I will still look at adding the menu option but thought this may help in the mean time.

Panagis1980 commented 7 months ago

It worked with this uf2!!!. Wow Reloading it can be done now by the menu so we are good!

It would be interesting if it could create a new file every time you press it(Slot 2, Slot 3 etc.) 64GB space is more than enough. Cleanup should be user’s responsibility

In any case I can rename it if it is something than needs to be preserved. 😉

Thanks again!

From: fruit-bat @.> Sent: Friday, 16 February, 2024 13:24 To: fruit-bat/pico-zxspectrum @.> Cc: Panagis1980 @.>; Author @.> Subject: Re: [fruit-bat/pico-zxspectrum] Ability to save to .tap file (Issue #120)

I've not added the menu option yet but have just been doing a little testing. CAPS-Menu is working fine for me with this firmware. I do not get rapid switching between the menu and back. Also, CAPS-Enter works for 'back' in the menu system.

You will need to unzip the following to use it:

ZxSpectrumPicomputerVgaAukBob.uf2.zip https://github.com/fruit-bat/pico-zxspectrum/files/14310282/ZxSpectrumPicomputerVgaAukBob.uf2.zip

I will still look at adding the menu option but thought this may help in the mean time.

— Reply to this email directly, view it on GitHub https://github.com/fruit-bat/pico-zxspectrum/issues/120#issuecomment-1948214564 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOOOH5BG25EQZEBZCSLUVTYT46U5AVCNFSM6AAAAABDJ572O6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBYGIYTINJWGQ . You are receiving this because you authored the thread.Message ID: @.***>

fruit-bat commented 7 months ago

I've added a save option to the snapshots explorer (6=SAV). On the menu SYMBOL is a period (.) and SHIFT-0 is delete. You can add your own sub folders to the snapshots directory, but you will need to do it on a PC.

Let me know how you get on with it... I think it is much nicer than quick-save followed by copy and rename.

ZxSpectrumPicomputerVgaAukBob.uf2.zip

Panagis1980 commented 7 months ago

It worked like a charm.

I can save with the desired name and load on demand just with the buttons of the keyboard.

Thanks a million.

Panagis

From: fruit-bat @.> Sent: Sunday, February 18, 2024 4:25 PM To: fruit-bat/pico-zxspectrum @.> Cc: Panagis1980 @.>; Author @.> Subject: Re: [fruit-bat/pico-zxspectrum] Ability to save to .tap file (Issue #120)

I've added a save option to the snapshots explorer (6=SAV). On the menu SYMBOL is a period (.) and SHIFT-0 is delete. You can add your own sub folders to the snapshots directory, but you will need to do it on a PC.

Let me know how you get on with it... I think it is much nicer than quick-save followed by copy and rename.

ZxSpectrumPicomputerVgaAukBob.uf2.zip https://github.com/fruit-bat/pico-zxspectrum/files/14322843/ZxSpectrumPicomputerVgaAukBob.uf2.zip

— Reply to this email directly, view it on GitHub https://github.com/fruit-bat/pico-zxspectrum/issues/120#issuecomment-1951341259 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOOOH46VJZKFHJ55QUUIQ3YUIFMTAVCNFSM6AAAAABDJ572O6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJRGM2DCMRVHE . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AFOOOHYVZXF3AWC7HCOY74DYUIFMTA5CNFSM6AAAAABDJ572O6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTUJ4NMW.gif Message ID: @. @.> >