-
Notifications
You must be signed in to change notification settings - Fork 787
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
USB_Host_Shield_Library_2.0 SPI issue in combination with TFT_eSPI #802
Comments
// basing on the <acm_terminal.ino> of the <\USB_Host_Shield_Library_2.0> #include <cdcacm.h> #include "pgmstrings.h" // Satisfy the IDE, which needs to see the include statment in the ino too. #include <SPI.h> class ACMAsyncOper : public CDCAsyncOper { uint8_t ACMAsyncOper::OnInit(ACM *pacm) { if (rcode) { LINE_CODING lc; rcode = pacm->SetLineCoding(&lc); if (rcode) return rcode; USB Usb; // ----------------------------- TFT --------------------------------------------- // ############################################# SETUP ###################################### #if !defined(MIPSEL) if (Usb.Init() == -1) delay(200); // ----------------- Init_display ------------------- // ############################################### LOOP ###################### if (Acm.isReady()) {
} //if( Usb.getUsbTaskState() == USB_STATE_RUNNING.. unsigned long testRects(uint16_t color) { tft.fillScreen(TFT_BLACK); return micros() - start; /* -------------------- #define with_tft false ---------------------------- |
Here are some results of additional investigations on this issue:
|
I am now asking the same question in Bodmers TFT_eSPI chat. |
Solution found, see the issue #3151 on TFT_eSPI. Just uncomment the use of the HSPI interface in the user_setup.h |
Hardware: esp32 dev kit
Compiler: Arduino IDE 2.2.1
The acm_terminal example doesn't run together with the TFT_eSPI library.
If added some software lines to the example, to test the HostShield-Lib running together with the TFT_eSPI-Lib. Goal is to program a smart USB-terminal to observe the output of all of my esp32 applications without using my laptop. Only displaying the serial datastream, no inputs, no further controls as inputs.
Info:
What might be the problem? I am really helpless.
The used arduino sketch ist added to this issue as ZIP-file. At the end of the sketch I added the serial output for the two described cases.
The other esp32 is producing incrementing textlines to test the behavior of the USB_Host_Shield_Lib. You can see them at the end of the serial output.
TEST_GitHub_acm_terminal_to_Display_V0_1_0_iA.zip
The text was updated successfully, but these errors were encountered: