Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 20:56 06 May 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 : CMM2: V5.05.06RC1

     Page 2 of 4    
Author Message
elk1984

Senior Member

Joined: 11/07/2020
Location: United Kingdom
Posts: 227
Posted: 06:54pm 16 Oct 2020
Copy link to clipboard 
Print this post

  matherp said  V5.05.06RC3 now posted

This release includes a new "amazing" cursor capability and support for the Hobbytronics mouse I/F


Thanks Peter - great work as always!  Is there a way to tell if a mouse is actually connected to the interface?  As the board is "always on", I think there's a way by reading the mouse parameters to check if something is plugged into the USB port.

I'm now definitely in the market for siwypiotr's CMM 2 Deluxe Edition
 
Sasquatch

Senior Member

Joined: 08/05/2020
Location: United States
Posts: 296
Posted: 07:06pm 16 Oct 2020
Copy link to clipboard 
Print this post

  mclout999 said  It looks like the Hobytronics is the easiest way to get a mouse now so, is there any way to build a Hobytroinic mouse without paying like 26 to 40 dollars to get one anywhere else but the UK? Covad is Kicking my ass and I would like cheaper option. If not Then I will get one when I can scrap together some money. I hope there is a way to roll your own cheaper.  That CMM2 Delux from Polish vendor is going to have a socket for that chip and HT is saying they sell the programmed chip for about $10 plus $6 shipping to US.  I am not sure what to do.  Maybe I will also wait until this becomes the defacto standard going forward FOR SURE. Any help would be appeaciated.  Thanks


If it helps any, they only charged me $18.95 USD for the module and $6.91 USD for airmail shipping.  It arrived in just under a week!  The price listed on the website includes VAT tax which is not charged if the order is shipped outside the UK.

If you're not in a big hurry, hang tight.  It sounds like there may be lower cost options in the works.
-Carl
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8594
Posted: 10:14am 17 Oct 2020
Copy link to clipboard 
Print this post

V5.05.06RC4 now posted
http://geoffg.net/Downloads/Maximite/CMM2_Beta.zip

  Quote  There is an inconsistency between BLIT and BLIT READ/WRITE.


This was a bug in both the manual and the code. New manual entry:

BLIT WRITE [#]b, x, y [,orientation]

BLIT WRITE will copy the memory buffer '#b' to the display.  The destination coordinates are 'x' and 'y' using the width/height of the buffer.
The optional 'orientation' parameter defaults to 0 and specifies how the stored image data is changed as it is written out. It is the bitwise AND of the following values:
&B001 = mirrored left to right
&B010 = mirrored top to bottom
&B100 = don't copy transparent pixels

  Quote   Is there a way to tell if a mouse is actually connected to the interface?

Not as far as I can see. If the mouse isn't connected the return x and y coordinates just stay the same as when the mouse was initialised.
 
MauroXavier
Guru

Joined: 06/03/2016
Location: Brazil
Posts: 303
Posted: 04:56pm 17 Oct 2020
Copy link to clipboard 
Print this post

I was using the RC1, but now when updating to V5.05.06RC4 my wii classic controller don´t work anymore.

When I try to use the "WII CLASSIC OPEN" command, it shows:

Classic not connected
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8594
Posted: 05:08pm 17 Oct 2020
Copy link to clipboard 
Print this post

Works fine for me

Try reflashing

CMM2V1.5.zip
 
MauroXavier
Guru

Joined: 06/03/2016
Location: Brazil
Posts: 303
Posted: 06:13pm 17 Oct 2020
Copy link to clipboard 
Print this post

Sorry!

This crap classic Chinese control sank the pin again. When not using, I was left the control disconnected, now I fixed the pin for the second time and I will leave it always connected.

That´s all right now, Isn´t a firmware bug... It´s a controller (and user) bug...  
 
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1083
Posted: 07:23pm 17 Oct 2020
Copy link to clipboard 
Print this post

Should the command "blit close 64" result in "Error in line 357: sprite internal error"?

"blit write 64,x,y" on the previous line didn't appear to do anything.
Not specific to '64', other values behave the same.
Blit size is 300 x 218 in this case
Mode 2,16 although 1,8 does it too.
V5.05.06RC4 - worked fine with RC2
Visit Vegipete's *Mite Library for cool programs.
 
mclout999
Guru

Joined: 05/07/2020
Location: United States
Posts: 430
Posted: 08:19pm 17 Oct 2020
Copy link to clipboard 
Print this post

  Sasquatch said  
  mclout999 said  It looks like the Hobytronics is the easiest way to get a mouse now so, is there any way to build a Hobytroinic mouse without paying like 26 to 40 dollars to get one anywhere else but the UK? Covad is Kicking my ass and I would like cheaper option. If not Then I will get one when I can scrap together some money. I hope there is a way to roll your own cheaper.  That CMM2 Delux from Polish vendor is going to have a socket for that chip and HT is saying they sell the programmed chip for about $10 plus $6 shipping to US.  I am not sure what to do.  Maybe I will also wait until this becomes the defacto standard going forward FOR SURE. Any help would be appeaciated.  Thanks


If it helps any, they only charged me $18.95 USD for the module and $6.91 USD for airmail shipping.  It arrived in just under a week!  The price listed on the website includes VAT tax which is not charged if the order is shipped outside the UK.

If you're not in a big hurry, hang tight.  It sounds like there may be lower cost options in the works.
Thanks.  Also I am waiting to see what the guys that are trying to make a work alike devices.  I really do like the idea of not relying on a proprietary device with ONE source. That is why this community is so good.  They have given us a standard to work towards and now there are a least 2 attempts to make an open and affordable solution.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8594
Posted: 09:39pm 17 Oct 2020
Copy link to clipboard 
Print this post

Should the command "blit close 64" result in "Error in line 357: sprite internal error"?

Code?
 
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1083
Posted: 09:57pm 17 Oct 2020
Copy link to clipboard 
Print this post

This fails miserably on my system:
mode 1,8
cls
' fill the screen with something
for i = 1 to 40
 for j = 1 to 25
   print @(j*25+i,i*12) "#"
 next j
next i

blit read 64, 100,100,200,150 ' copy a block of screen
box 100,100,200,150,1,0,0     ' clear the block
blit write 64,100,100         ' restore the block
blit close 64                 ' release the buffer KABOOM

Visit Vegipete's *Mite Library for cool programs.
 
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1083
Posted: 10:02pm 17 Oct 2020
Copy link to clipboard 
Print this post

This works, but doesn't release the blit buffer.
mode 1,8
cls
' fill the screen with something
for i = 1 to 40
 for j = 1 to 25
   print @(j*25+i,i*12) "#"
 next j
next i

blit read 64, 100,100,200,150 ' copy a block of screen
box 100,100,200,150,1,0,0     ' clear the block
pause 1000                    ' pause a bit to see the effect
blit write 64,100,100         ' restore the block
'blit close 64                 ' release the buffer KABOOM


Interesting that the first version _appears_ to error before the "blit write" executes.
Visit Vegipete's *Mite Library for cool programs.
 
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1083
Posted: 10:04pm 17 Oct 2020
Copy link to clipboard 
Print this post

A delay between "blit write" and "blit close" changes the results a bit.
Edited 2020-10-18 08:06 by vegipete
Visit Vegipete's *Mite Library for cool programs.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8594
Posted: 09:33am 18 Oct 2020
Copy link to clipboard 
Print this post

V5.05.06RC5 now posted

http://geoffg.net/Downloads/Maximite/CMM2_Beta.zip

Fixes bugs in text command when using OPTION Y_AXIS UP
Fixes bug introduced in RC4 when using BLIT WRITE

Adds MM.INFO(OPTION USBKEYBOARD)

To maintain compatibility with earlier versions I've changed the default for the orientation parameter in BLIT WRITE

BLIT WRITE [#]b, x, y [,orientation]

BLIT WRITE will copy the memory buffer '#b' to the display.  The destination coordinates are 'x' and 'y' using the width/height of the buffer.
The optional 'orientation' parameter defaults to 4 and specifies how the stored image data is changed as it is written out. It is the bitwise AND of the following values:
&B001 = mirrored left to right
&B010 = mirrored top to bottom
&B100 = don't copy transparent pixels
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 3852
Posted: 10:48am 18 Oct 2020
Copy link to clipboard 
Print this post

  matherp said  Adds MM.INFO(OPTION USBKEYBOARD)


Thank you Peter.

Best regards,

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

Senior Member

Joined: 02/09/2020
Location: United States
Posts: 194
Posted: 02:55pm 18 Oct 2020
Copy link to clipboard 
Print this post

  matherp said  Fixes bugs in text command when using OPTION Y_AXIS UP

Thank you, Peter!

- Steve
Live in the Future. It's Just Starting Now!
 
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1083
Posted: 04:37pm 18 Oct 2020
Copy link to clipboard 
Print this post

  matherp said  V5.05.06RC5 Fixes bug introduced in RC4 when using BLIT WRITE

BLIT WRITE works great now. (I just have to remember that the default is 4, not 0. :-)

Imaging how well windows would work if microsoft fixed things as quickly and diligently...
Visit Vegipete's *Mite Library for cool programs.
 
LeoNicolas

Guru

Joined: 07/10/2020
Location: Canada
Posts: 446
Posted: 05:08pm 18 Oct 2020
Copy link to clipboard 
Print this post

Thank you peter.

Today I'll update my CMM2.

For the new version, is it possible to add the control+left or control+right shortcuts to jump over words in the code editor? It will improve a lot the navigability through the source code.

Currently the cursor is so slow and reaching the middle of a long line of code is painful.  
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8594
Posted: 05:24pm 18 Oct 2020
Copy link to clipboard 
Print this post

  Quote  Currently the cursor is so slow and reaching the middle of a long line of code is painful


Have you reduced the autorepeat rate on the keyboard (assuming USB)?

Two issues with the suggestion:
1. wouldn't be usable on a serial console as modifier keys don't change the code sent by the arrow keys
2. What is a word?
print @(j*25+i,i*12)"#"
 
LeoNicolas

Guru

Joined: 07/10/2020
Location: Canada
Posts: 446
Posted: 06:09pm 18 Oct 2020
Copy link to clipboard 
Print this post

Hey Peter

Thank you for your answer.
I didn't change the cursor rate.

For question 2, this is the cursor path using ctr+right on VS Code. The cursor stops on the left side of the character marked with "V".


---------------------->

-----V-V-V--V-V-V--V--V
print @(j*25+i,i*12)"#"


And this is the result in the same editor, but using ctr+left.


<----------------------

V-----V-V-V--V-V-V-V---
print @(j*25+i,i*12)"#"
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8594
Posted: 06:14pm 18 Oct 2020
Copy link to clipboard 
Print this post

Try OPTION KEYBOARD REPEAT 600,25 and see if that fixes the issue for you
 
     Page 2 of 4    
Print this page
© JAQ Software 2024