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 KingdomPosts: 227 |
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 StatesPosts: 296 |
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 KingdomPosts: 8594 |
V5.05.06RC4 now posted http://geoffg.net/Downloads/Maximite/CMM2_Beta.zip 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 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: BrazilPosts: 303 |
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 KingdomPosts: 8594 |
Works fine for me Try reflashing CMM2V1.5.zip |
||||
MauroXavier Guru Joined: 06/03/2016 Location: BrazilPosts: 303 |
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: CanadaPosts: 1083 |
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 StatesPosts: 430 |
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 KingdomPosts: 8594 |
Should the command "blit close 64" result in "Error in line 357: sprite internal error"? Code? |
||||
vegipete Guru Joined: 29/01/2013 Location: CanadaPosts: 1083 |
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: CanadaPosts: 1083 |
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: CanadaPosts: 1083 |
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 KingdomPosts: 8594 |
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 KingdomPosts: 3852 |
Thank you Peter. Best regards, Tom Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
NPHighview Senior Member Joined: 02/09/2020 Location: United StatesPosts: 194 |
Thank you, Peter! - Steve Live in the Future. It's Just Starting Now! |
||||
vegipete Guru Joined: 29/01/2013 Location: CanadaPosts: 1083 |
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: CanadaPosts: 446 |
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 KingdomPosts: 8594 |
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: CanadaPosts: 446 |
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 KingdomPosts: 8594 |
Try OPTION KEYBOARD REPEAT 600,25 and see if that fixes the issue for you |
||||
Page 2 of 4 |
Print this page |