Giter VIP home page Giter VIP logo

Comments (6)

whowechina avatar whowechina commented on August 10, 2024

感谢,不过先说具体问题和现象,别着急贴代码。
比如亮度值不对,颜色和延迟不对等等。

需要贴代码的时候,用代码块包裹(已经帮你编辑),且只贴说明问题的一两行就好。

from mai_pico.

CY202032 avatar CY202032 commented on August 10, 2024

目前的问题是版号会显示方块,而不是15070-04,在询问的时候会乱回复数据,数据格式不对等等问题,比如010203040506本来应该回复111213141516,抓包发现它回复的数据比较乱,可能会回复1112131415161718,111213141516171811121315171819之类的,之前没注意,不过已经搞定了

from mai_pico.

whowechina avatar whowechina commented on August 10, 2024

So it's not functional thing. The firmware is not giving proper info strings to the game. Thanks. I'll fix them some time later.

from mai_pico.

CY202032 avatar CY202032 commented on August 10, 2024

对了,还有一个关于hid的功能。。。

void hid_proc(const uint8_t *data, uint8_t len)
{
    hid_output_t *output = (hid_output_t *)data;
    if (output->report_id == REPORT_ID_OUTPUT) {
        switch (output->cmd) {
            case 0x01: // Set Timeout
            case 0x02: // Set Sampling Count
                hid_joy.system_status = 0x30;
                break;
            case 0x03: // Clear Board Status
                hid_joy.chutes[0] = 0;
                hid_joy.chutes[1] = 0;
                hid_joy.system_status = 0x00;
                break;
            case 0x04: // Set General Output
            case 0x41: // I don't know what this is
                break;
            default:
                printf("USB unknown cmd: %d\n", output->cmd);
                break;
        }
    }

0x41是广告牌的灯光检查,好像是顶灯,具体我没细研究,好像用处不大,数据得到了几个,有兴趣您可以研究研究。
10 41 FC 00 FF 00 00 00 00 00 红色
10 41 FC 00 00 00 FF 00 00 00 绿色
10 41 FC 00 00 00 00 00 FF 00 蓝色
10 41 FC 00 FF 00 FF 00 FF 00 白色

10 41 FC 00 FF FF 73 73 00 00 1.40的颜色,这个RGB色盘应该是rgb(255, 115, 0)
eb65a4e5e3e56cc492a09d24063d46fa

from mai_pico.

whowechina avatar whowechina commented on August 10, 2024

目前的问题是版号会显示方块,而不是15070-04,在询问的时候会乱回复数据,数据格式不对等等问题,比如010203040506本来应该回复111213141516,抓包发现它回复的数据比较乱,可能会回复1112131415161718,111213141516171811121315171819之类的,之前没注意,不过已经搞定了

I can't reproduce the issue with my limited data resource. I'll close this one for now.
In the future, please only describe the issue, how to reproduce it, or the errors in the code.

from mai_pico.

whowechina avatar whowechina commented on August 10, 2024

对了,还有一个关于hid的功能。。。

0x41是广告牌的灯光检查,好像是顶灯,具体我没细研究,好像用处不大,数据得到了几个,有兴趣您可以研究研究。 10 41 FC 00 FF 00 00 00 00 00 红色 10 41 FC 00 00 00 FF 00 00 00 绿色 10 41 FC 00 00 00 00 00 FF 00 蓝色 10 41 FC 00 FF 00 FF 00 FF 00 白色

10 41 FC 00 FF FF 73 73 00 00 1.40的颜色,这个RGB色盘应该是rgb(255, 115, 0)

Yeah, I'll add cab light support in the future. Thanks.

from mai_pico.

Related Issues (16)

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.