Git Product home page Git Product logo

co2light's Issues

Version 3.1 for nodemcuv2 appears to be broken

Hi,

After doing the OTA update from 2.71 I noticed that my CO2light appears to be left disfunctional. I then disassembled it and manually flashed version 2.71. Eventually the CO2light came back to live. I did some tests with all the following versions and it turned out that I can flash my way up to version 3.0 without any problem. Manually flashing 3.1 again left me with a dead light. I have erased the flash prior to flashing a new version every time.

There have been no errors during the flashing process, so I guess there is something wrong with the firmware.

`
%esptool.py -p /dev/tty.usbserial-44140 write_flash -fm dio 0x00000 nodemcuv2_firmware_31.bin
esptool.py v4.7.0
Serial port /dev/tty.usbserial-44140
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: bc:ff:4d:19:c1:5e
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Flash will be erased from 0x00000000 to 0x000bcfff...
Compressed 773536 bytes to 586764...
Wrote 773536 bytes (586764 compressed) at 0x00000000 in 56.8 seconds (effective 109.0 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
`

Error with 2.9

Hello,
i just updated to 2.9 and now i got on the startpage:
null null null 192.168.178.xxx

Also on page Humidity, Temp, and pressure i got first line null and other Line the measured data. Only on pge CO2 there is CO2 and the Data.

Running on Nodemcu v2

Support for display type SH110X

Supporting different types of displays would be nice.
SH110X displays are pin compatible with the used SSD1306 displays.
Changes made (substituted, not yet configurable):
-#include <Adafruit_SSD1306.h>
+#include <Adafruit_SH110X.h>

-Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1);
+Adafruit_SH1106G display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1);

-if(!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) {
- Serial.println(F("SSD1306 allocation failed"));
+if(!display.begin(0x3C, true)) {
+ Serial.println(F("SH1106G allocation failed"));

-display.setTextColor(WHITE);
+display.setTextColor(SH110X_WHITE);

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.