GithubHelp home page GithubHelp logo

ximtech / max7219 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.65 MB

Compact, serial input/output common-cathode display driver

License: MIT License

CMake 44.35% C 55.65%
stm32 c library max7219 led-dot-matrix

max7219's Introduction

MAX7219

STM32 Low Layer(LL) library. MAX7219 are compact, serial input/output common-cathode display drivers that interface microprocessors (µPs) to 7-segment numeric LED displays of up to 8 digits, bar-graph displays, or 64 individual LEDs.

image

Features

  • Dot LED Matrix library
    • Text shift and scroll
    • Custom text font and image print
    • Predefined text fonts and sprints

Add as CPM project dependency

How to add CPM to the project, check the link

CPMAddPackage(
        NAME MAX7219
        GITHUB_REPOSITORY ximtech/MAX7219
        GIT_TAG origin/main)

Project configuration

  1. Start project with STM32CubeMX:
  2. Select: Project Manager -> Advanced Settings -> SPI -> LL
  3. Generate Code
  4. Add sources to project:
add_subdirectory(${STM32_CORE_SOURCE_DIR}/SPI/Polling)  # add SPI dependency

include_directories(${includes}
        ${MAX7219_MATRIX_DIRECTORY})   # matrix display source directories

file(GLOB_RECURSE SOURCES ${sources}
        ${MAX7219_MATRIX_SOURCES})    # matrix display source files
  1. Then Build -> Clean -> Rebuild Project

Wiring

  • Single module
    • image
  • Multi modules
    • image

Usage

In main.h set configuration defines

#define MAX7219_NUMBER_OF_MATRIX_DISPLAYS  4    // by default 4 led matrix modules selected

// Define fonts. Comment unused.
#define MAX7219_FONT_DEFAULT  1
#define MAX7219_FONT_SPRITES  2
#define MAX7219_FONT_REGULAR  3
  • Usage example: link

max7219's People

Contributors

ximtech avatar

Watchers

 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.