Hirdetés

Új hozzászólás Aktív témák

  • _q

    addikt

    válasz alfa20 #11007 üzenetére

    Nekem fura a kód amit próbáltál, szerintem azzal van a gond. Próbáld meg a következőt. Nekem hasonló megy ESP32-vel.
    Ja meg még annyi, hogy SSD1306.h kell nem adafruit asszem. Ez ha jól emlékszek arduino library manager-en belül letölthető.

    /*
    * Random Nerd Tutorials - Rui Santos
    * Complete Project Details https://randomnerdtutorials.com
    *
    * The MIT License (MIT)
    * Copyright (c) 2016 by Daniel Eichhorn
    */

    // Include the correct display library
    // For a connection via I2C using Wire include
    #include <Wire.h> // Only needed for Arduino 1.6.5 and earlier
    #include "SSD1306.h" // alias for `#include "SSD1306Wire.h"`


    // Initialize the OLED display using brzo_i2c
    // D3 -> SDA
    // D5 -> SCL
    // SSD1306Brzo display(0x3c, D3, D5);
    // or
    // SH1106Brzo display(0x3c, D3, D5);

    // Initialize the OLED display using Wire library
    SSD1306 display(0x3c, D3, D5);
    // SH1106 display(0x3c, D3, D5);



    void setup(){
    // Initialising the UI will init the display too.
    display.init();

    display.flipScreenVertically();
    display.setFont(ArialMT_Plain_16);
    display.setTextAlignment(TEXT_ALIGN_LEFT);
    dht.begin(); // initialize dht
    }


    display.clear();
    display.drawString(0, 16, "Hello Word!");


    void loop(){

    }

    [ Szerkesztve ]

Új hozzászólás Aktív témák