mchestr / ht1632c-python Goto Github PK
View Code? Open in Web Editor NEWPython Library for interfacing with the HT1632c LED Matrix
Python Library for interfacing with the HT1632c LED Matrix
Hey!
I realize this project is a bit old but I'm hoping you can help me out. The new matrix panels and Pis seem to be slightly different and I can't seem to get the panel to work.
The new panel looks like this:
https://www.dropbox.com/s/k51gqh3oxr7hfrt/1.jpg?dl=0
and Pi looks like this:
https://www.dropbox.com/s/sy505yafshkq9q1/2.jpg?dl=0
I've connected (Pi3 Diagram: https://openclipart.org/image/2400px/svg_to_png/280972/gpiopinsv3withpi.png)
vcc to 5v
ground to ground
Data to pin 19
Write to pin 23
sync to 24 (this is the one i couldn't find clock on matrix for)
cs0 to pin 26
I'd really appreciate any direction as this is driving me crazy :)
Hi there
I have setup with the following panel config:
// ht1632c panel configuration
// Panel's write clock (WR) pin has to be connected to SCLK (14, GPIO 11),
// DATA has to be connected to MOSI (12, GPIO 10).
//#define PANEL_32x16C /* preset for bi-color 32x16 panel */
#define PANEL_24x16 /* preset for monochrome 24x16 panel */
// Chained chip select mode.
// Define if chips are chained and connected using CLK/CS lines.
// Don't define if chip select pins are connected directly to output pins.
#define HT1632C_CS_CHAINED
#define HT1632_CLK 10 /* chip select clock pin */
#define HT1632_CS 11
// panel parameters
#define CHIPS_PER_PANEL 1 /* ht1632c chips per panel */
#define PANEL_WIDTH 24 /* panel width (pixels) */
#define PANEL_HEIGHT 16 /* panel height (pixels) */
#define CHIP_WIDTH 24 /* chip width (pixels) */
#define CHIP_HEIGHT 16 /* chip height (pixels) */
#define COLORS 1 /* number of colors (1 or 2) */
#define SPI_FREQ 2560000 /* SPI frequency (Hz; up to 32000000) */
#define CS_CLK_DELAY 10 /* CS pulse length (µs) in chained CS mode */
All the examples work but only display on one of the 2 panels. The one which has dip switch 2 on. I know both panels work because if I swap the dip switches around the other panel works. How can I get it to display across both panels?
HI,
I code with c library
I don't get a good format for write "const FontInfo* font" in fourth arguments of putstr().
How write them ?
Best regards
Hello,
Thank you for this portage, it allowed me to replace my old arduino mega by a raspberry zero W.
I use your code for a Clock, but I would like to add fonts, I tried to modify font.c font.h, and interface.py, but it does not work ...
I usually program in C, and I start in python.
I hope you have 5 minutes to give me your help.
PS: sorry for my english, but i'm french. 👍
Hi,
first of all, many thanks for your work.
I´m trying to use your code to drive 2 (maybe 4) Sure LED matrixes, but I got wierd behavior of it.
You can see it here:
Do you have any similar experiencis like me? Have I something wrong? I wired it by your example. Text is jumping just with black background, I think.
Many thanks for reply.
Miroslav
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.