Git Product home page Git Product logo

Comments (2)

0xCC0x01 avatar 0xCC0x01 commented on August 16, 2024 1

pageUP的bug,应该跟按键定义有关:

  1. keymap[KEYMAP_NUM][IO_NUMBER],有5层映射,每层88个(82个按键+6个Touchpad)
  2. 但在定义每层映射时,实际只有83个值,后面的几个默认初始化了0
  3. 默认给的0值,恰好是pageUP对应的IO pin

可以尝试下,把keymap 0层映射,最后面的几个值补充完整,应该能搞定,比如:
int16_t keyMap[KEYMAP_NUM][IO_NUMBER] = {
// The first layer, used for aligning 74HC165 IO pins to PCB key layout
{67, 61, 60, 58, 59, 52, 55, 51, 50, 49, 48, 47, 46, 3,
80, 81, 64, 57, 62, 63, 53, 54, 45, 44, 40, 31, 26, 18, 2,
19, 70, 71, 66, 65, 56, 36, 37, 38, 39, 43, 42, 41, 28, 1,
15, 74, 73, 72, 68, 69, 29, 30, 35, 34, 33, 32, 24, 0,
14, 76, 77, 78, 79, 16, 20, 21, 22, 23, 27, 25, 17, 4,
13, 12, 8, 75, 9, 10, 7, 11, 6, 5,
82, 83, 84, 85, 86, 87} //最后的几个值,不要空着

我没硬件,没有尝试,有板子的同学可以试下

from helloword-keyboard.

peng-zhihui avatar peng-zhihui commented on August 16, 2024

映射是这样的,0层是必然会执行的,后续的1~N层只会执行一个,也就是说你选的2层那么最终就是先映射0层,然后映射2层,所以你描述的这个问题应该是代码有点小bug,晚点有空我调一下

from helloword-keyboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.