abaskin / max72xx Goto Github PK
View Code? Open in Web Editor NEWA library for using a 7-segment display driven with a MAX7219 or MAX7221 IC. Requires the Arduino framework.
License: MIT License
A library for using a 7-segment display driven with a MAX7219 or MAX7221 IC. Requires the Arduino framework.
License: MIT License
I am currently trying to use this lib on nano ESP32 as it says its supporting ESP32.
As the specified ESP Pinout is not working on nano I tried using the SPI interface which is on the same pins as for the other boards like uno.
I used this as a test code:
`#include <Arduino.h>
#include <MAX72XX.h>
constexpr uint8_t latchPin = 7; // change to reflect your latchPin
constexpr uint8_t numDevices = 1; // the number of devices
// for hardware SPI
// create the object for the device chain
MAX72XX dispChain(latchPin, numDevices);
// create the time displays
MAX72XXDisplay counterDisp(&dispChain, 0, 5);
MAX72XXDisplay txtDisp(&dispChain, 5, 3);
void setup() {
dispChain.setIntensity(10); // set the intensity for all the devices
counterDisp.writeNumber(921, 1);
counterDisp.update(true);
txtDisp.writeChar(0, MAX72XX::Character::BLANK);
txtDisp.writeChar(1, MAX72XX::Character::P);
txtDisp.writeChar(2, 0b00111110 );
txtDisp.update(true);
}
void loop() {
}`
When testing with uno it works perfectly fine.
When testing with nano ESP the display stays off..
Am I doing anything wrong or will the library just not work with the nano?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.