GithubHelp home page GithubHelp logo

tesst's Introduction

Build Status GitHub version GitHub release GitHub code size GitHub code GitHub issues open

The MAX7219 library can be used for a 8x8 LED matrix module or 8x 7-segment module. The library uses the orginal SPI library from the Arduino IDE.


Connecting an MCU to a Modul

These instructions are for all MCU's.

MCU MAX7219 (LED Matrix-7Segment) - Modul
VCC VCC
GND GND
SCK CLK
MOSI DIN
SS CS

Installing the Library

To install the library into your IDE:

  • click on the Clone or Download button on this Github page and select Download ZIP.
  • Start the Arduino IDE and from the Sketch menu do Sketch->Include Library->Add ZIP Library and select the ZIP you just downloaded.

API Reference

This is a very easy library to use. You may just wish to try out the examples, that send a bitmessage from the MCU to the MAX7219 using the SPI. But for completeness, here it is:


Matrix-8x8-Modul

You can use a maximum 8 8x8Matrix fields.

Table of Functions



Include File

Include the the library.

#include <MAX7219.h>

Initialisation

Initialize the library with an object from Matrix8x8 from the Namespace MAX7219.

MAX7219::Segment myMatrix

setIntensity

Set the brightness of the module.

myMatrix.setIntensity(uint8_t _intensity=1);

_intensity brightness of segments / from 1 to 15


writeByte

Writes a byte in the layout

myMatrix.writeByte(uint64_t _byte, int8_t _row=0, int8_t _shift=0, int8_t _invert=0);

_byte set the value of one byte

_row set the row from the byte / from 0 to 7

_shift shift the byte by _shift columns

_invert inverse the byte / 0=not inverse or 1=inverse


writeArray

Writes a array in the layout

myMatrix.writeArray(char * _array, int8_t _shift=0, char _inversetion='n', int8_t _invert=0, uint8_t _offset=0);

_array array[8][8]

_shift shift the array by _shift columns

_inversetion Turn the array in the _inversetion direction / n=normal, r=right,l=left,h=headsup

_invert inverse the array / 0=not inverse or 1=inverse

_offset change direction / runns 1=right to left or 0=left to right


writeChar

Write an ASCII-sign in the layout

myMatrix.writeChar(char _char, int8_t _shift=0, char _inversetion='n', int8_t _invert=0, uint8_t _offset=0);

_array char string

_shift shift the char by _shift columns

_inversetion Turn the char in the _inversetion direction / n=normal, r=right,l=left,h=headsup

_invert inverse the char / 0=not inverse or 1=inverse

_offset move up by _offset raws


printScrollText

Write a string which runs over the display

myMatrix.printScrollText(char * _text, uint8_t _speed=80, int8_t _invert=0);

_text char string

_speed speed auf the running text

_invert change direction / runs 1=right to left or 0=left to right


blankDisplay

Set all 8x8 fields blank.

myMatrix.blankDisplay();

printDisplay

Print/Show the inserted arrays of characters and bytes.

myMatrix.printDisplay();


7-Segment Modul x8

You can use a maximum of 8 digits (including comma).

Table of Functions



Include File

Include the the library.

#include <MAX7219.h>

Initialisation

Initialize the library with an object from Segment from the Namespace MAX7219.

MAX7219::Segment mySegment 

setIntensity

Set the brightness of the module.

mySegment.setIntensity(uint8_t _intensity=1);

_intensity brightness of segments / from 1 to 15


printNumber

Print/Show the number with definded decimals on the segments.

mySegment.printNumber(double _number, uint8_t _decimals=0);

_number number to show on the segments

_decimals number of decimal places displayed on the segments


blankDisplay

Set all digits blank.

mySegment.blankDisplay();

tesst's People

Contributors

reiter86 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.