Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Arcade for M4 swaped buttons UP/RIGHT
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Arcade for M4 swaped buttons UP/RIGHT

by Bobricius on Tue Jan 28, 2020 7:11 pm

Hi,

I created console by your tutorial, based on ItsyBitsy M4 Express.

Up ---> D9
Right ---> D10

I check my board, but it is look that this buttons are swaped in arcade.makecode configuration.
Can anybody fix it or check? It can be very helpful fix it on makecode not in learn guide ;)

Thanks very much !!!!!

Bobricius
 
Posts: 7
Joined: Thu Jul 20, 2017 6:28 am

Re: Arcade for M4 swaped buttons UP/RIGHT

by adafruit_support_carter on Tue Jan 28, 2020 7:35 pm

Is this the guide you are following?
https://learn.adafruit.com/makecode-arc ... m4-express

What game, or other MakeCode program, are you running?

adafruit_support_carter
 
Posts: 16938
Joined: Tue Nov 29, 2016 2:45 pm

Re: Arcade for M4 swaped buttons UP/RIGHT

by Bobricius on Wed Jan 29, 2020 1:40 am

Hi,

YES, I build with this guide.

I tested games DELIVERY and CAT JUMPER

I think is good define speaker to A0 ;)

Bobricius
 
Posts: 7
Joined: Thu Jul 20, 2017 6:28 am

Re: Arcade for M4 swaped buttons UP/RIGHT

by adafruit_support_carter on Wed Jan 29, 2020 2:30 pm

Hmmm. Guessing that's just a typo in the Learn Guide. The Feather M4 Express page shows a different mapping:
Up --->D10
Right ---> D9

and that one seems to conform with what you are seeing.

If you just swap those two pins and use the same mapping as what is shown in the Feather M4 mapping above, does it work OK?

adafruit_support_carter
 
Posts: 16938
Joined: Tue Nov 29, 2016 2:45 pm

Re: Arcade for M4 swaped buttons UP/RIGHT

by Bobricius on Wed Jan 29, 2020 3:35 pm

hmm, It need in next pcb release swap pins ;) no plan to add sound ?

Bobricius
 
Posts: 7
Joined: Thu Jul 20, 2017 6:28 am

Re: Arcade for M4 swaped buttons UP/RIGHT

by adafruit_support_carter on Wed Jan 29, 2020 4:01 pm

Are you not working with a breadboard setup?

adafruit_support_carter
 
Posts: 16938
Joined: Tue Nov 29, 2016 2:45 pm

Re: Arcade for M4 swaped buttons UP/RIGHT

by Bobricius on Wed Jan 29, 2020 4:14 pm

I am working on simple universal display/game device

And because I am not familiar with this all this cpython/arcade/gamebuino configurations I take itsibitsy as core.
I want something very simple and compatible with existing configurations ....

IMG_20200129_162424.jpg
IMG_20200129_162424.jpg (468.2 KiB) Viewed 140 times


IMG_20200129_162440.jpg
IMG_20200129_162440.jpg (996.8 KiB) Viewed 140 times

Bobricius
 
Posts: 7
Joined: Thu Jul 20, 2017 6:28 am

Re: Arcade for M4 swaped buttons UP/RIGHT

by adafruit2 on Wed Jan 29, 2020 5:01 pm

the pins are defined in the bootloader
https://github.com/adafruit/uf2-samdx1/ ... nfig.h#L72
you'll need a new bootloader anyways because you can't reuse our VID/PID so you might as well redo it and add whatever pin defs you need

adafruit2
Site Admin
 
Posts: 19375
Joined: Fri Mar 11, 2005 7:36 pm

Re: Arcade for M4 swaped buttons UP/RIGHT

by Bobricius on Wed Jan 29, 2020 5:13 pm

where is defined speaker?

Bobricius
 
Posts: 7
Joined: Thu Jul 20, 2017 6:28 am

Re: Arcade for M4 swaped buttons UP/RIGHT

by adafruit2 on Wed Jan 29, 2020 5:16 pm

search for SPEAKER

adafruit2
Site Admin
 
Posts: 19375
Joined: Fri Mar 11, 2005 7:36 pm

Re: Arcade for M4 swaped buttons UP/RIGHT

by Bobricius on Wed Jan 29, 2020 6:31 pm

I try https://microsoft.github.io/uf2/patcher/#

my patch is

PIN_BTN_RIGHT = PIN_D10
PIN_BTN_UP = PIN_D9

for file itsybitsy-arcade-bl-v3.2.2.uf2
I downloaded patched file ....

I returned to itsybitsy bootloader with update-bootloader-itsybitsy_m4-v2.0.0-adafruit.5.uf2
then I droped to drive patched bootloader but nothing changed, aways I have itsy loader, board just reset, nonpatched updater works

Bobricius
 
Posts: 7
Joined: Thu Jul 20, 2017 6:28 am

Please be positive and constructive with your questions and comments.