Skip to content
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

object oriented style extension #400

Open
versaloon opened this issue Dec 31, 2021 · 0 comments
Open

object oriented style extension #400

versaloon opened this issue Dec 31, 2021 · 0 comments

Comments

@versaloon
Copy link

versaloon commented Dec 31, 2021

The source code is here:
https://github.com/vsfteam/vsf/tree/master/source/component/3rd-party/btstack/extension/btstack_oo

Working project is here:
https://github.com/vsfteam/vsf/tree/master/example/btstack/project/vc

Below is some comments about install the testing environment, but I think the code above is enough.

software:

  1. visual studio 2022 community version
  2. zadig-2.7.exe
  3. windows 10

hardware:

  1. bluetooth usb dongle, BCM20702A0
  2. PC running windows10

Setup:

  1. clone https://github.com/vsfteam/vsf.git

  2. update submodule
    I) source/component/3rd-party/btstack/raw
    II) source/utilities/3rd-party/PLOOC/raw

  3. install visual studio 2022
    I) Desktop development with C++
    II) Universal Windows Platform development
    III) llvm support(compile, etc)

  4. insert BCM20702A0 dongle and install winusb driver by zadig

  5. open vsf_btstack.sln in vsf/example/btstack/project/vc

  6. modify l2cap.c, remove static of l2cap_get_channel_for_local_cid

  7. compile and run

  8. active 2 joycon controllers

btstack_joycon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant