Raspberry pi Pico Micro Python Wii Nunchuck

Sdílet
Vložit
  • čas přidán 26. 06. 2021
  • German kfricke to receive data from Wii Nunchuck
    I used nunchuck.py published on GitHub.
    URL: github.com/kfricke/micropytho...
    I also used ssd1036.py to display the OLED.
    Note: There are two types of Wii Nunchuck, white and black, but this time we will use the black nunchaku.
    I tried various things, but I couldn't use the white nunchaku for Pico.
    Nunchuck_address: // transmit to device 0x52
    // sends memory address.
    Black nunchaku = (0xF0), white nunchaku = (0x40)
    // sends sent a zero address.
    Black nunchaku (0x55), white nunchaku (0x00)
    However, a black nunchaku may be the same as a white nunchaku,
    Please note that it cannot be identified by its appearance!
    by Paradise
    Wii Nunchuckからのデータ受信にドイツのkfrickeさんが、
    GitHubに公開されているnunchuck.pyを利用させて頂きました。
    URL:github.com/kfricke/micropytho...
    また、OLEDの表示には、ssd1036.pyを使いました。
    注意:Wii Nunchuckには白色と黒色の2種類ありますが、今回使うのは黒いヌンチャクです。
    色々と試したがPicoには白いヌンチャクが使えませんでした。
    Nunchuck_address: ​// transmit to device 0x52
    ​// sends memory address.
    黒いヌンチャク=(0xF0),白いヌンチャク=(0x40)
    ​// sends sent a zero address.
    黒いヌンチャク(0x55),白いヌンチャク(0x00)
    但し、黒いヌンチャクでも白いヌンチャクと同じ場合が有り、
    外観では判別出来ないのでご注意を!
    by paradise
  • Věda a technologie

Komentáře • 3

  • @triteron7784
    @triteron7784 Před 3 lety +1

    This is great, thanks!

    • @triteron7784
      @triteron7784 Před 3 lety

      @@vsrparadise I needed to add a little bit of a delay between the writing and reading from i2c in the update method to get it to work. I used time.sleep_ms(5). Any ideas why it worked without it in your case?

  • @mixelledo2704
    @mixelledo2704 Před 3 lety

    code pls