i get hard to displaying "string" n "int"..
// Author: Phil Kaziewicz 19th July 2014
// 64x32 LED display matrix test code
// based upon original code from canton-electonics
// Arduino 1.0.5 UNO R3
#include <avr/pgmspace.h>
#define COLUMNS 16
#define HEIGHT 32
// Connections to board
const byte latchPin = 8;
const byte clockPin = 12;
const byte data_R1 = 11;
const byte data_R2 = 10;
const byte en_74138 = 2;
const byte la_74138 = 3;
const byte lb_74138 = 4;
const byte lc_74138 = 5;
const byte ld_74138 = 6;
byte ScanRow = 0;
unsigned long counter;
const char message[] = " DISPLAY Characters TWO ROWS ";
pinMode(en_74138, OUTPUT);
pinMode(la_74138, OUTPUT); pinMode(lb_74138, OUTPUT);
pinMode(lc_74138, OUTPUT); pinMode(ld_74138, OUTPUT);
digitalWrite(en_74138, LOW);
digitalWrite(data_R1, HIGH); digitalWrite(data_R2, HIGH);
counter = millis();
sei(); //allow interrupts
};
// Note that there's no need to do anything with the screen in the main loop.
// Whatever's in "buffer" is constantly scanned out.
void loop() {
unsigned long clock;
static int count = 0;
byte seconds, colour;
clock = 100000000 - ((millis() - counter) / 1000);
// display clock
//drawChar(0,0,(clock/10000000)%10,0,false);
//drawChar(8,0,(clock/1000000)%10,0,false);
//drawChar(16,0,(clock/100000)%10,0,false);
//drawChar(24,0,',',0,false);
//drawChar(32,0,(clock/10000)%10,0,false);
//drawChar(40,0,(clock/1000)%10,0,false);
//drawChar(48,0,(clock/100)%10,0,false);
//drawChar(56,0,(clock/10)%10,0,false);
// seconds = (clock/10)%10;
// colour = (clock/200)&1;
// draw a rectangle
// drawRect(72+seconds*5,0,72+seconds*5+3,7,colour);
// drawRect(72+seconds*5+1,2,72+seconds*5+3,3,!colour);
// draw a blob
// setPixel(80,6,colour); setPixel(126,6,colour); setPixel(127,6,colour);
// setPixel(126,5,colour); setPixel(126,7,colour);
// display next character of message
drawChar(120, 1, message[count % (sizeof(message) - 1)], 1, false);
count = (count + 1);
// DISPLAY SCROLL Rate set at delay
// move the text 7 pixels (not 8 because it looks better) to the left
for (byte i = 0; i < 10; i++) { // character spacing
delay(50); // delay between scrolls
moveLeft(1, 2, 15); // column spacing,?,?
};
};
any idea....