Code Monkey home page Code Monkey logo

esphome_max7219's Introduction

MAX7219 Grid display

Installation

  1. git clone https://github.com/ASMfreaK/esphome_max7219.git max7219grid
  2. Use this example configuration
esphome:
  # ...
  includes:
    - max7219grid/max7219grid.hpp

# ...
spi:
  clk_pin: D1
  mosi_pin: D2
  id: _spi

custom_component:
- lambda: |-
    using Disp = esphome::display::MAX7219GridComponent;
    auto grid = new Disp(id(_spi), new esphome::GPIOPin(D3, OUTPUT), 100);
    grid->set_num_chips(4);
    auto writer = [](Disp& it){
      static uint16_t offset=0;
      ++offset;
      for(uint16_t l=0; l< it.width(); ++l){
        it.fill_vertical_line(l, 0x1 << ((l + offset) % it.height()));
      }
    };
    grid->set_writer(writer);
    return {grid};

esphome_max7219's People

Contributors

asmfreak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

esphome_max7219's Issues

Example of a fully config ESPHOME

Can I have please a tutorial how to integrate this into Home assistant?
I would like to display the time and the temperature of a room. Also this integration allow scrolling text?

Compilation error during build on latest (beta/dev) esphome

Hello. I have got a problem with compilation firmware for wemos d1 board, when your module is imported.
At first I have fixed all includes.But still have another errors. Could you please fix this module for using with latest version of esphome.

Thanks.

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.