-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor m60 #639
base: main
Are you sure you want to change the base?
Refactor m60 #639
Conversation
@mcrosson Please request me for a review when you're ready for this to be reviewed. |
I tried the last artifact on a m60 keyboard, but the mapping is off :
As if the Escape key dispread and the others moved one position to the left, leaving Ctrl_R empty. |
I likely have something shifted in the keymap. I'll have a look soon ; I'm waiting on some battery related feedback from someone who uses the m60 as a daily and is on a mission to figure out battery stuff. |
@bricewge Does the button on the bottom of the keyboard do a reset on tap and/or bootloader on hold? I added support for the bottom button and i'm thinking that messed something up in the main keymap but i want to be sure the bottom button works before diving too deep |
… based on upstream makerdiary - updated led definitions - updated uart defintion - add missing device nodes - i2c1 - pwm0 - qspi
…ased on upstream definitions
eee9a8d
to
b7f2f8b
Compare
@bricewge I think i found the bug with the keymap and overlay ; i just pushed an update that should address the problem you were seeing one thing to note : i moved the on/off button definition to the END of the keymap/overlay so you will probably need to make a small adjustment to your keymap if you have a custom one defined |
@mcrosson thank you the quick fix. The mapping is correct now.
Yes, the button underneath the keyboard work as expected to. For the battery part I'm glad some one else is testing it since I don't really know how to do it. I can't managed to use the Bluetooth on android to see if the battery report is correct, but me not being able to connect to Bluetooth isn't specific to this PR. I'll report back if I manage to correctly test it. |
Sounds good, keep me posted as well on anything you may find. I'm using a different keyboard day to day and hoping others with the m60 can help verify this while the battery stuff is being sorted out. From what I've heard from others the battery setup is a little odd and proving difficult to get going. Which battery are you using @bricewge ? |
Will do. The battery I'm using is a 405570 3.7V 2200mAh with 3 wire: https://fr.aliexpress.com/item/32863787379.html |
Is your battery charging by any chance ? After quite a lot of tests, it seems like this board does not charge batteries even on stock firmware ( see makerdiary/python-keyboard#27 ). I am still investigating and trying to figure this out, but don't hold your breath, don't have a lot of bandwidth at this time on that subject... |
Given @gled-rs is working with makerdiary and still fighting through battery 'stuff' ; we should probably mark this as 'ready for review' The battery indications seem to be working an until makerdiary reports back on why charging may not be 100% i think we can go forward with this set of updates as they won't affect battery related stuff that comes down the line from makerdiary in due course |
I have the battery setup working with my M60 keyboard. There are some board specific changes needed to achieve this. According to their wiki:
There is one typo in their wiki, Its So in battery mode, the keyboard will only be switched on when
We need to set/reset P0_28 whenever button(P0_27) is pressed to make the keyboard switch on and off. Since its a hardware specific button, I think it is better to remove the button from the keyboard scan and handle it differently @gled-rs The issue you are facing may be some hardware issue, since my keyboard seems to be charging with the USB connections, I am able to see the battery percentage getting increased in the battery report. |
Are you sure P1_04, that you defined in |
Any update on this? BTW P1_04 IS connected to the led matrix chip, and I think it shouldn't be a power led. I'm still using M60 as a daily drive. Please let me know if you need any assistance. I would like to help. |
Some general updates and cleanup for the maker diary m60 keyboard