Comments (7)
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.
Yes, I've excluded Serial.begin, as it is defined also in display.init(115200), but no text in console.
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?
from badgy.
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");
}
But when I enable pinMode lines, it won't show anything (even not timestamp in console):
When I look to schematic_v2.pdf, there is UP and DOWN connected to TXD/RXD. Aren't these shared with serial?
from badgy.
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.
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.
Found it - #27 (comment)
from badgy.
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)
- Possible minor typo in readme.md HOT 1
- Unable to wake from DeepSleep HOT 4
- 'WiFiManager' was not declared in this scope HOT 4
- Cannot compile examples in Arduino IDE HOT 4
- Fatal error occurred with esptool.py after erase_flash HOT 7
- problem(s) with new Badgy HOT 22
- Badgy no longer booting HOT 7
- Not connecting via USB HOT 3
- Compiler errors HOT 9
- [micropython] update example for the latest display HOT 3
- not able to upload firmware over wifi - OTA HOT 4
- Showing image from bytes stored in SPIFFS file HOT 3
- image is broken - micropython - Rev 2C
- New pcb's
- U2 started smoking
- PCB or schematics HOT 1
- Boot failure
- Esphome support? HOT 11
- Weather example needs to be updated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from badgy.