nodeMCU
Include all different projects based on nodeMCU board
Continuous Integration
Requirements
Software
- DallasTemperature https://github.com/milesburton/Arduino-Temperature-Control-Library
- NTPClient https://github.com/arduino-libraries/NTPClient
- ESP8266Ping https://github.com/dancol90/ESP8266Ping
Software installation
Put folders from downloaded archives under /home/USER/Arduino/libraries/
Core review
For code review used https://review.gerrithub.io
Integrated with TRAVIS CI Author: Andrey Shamis lolnik@gmail.com @andreyshamis
Set time from serial TZ_adjust=-8; echo T$(($(date +%s)+6060$TZ_adjust)) > /dev/ttyUSB0
sudo apt-get install make unrar autoconf automake libtool gcc g++ gperf flex bison texinfo gawk ncurses-dev libexpat-dev python python-serial sed git unzip bash help2man wget bzip2 sudo apt-get -y install libtool-bin
Unzip OneWire.zip to ...../arduino/libraries/OneWire LedMatrix.zip to ...../arduino/libraries/LedMatrix DallasTemperature.zip to ...../arduino/libraries/DallasTemperature
MAX7219LedMatrix
Library for the ESP8266 on Arduino IDE displaying text on one or multiple MAX7219 8x8 led matrices.
This library displays text and sets specific pixels on one or multiple 8x8 led matrices with a MAX7219 driver chip controlled through the SPI interface. These modules are relatively cheep and can be daisy chained which makes it easy to get a led text bar up and running You can find modules e.g. with Banggood (<-affiliate link).
For details about the MAX7219 theory, wiring, schematic, etc. there's a great post by Nick Gammon: http://www.gammon.com.au/forum/?id=11516
Currently this library supports the following operations:
- set pixels
- write text with a simple font
- scroll text left or right
- oscillate text between the two ends
You're welcome to read in my blog how this library came about.
Example
#include <SPI.h>
#include "LedMatrix.h"
#define NUMBER_OF_DEVICES 1
#define CS_PIN D1
// Connect
//DIN D7 - GPIO13 (HSPID) |
//CLK D5 - GPIO14 (HSPICLK)
LedMatrix ledMatrix = LedMatrix(NUMBER_OF_DEVICES, CS_PIN);
void setup() {
Serial.begin(115200); // For debugging output
ledMatrix.init();
ledMatrix.setIntensity(4); // range is 0-15
ledMatrix.setText("Boiler Info");
}
void loop() {
ledMatrix.clear();
ledMatrix.scrollTextLeft();
ledMatrix.drawText();
ledMatrix.commit(); // commit transfers the byte buffer to the displays
delay(200);
}
Installing library in Arduino IDE
- open Arduino IDE
- open preferences and take note of the 'Sketchbook location' path
- navigate into the
libraries
sub folder at that path (e.g. with terminal) - clone this Git repository into that folder
- restart Arduino IDE
- you should now find the MAX7219LedMatrix library in Sketch > Include Library
Connecting the module(s) to the ESP8266
LED Matrix | ESP8266 |
---|---|
VCC | +3.3V |
GND | GND |
DIN | GPIO13 (HSPID) |
CS | Choose free GPIO, e.g. GPIO2 |
CLK | GPIO14 (HSPICLK) |