-
Notifications
You must be signed in to change notification settings - Fork 43
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
Debug instructions needed #30
Comments
there is a debug output on the esp32 RX / TX pins - you could use debug printf there |
Ah... GPIO1/GPIO3 (TX/RX) are enabled in runtime. That makes sense. One more: How can I read from these pins? (Just attaching a console to -- I already have BTClassic working in my own firmware. What I'm doing is adding Nina compatibility to my firmware: it only needs to understand some of the SPI commands, plus some extra ones related to gamepad: I want to convert the Matrix Portal M4 + LED Matrix into a game console by adding gamepad support. Thanks! |
the matrix portal has a UART connected to the ESP32 so you could put it into passthru mode by adapting this sketch might be easier to develop the code on separate board with an ESP32 breakout so you can get to the RX/TX pins |
The TX and RX exposed are those of the M4, not of the ESP32. Like the passthrough solution, you could have code running on the M4 that copy that over to those pin (read from one UART and write on the other). From https://learn.adafruit.com/assets/95095 : ESP_RXD (29) and ESP_TXD (30) are connected to PA12/I12/I2C/SERCOM2.0+4.1 and PA13/I13/I2C/SERCOM2.1+4.0. (I love how openhardware and having the schematics car help). |
many thanks! |
Many thanks, I was able to have it running. Source code of the new firmware is here: I'll publish docs, examples and the modified |
thats awesome! congrats. please update this thread when you publish and we'll blog it up |
Here are the docs: Here is a patch for adafruit_esp32spi: for reference, video showing it working: This is the list of supported gamepads: There are still a few features in my TODO list like: possibility to delete bluetooth keys, gamepad LEDs/color & rumble,... Please, let me know if you have any question / doubt / etc. Thanks! |
mini update: I've just added DualSense (PS5) gamepad support: https://www.youtube.com/watch?v=dbEbiJZd4n8 |
cool, please see if there's some way we can merge it into nina :) |
ha! for sure, that would nice! Although I see some possible issue: The Bluepad32 project is a medium-sizde project (~8000 LoC) without including BTstack code (external dependency). Not sure whether someone from the Adafruit team would like to review that many LoC. As of today, Bluepad32 only supports two platforms: Unijoyticle (gamepad for retro-computers) and AirLift. But my plan is keep adding support for other platforms... a goal different from Nina's. Also, if we copy only the relevant parts of Bluepad32 into Nina (kind of a fork), then the future updates that I'll make to Bluepad32 (let's say adding a new gamepad, fixing bugs, etc.) won't be automatically included in Nina. It might be easier to merge Nina into Bluepad32 (merge 1000 Loc from An alternative would be to create a bluepad32-for-airlift static lib + headers to be used at compile/link time in Nina. What do you all have in mind? Thanks. |
you could create a new esp32 binary for folks to load into their airlift board - we need to keep this repo so we can update from upstream :) |
done: https://github.com/ricardoquesada/bluepad32/releases/tag/release_v2.0.0-beta0 :) The .zip includes a README with the steps to flash it. |
For anyone coming along later, using platformIO, the ESP32's uart has been exposed in the variant.cpp (which I believe is just being imported from the arduino version) as //top of file:
#include "utility/wifi_drv.h"
//In setup:
SerialESP32.begin(baud);
WiFiDrv::debug(1);
//in loop:
while (SerialESP32.available()) {
Serial.write(SerialESP32.read());
} |
Hi,
I've reading the different docs, source code, etc, and I couldn't find any doc that mentions how to debug the nina-fw.
For reference:
How do you Adafruit developer debug nina-fw in Matrix Portal M4?
thanks!
If this is not the right place, where should I ask/post these kind of questions?, thanks!!
The text was updated successfully, but these errors were encountered: