Giter Club home page Giter Club logo

esphome-frekvens-panel's Introduction

esphome-frekvens-component

A custom component for esp-home to interface with IKEA's Frekvens Cube.

Sources

This repo is heavily based on the original FrekvensPanel library by @frumperino.

It's also inspired from the esphome component PCD8544.

Usage

Currently there is a dependency upon Adafruit GFX library. In your esphome config, add these lines:

  • Declare necessary libraries
  • Define frekvenspanel component

Here is a short config to demonstrate the usage to display time on panel:

esphome:
  name: frekvens8266-weather
  platform: ESP8266
  board: d1_mini
  platformio_options:
    upload_speed: 115200
    lib_deps:
      - me-no-dev/ESPAsyncTCP
      - adafruit/Adafruit GFX Library   # Required for FrekvensPanel.
      - Adafruit BusIO                  # Required by GFX Library.
      - Wire                            # Also required by GFX.
      - SPI                             # Also required by GFX.

external_components:
  - source:
      type: local
      path: <path of directory containing frekvens_panel>

light:
  - platform: monochromatic
    name: 'Brightness'
    output: matrix_brightness
    restore_mode: RESTORE_DEFAULT_ON

output:
  - platform: esp8266_pwm
    # Enables brightness control.
    id: matrix_brightness
    pin:
      number: GPIO14
      inverted: True

time:
  - platform: sntp
    id: ntp_time
    timezone: 'Europe/Paris'

font:
  - file: "04B03.ttf"
    id: b03
    size: 8

display:
  - platform: frekvens_panel
    latch_pin: 12
    clock_pin: 04
    data_pin: 05

    lambda: |-
      auto time = id(ntp_time).now();
      it.printf(0, 0, id(b03), "%d:%d", time.hour, time.minute);

License

[TBD] the original library does not specify the license. This repo is consecutively not licensed yet either.

esphome-frekvens-panel's People

Contributors

prashnts avatar

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.