-
-
Notifications
You must be signed in to change notification settings - Fork 291
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
请问一下按键事件回调函数和用户注册时的ID是相反的是什么原因,我有4个按键,注册时是按0、1、2、3分配的ID,但是在事件回调中是相反的顺序,比如说我注册的时候ID是0,但是在事件回调函数里面打印的按键ID是3 #26
Comments
已经发现按键ID是相反的原因是在按键事件处理函数中,头结点应该是在寄存器g_btn_status_reg的高位,在程序中是最低位。把“ i = 0”改成“ i = button_cnt - 1”,以及“ i ++”改成“i--”
}` |
FlexibleButton v2.0.1 released Latest 是存在 这个问题, @murphyzhao |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: