Giter VIP home page Giter VIP logo

Comments (7)

sqfmi avatar sqfmi commented on May 27, 2024

If you call display.init with a baud rate, it will try to initialize the Serial port again. Try just calling display.init() without a parameter. Serial is supported and 115200 should be fine.

from badgy.

Dacesilian avatar Dacesilian commented on May 27, 2024

Yes, I've excluded Serial.begin, as it is defined also in display.init(115200), but no text in console.

image

image

image

image

There was a readable text in console when connecting to WiFi, but my Serial.println is beeing ignored.

Does matter this settings of the board in Arduino IDE?
image

from badgy.

Dacesilian avatar Dacesilian commented on May 27, 2024

I've made a few tests and my observation is that console is fine with this code:

#include <GxEPD.h>
#include <GxGDEW029T5/GxGDEW029T5.h>
#include <GxIO/GxIO_SPI/GxIO_SPI.h>
#include <GxIO/GxIO.h>

GxIO_Class io(SPI, SS, 0, 2);
GxEPD_Class display(io); // default selection of D4, D2

void setup() {
  display.init(115200); // enable diagnostic output on Serial
  display.setRotation(3);
  Serial.println("Setup");
  Serial.print("..... :) .....");
  Serial.println();

  /*pinMode(1, INPUT_PULLUP); //down
    pinMode(3, INPUT_PULLUP); //left
    pinMode(5, INPUT_PULLUP); //center
    pinMode(12, INPUT_PULLUP); //right
    pinMode(10, INPUT_PULLUP); //up*/

  Serial.println("Setup done, yeah");
}

image

But when I enable pinMode lines, it won't show anything (even not timestamp in console):
image

When I look to schematic_v2.pdf, there is UP and DOWN connected to TXD/RXD. Aren't these shared with serial?

image

from badgy.

chunkysteveo avatar chunkysteveo commented on May 27, 2024

Ahh yes. The button is using the TX/RX pins. When you enable them, they are inputs, so no serial protocol output. I am sure I saw in some readme that you can't use serial output if using buttons - a vague memory I think??!

Steve

from badgy.

chunkysteveo avatar chunkysteveo commented on May 27, 2024

The shared pins with TX/RX for the buttons is a limitation of the ESP8266 module and the fact the paper display needs so many pins to operate. It's either use serial output, or use buttons, not both.

from badgy.

chunkysteveo avatar chunkysteveo commented on May 27, 2024

Found it - #27 (comment)

from badgy.

Dacesilian avatar Dacesilian commented on May 27, 2024

Thanks, it's clear now. It's sad.

It's fine to disable only GPIO1.

/pinMode(1, INPUT_PULLUP); //down/
pinMode(3, INPUT_PULLUP); //left
pinMode(5, INPUT_PULLUP); //center
pinMode(12, INPUT_PULLUP); //right
pinMode(10, INPUT_PULLUP); //up

from badgy.

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.