• Stars
    star
    159
  • Rank 235,916 (Top 5 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created over 9 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Library for the ESP8266 on Arduino IDE displaying text on multiple 8x8 led matrices

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 2
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("MAX7219 Demo");
}

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)

More Repositories

1

esp8266-projects

C
248
star
2

json-streaming-parser

Arduino library for parsing potentially huge json streams on devices with scarce memory
C++
205
star
3

esp8266-fritzing-parts

Custom ESP8266 based Parts for Fritzing
162
star
4

esp32-mic-fft

Sample code for using the microphone via I2S on a ESP-EYE board
C++
56
star
5

esp8266-weather-station-platformio-demo

Objective-C
48
star
6

esp8266-ci-ota

Example for a continuus delivery by OTA
C++
36
star
7

esp32-tensorflow-microspeech

ESP32 wake word detection with tensor flow
C++
29
star
8

esp8266-getting-started

Exercises to get started with the ESP8266 following the book/workshop
C
28
star
9

esp8266-dht-thingspeak-logger

Logs temperature and humidity to Thingspeak
Arduino
20
star
10

espaper-server-php

PHP server and demo to create json objects for ESP8266 espaper
PHP
15
star
11

extraleague

Company Foosball League App
JavaScript
14
star
12

TTGO-LoRa32-V1.0-TTN-OTAA

Example project to connect the TTGO-LoRa32-V1.0 to TheThingsNetwork over OTAA
C++
10
star
13

esp32-door-sensor

ESP32 project for publishing the door state with a battery driven sensor
C++
9
star
14

ESP8266-lua-nightlight

Nightlight for kids, written in Lua, to run on the nodemcu firmware for ESP8266
Lua
7
star
15

ESP32-Paxcounter-ESPGateway

WiFi/MQTT Code For the ThingPulse ESPGateway
C++
7
star
16

esp8266-oled-ssd1306-font-converter

WebApp to create fonts for the esp8266-oled-ssd1306 library
Java
6
star
17

ePaperDemo1

Objective-C
6
star
18

ILI9341Buffer

Project for developing frame buffer
Objective-C
5
star
19

platformio-test

Objective-C
4
star
20

esp8266-display-tools

Java
3
star
21

esp32-ir-remote-gateway

esp32 firmware to receive IR codes and forward them to a MQTT broker
C++
2
star
22

u8glib

Automatically exported from code.google.com/p/u8glib
C
2
star
23

esp32-icon64-nibbles

nibbles demo for the icon64 3d printing project
C++
1
star
24

node-red-contrib-alexa-tts

node red module for sending voice commands to alexa
HTML
1
star
25

eagle2fritzing-parent

Parent project for converting Eagle brd files to fritzing parts
1
star
26

ESP8266GettingStarted

1
star