Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 16:28 18 Oct 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : PicoRocks - A Teaser

     Page 7 of 7    
Author Message
Bleep
Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 492
Posted: 04:40pm 30 Aug 2024
Copy link to clipboard 
Print this post

It's just that if I use a USB Picomite I have a USB keyboard plugged in already, & and it has an internal hub, with 3 USB sockets along the back, so it would be very easy to use. I already have a Wii controller, for which I made an extension cable with connector on the end to go to the connector along the back of the Game*Mite, sounds like I'll have to try bringing out the same connections & use that, I was hoping to not have to bring out more connections. :-(
Regards Kevin.
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4013
Posted: 04:43pm 30 Aug 2024
Copy link to clipboard 
Print this post

  Bleep said  It's just that if I use a USB Picomite I have a USB keyboard plugged in already, & and it has an internal hub, with 3 USB sockets along the back...


I'll try and find time to give my own PicoMiteVGA USB a poke over the weekend, I'll check if my Buffalo USB controller works with it ... of course a game would have to be adapted to read it.

Best wishes,

Tom
Edited 2024-08-31 02:46 by thwill
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4013
Posted: 05:21pm 30 Aug 2024
Copy link to clipboard 
Print this post

  Volhout said  This code has an alpha version of pixel dust, and has fixed your complaint about the asteroid size (4 forum pages earlier).


Had a very quick play (I really need to get MMB4L into a shape I can share, it is so convenient to be able to test this on my laptop without all the messing about with SD cards and/or XMODEM and the real hardware).

Very impressive "pixel dust", I wonder if fewer particles that travel further and (by reducing the number of particles) having multiple explosions occurring simultaneously would look better.

I have noticed that the UFOs can occasionally disappear randomly without me having apparently shot them ?

Keep up the good work,

Tom
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4013
Posted: 06:04pm 30 Aug 2024
Copy link to clipboard 
Print this post

So that others can join the fun here's a quickly hacked together version with CMM2 + Wii Classic support:

rocks14-thwill.zip

In theory this single file should work on both PicoMiteVGA and CMM2, but I haven't tested on the real hardware so it is possible, however unlikely, that the additional processor "load" on the PicoMiteVGA may not be negligible.

Best wishes,

Tom
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 1988
Posted: 06:07pm 30 Aug 2024
Copy link to clipboard 
Print this post

To show all toolbars, select 'Show full menus' in Setup menu
Connected to COM11 at 115200
option list
PicoMiteVGA MMBasic USB Edition  5.09.00RC5
OPTION SERIAL CONSOLE COM2,GP8,GP9
OPTION AUTORUN  ON
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION KEYBOARD UK
OPTION CPUSPEED (KHz) 252000
> OPTION AUDIO GP0, GP1
Error : Pin 2/GP1 is in use
>

I had this before and commented playmod to get it to work
not a clue, you got to get used to not bright coders :(
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 1988
Posted: 07:03pm 30 Aug 2024
Copy link to clipboard 
Print this post

using usb vga and picorock 13 graphics ok but ship just rotates, on it's own and keyboard does nothing
' PicoRocks in Space - Teaser
'
' written by Vegipete, Jan 2024
' Ported from CMM2 (somewhat)
'
' needs:
' OPTION CPUSPEED 252000 (KHz)

'=============================================================================
' Versions
' rocks1      'adapt VegiPete version to 640x80, copy some from CMM2 version
' rocks2      'fly the ship
' rocks3      'fire gun, detect asteroid hit
' rocks4      'hit asteroids, split when hit, clear keyboard buffer

Option DEFAULT INTEGER
Option LCDPANEL NOCONSOLE
option angle degrees
'mode 1 '@Volhout MODE 2
works
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4013
Posted: 07:10pm 30 Aug 2024
Copy link to clipboard 
Print this post

Stan,

Try rocks14-thwill.

Set USE_NES and USE_KEYBOARD both = 0 on lines 37 + 38.

Best wishes,

Tom
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 1988
Posted: 11:27pm 30 Aug 2024
Copy link to clipboard 
Print this post

it's technically gone tits up.
picomite 2040,vga 2040,usb pico2040, usb vga 2o40 and all pico2 versions.
I lost the thread'
the usb serial to ttl is a male socket and plugging into a usb2male to female lead unreliable.
looking for female usb serial to ttl
I only got bread board vga pico. solder stripboard tomorrow
got vga sockets and gonna use mcp23017 i2c 16 pin expander for key input.
the usb vga is nice but serial usb to ttl is 5v power and all my connections fail.
thing is do I use a keyboard in a program? no. so why bother with usb ?
gonna do a nice stripboard normal vga tomorrow. got a pack of 5 inductors for sound filter,3 left. veecad handy. I'll be using pico blue usb c. seem ok
these vga sockets are <£2 for 2

 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 1988
Posted: 12:29am 31 Aug 2024
Copy link to clipboard 
Print this post

the female to male serial usb to ttl is a pain.drops out and tried a few

 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 1988
Posted: 09:55pm 31 Aug 2024
Copy link to clipboard 
Print this post



I forgot how to do sound .doh
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 1988
Posted: 10:08pm 31 Aug 2024
Copy link to clipboard 
Print this post

v13 working if I comment playmod. Twills less joy-error pc3 or begin with p. thanks anyway, I'll retry.
usb vga pico2... so interesting 2040 stuff on pico2
with usb then 5v from serial ttl to pin 40 5v sys. I stuck it into socket 40 not soldered hence my problems. soldered and stable.. no windows dinky ding dinky dong.
haven't tried i2c buttons cos ship action is too slow
Edited 2024-09-01 08:59 by stanleyella
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4117
Posted: 07:07am 01 Sep 2024
Copy link to clipboard 
Print this post

Stan,

I have extensively played version rocks14.bas and it is very playable and entertaining using either ps2 keyboard, or nes controller.

I am working on other controllers but do not have any usb controllers nor do I have a usb keyboard on pico.

I2C controllers are fast enough for this game.

Volhout
Edited 2024-09-01 17:08 by Volhout
PicomiteVGA PETSCII ROBOTS
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 1988
Posted: 03:27pm 01 Sep 2024
Copy link to clipboard 
Print this post

rocks13.bas
> option list
PicoMiteVGA MMBasic USB Edition  6.00.00b2
OPTION SERIAL CONSOLE COM2,GP8,GP9
OPTION AUTORUN  ON
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION KEYBOARD UK
OPTION CPUSPEED (KHz) 378000
OPTION SDCARD GP13, GP10, GP11, GP12
OPTION AUDIO GP0,GP1', ON PWM CHANNEL 0
>
> b:
> files
B:/
19:26 01-08-2024      68506  RISsound.mod
16:48 30-08-2024      44556  sfx-bg.mod
22:39 29-03-2023   55342378  t1.wav
21:11 02-04-2023   65642368  t2.wav
0 directories, 4 files
>
> run
[105] Play modfile "sfx-bg.mod" '"RISsound.mod"
Error : Mod playback not enabled
>
Dunno what's wrong. I did have sound with 2040. maybe pico2 problem.
Graphics are great. this is pico2 usb vga.. someone's got to test it. regards, stan
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4013
Posted: 04:08pm 01 Sep 2024
Copy link to clipboard 
Print this post

Stan, I think you must have forgotten, if you are going to use PLAY MOD then you have always had to preallocate some of the flash to it, e.g. at the prompt:

OPTION MODBUFF ENABLE 192

WARNING! this will erase the contents of A: drive.

Good luck,

Tom
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 1988
Posted: 04:58pm 01 Sep 2024
Copy link to clipboard 
Print this post

This will erase everything in flash including the A: drive - are you sure (Y/N) ?
Error : Could not find the file
> UK USB Keyboard Connected on channel 1
> Generic Gamepad Connected on channel 2
>
> run
[105] Play modfile "sfx-bg.mod" '"RISsound.mod"
Error : Could not find the file
> option list
PicoMiteVGA MMBasic USB Edition  6.00.00b2
OPTION SERIAL CONSOLE COM2,GP8,GP9
OPTION AUTORUN  ON
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION KEYBOARD UK
OPTION CPUSPEED (KHz) 378000
OPTION SDCARD GP13, GP10, GP11, GP12
OPTION AUDIO GP0,GP1', ON PWM CHANNEL 0
OPTION MODBUFF ENABLE  192
> C:\Users\stanley555\Downloads\2024-08-30_055145_rocks13\rocks13.bas
Uploading using:  'target port\COM11:115200 s\picomite
Upload started
NEW
>
autosave

Upload completed 1

Saved 22332 bytes
>
Time taken: 20525mS
RUN
[105] Play modfile "sfx-bg.mod" '"RISsound.mod"
Error : Could not find the file
>

it was   play modfile "b:\sfx-bg.mod" '"RISsound.mod"
now it plays and sound.. got level 3
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 1988
Posted: 08:43pm 03 Sep 2024
Copy link to clipboard 
Print this post

an observation, pico 2,vga usb rocks13
It's autorun using pc to female usb for power. open mmcc then the pc keyboard works and the usb kb can be disconnected. the pc keyboard is much more responsive than usb.
how's pc kb works when mmedit mmcontrol centre enabled? it's usb
how to get wrap around missiles again?  not moaning. it's great. shows lots of features/methods.
Edited 2024-09-04 07:49 by stanleyella
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 1988
Posted: 12:51am 04 Sep 2024
Copy link to clipboard 
Print this post

it's strange I can use the pc keyboard to play rocks13 on usb vga 2350/pico 2 just opening mmcontrol centre.was this always possible or is it usb only cos I wouldn't need as in this case usb as I've unplugged it and using win pc kb
 
     Page 7 of 7    
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024