What's new
PinoyTechnician

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

REFERENCE Arduino - scrolling text add for ur shop!!!

Berdugo

Registered
Joined
Oct 30, 2014
Messages
1,127
Reaction score
19
Points
181
Requirements:

1. ARDUINO Board (Any model)
2. 2pcs. 8x32(x4)
3. some programming skills
4. library for:
Adafruit_GFX.h
Max72xxPanel.h

5. soldering skills

KmhlTF8.jpg


bZO0Ish.jpg


cla9A7u.jpg


RsZ4tgl.jpg




CODE:

#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Max72xxPanel.h>

int pinCS = 10;
int numberOfHorizontalDisplays = 1;
int numberOfVerticalDisplays = 8;

Max72xxPanel matrix = Max72xxPanel(pinCS, numberOfHorizontalDisplays, numberOfVerticalDisplays);

String tape = "PC CENTER & NETWORK SOLUTION - REPAIR & SERVICES... LAPTOP PC CELLPHONE TABLET"; // <<<<<<<<<<<<<< PALITAN NYO KUNG DI KYO MARUNONG MAG PROGRAM!!!! //

int wait = 100; // In milliseconds

int spacer = 1;
int width = 5 + spacer;

void setup() {
matrix.setRotation(matrix.getRotation()+3); //1 - 90 2 - 180 3 - 270
matrix.setIntensity(8);
}

void loop() {

for ( int i = 0 ; i < width * tape.length() + matrix.width() - 1 - spacer; i++ ) {

matrix.fillScreen(LOW);

int letter = i / width;
int x = (matrix.width() - 1) - i % width;
int y = (matrix.height() - 8) / 2;

while ( x + width - spacer >= 0 && letter >= 0 ) {
if ( letter < tape.length() ) {
matrix.drawChar(x, y, tape[letter], HIGH, LOW, 1);
}

letter--;
x -= width;
}

matrix.write();

delay(wait);
}
}

=)) FENIS NA
 
Last edited by a moderator:
500 ang board

1000 ang led matrix

bayad sa program mga 10,000 hahahaha

bili kayo andyan na program
 
hindi biro gumawa at mag program nyan.. salamat sa codes boss
 
Back
Top