Git Product home page Git Product logo

Comments (10)

ricardoquesada avatar ricardoquesada commented on May 31, 2024

fixed. confirmed by jjs357 user. It is working Ok now.

from bluepad32.

Freihaendich avatar Freihaendich commented on May 31, 2024

I tried to follow the guide, but it is not working for me right now. I have an Arduino Nano ESP32 and a PS4 Controller.

from bluepad32.

ricardoquesada avatar ricardoquesada commented on May 31, 2024

@Freihaendich wait until v4.0-beta2 is released.... alternative use develop branch of https://github.com/ricardoquesada/esp-idf-arduino-bluepad32-template

from bluepad32.

ricardoquesada avatar ricardoquesada commented on May 31, 2024

re-opening... using "print" works Ok, but not with Serial.printf()... WTF... something is wrong with UART... not sure what.

from bluepad32.

ricardoquesada avatar ricardoquesada commented on May 31, 2024

Same issue with the Lolin S3 Mini.
What these two boards have in common is that the share the UART and USB OTG ports... they have just one port.

And Serial, instead of being redirected to "right" port, it gets redirected somewhere else (?).

from bluepad32.

ricardoquesada avatar ricardoquesada commented on May 31, 2024

Having "USB CDC on Boot : Enabled" fixes the issue...

But the bug seems to be that "boards.txt" is not being used correctly, because nano_nora entry (the Arduino Nano ESP32) has nano_nora.build.cdc_on_boot=1.

And that would explain why the Arduino Nano ESP32 gets recognized as a different board

from bluepad32.

ricardoquesada avatar ricardoquesada commented on May 31, 2024

Something seems to be happening when BTstack is initialized. I'm not calling btstack_stdio_init()... so something else, not clear what yet

from bluepad32.

ricardoquesada avatar ricardoquesada commented on May 31, 2024

The solution for "Arduino Nano ESP32" is to:

  • Make sure the "Arduino Nano ESP32" board is selected
  • Tools -> USB Mode -> Debug Mode (Hardware CDC)
  • and then compile and flash the sketch again

Screenshot_20240309_180435

from bluepad32.

ricardoquesada avatar ricardoquesada commented on May 31, 2024

For other boards, like "Lolin S3 Mini" do:

  • Make sure the 'Lolin S3 Mini' is selected
  • Tools -> USB CDC On Boot -> Enabled
  • and then compile and flash the sketch again

Screenshot_20240309_195149

from bluepad32.

craig-am avatar craig-am commented on May 31, 2024

I am trying to run the example on an Adafruit Huzzah32 and I get this compiler error about PINS_COUNT not being define anywhere
\Users\ck\Documents\Arduino\libraries\Bluepad32_for_NINA-W10_boards\src\utility\spi_drv.cpp" -o "C:\Users\ck\AppData\Local\Temp\VMBuilds\Bluepad32_ESP32_Gamecontroller_Connection_Test\esp32_featheresp32\Debug\Bluepad32_for_NINA-W10_boards\utility\spi_drv.cpp.o"
spi_drv.cpp: In static member function static void SpiDrv::begin()

spi_drv.cpp: 91:20: error: 'PINS_COUNT' was not declared in this scope
if (SLAVERESET > PINS_COUNT) {
^~~~~~~~~~

from bluepad32.

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.