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

U8g2 library issue with Arduino nano RP2040 processor #2450

Closed
Herwig9820 opened this issue May 28, 2024 · 4 comments
Closed

U8g2 library issue with Arduino nano RP2040 processor #2450

Herwig9820 opened this issue May 28, 2024 · 4 comments

Comments

@Herwig9820
Copy link

Hi, could it be that the U8g2 does not support the Arduino nano RP2040 ?

With a nano 33 IoT, the code below works perfectly.
But with the RP2040, I notice that MOSI and CLOCK do not emit anything (I measure a constant 3.3 Volt, with a scope) but the RESET pin constantly emits a waveform, as soon as the U8g2 library is initialized.
The pinout of both processors is the same, as far as the used pins are concerned. So in my humble opinion the issue is somewhere in the library. Is that a possibility ?

My code snippet:

constexpr int VMA437_OLED_DC_PIN{ 17 };         // OLED data pin
constexpr int VMA437_OLED_CLK_PIN{ 20 };        // OLED clock pin
constexpr int VMA437_OLED_MOSI_PIN{ 21 };       // OLED MOSI pin

U8X8_SH1106_128X64_NONAME_4W_SW_SPI u8x8_spi(VMA437_OLED_CLK_PIN, VMA437_OLED_MOSI_PIN, VMA437_OLED_CS_PIN, VMA437_OLED_DC_PIN);  // SW SPI

U8X8LOG u8x8log_spi;                                                                // create U8x8LOG object                                                                        
uint8_t u8log_buffer_spi[U8LOG_WIDTH * U8LOG_HEIGHT];                   // allocate display memory 

void setup() {
    Serial.begin(115200);
    delay(5000);

    u8x8_spi.begin();                                                       
    u8x8_spi.setFont(u8x8_font_8x13_1x2_f);                                 
    u8x8log_spi.begin(u8x8_spi, U8LOG_WIDTH, U8LOG_HEIGHT, u8log_buffer_spi)
    u8x8log_spi.setRedrawMode(0);	

    u8x8log_spi.println("OLED(SW SPI) OK");
...	
}                         

Thanks for looking into this.
Herwig Taveirne

@olikraus
Copy link
Owner

I don't own this device, but there are several issues and discussions regarding this topic. Did you check the issues here in this project?

@Herwig9820
Copy link
Author

Herwig9820 commented May 29, 2024

I checked them now. Issue 2073 seems to describe a similar problem.

@olikraus
Copy link
Owner

Not sure how to support here, but did you check some of the already closed issues, like this #1928 or this #2385 ?

@Herwig9820
Copy link
Author

Hi, I'm not going to invest more time in it. Switched back to a nano ESP32 - and your library works perfectly. I'm closing the issue now.

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

2 participants