Hi Treffnix,
Here is the general information for connecting the Sure 3208 display up to Arduino.
http://scuola.arduino.cc/en/content/interfacing-arduino-uno-sure-electronics-led-dot-matrix-based-ht1632c-controller
There is an interesting LED_image_drawing_utility in the Image drawing folder of the HT 1632 library. This is what the Blinking_heart code uses.
Download the HT1632 Library here -
I also attached an image of the ribbon cable pinout. For one display use the connector next to the dip switch on the back on the 3208 and set switch 1 on with 2,3 and 4 all switched off as these are for cascaded displays.
Here is the scrolling text code.
/* http://scuola.arduino.cc/en/content/interfacing-arduino-uno-sure-electronics-led-dot-matrix-based-ht1632c-controller
Pin 11 to GND
Pin 12 to VCC
Pin 3 ( CS1) to Arduino Digital pin 9
Pin 5 (WR) to Arduino Digital pin 10
Pin 7 (DATA) to Arduino Digital pin 11
*/
#include <font_5x4.h>
#include <HT1632.h>
#include <images.h>
int i = 0;
int wd;
void setup () {
// Setup and begin the matrix
// HT1632.begin(CS1,WR,DATA)
HT1632.begin( 9, 10, 11);
// Give the width, in columns, of the assigned string
// FONT_5x4_WIDTH and FONT_5x4_HEIGHT are parameter specified in the "font_5x4.h" file
wd = HT1632.getTextWidth("I hope that you enjoy playing around with these Sure 3208 displays Doc !", FONT_5X4_WIDTH, FONT_5X4_HEIGHT);
}
void loop () {
// Font rendering example
HT1632.drawTarget(BUFFER_BOARD(1));
HT1632.clear();
HT1632.drawText("I hope that you enjoy playing around with these Sure 3208 displays Doc ", 2*OUT_SIZE - i, 2, FONT_5X4, FONT_5X4_WIDTH, FONT_5X4_HEIGHT, FONT_5X4_STEP_GLYPH);
HT1632.render();
i = (i+1)%(wd + OUT_SIZE * 2);
delay(200);
}
And the Blinking_heart code -
#include <HT1632.h>
#include <Images.h>
void setup () {
HT1632.begin(9, 10, 11);
// Where pinCS1, pinWR and pinDATA are the numbers of the output pins
// that are connected to the appropriate pins on the HT1632.
}
void loop () {
HT1632.drawImage(IMG_HEART, IMG_HEART_WIDTH, IMG_HEART_HEIGHT, (OUT_SIZE - IMG_HEART_WIDTH)/2, 0);
// The definitions for IMG_HEART and its width and height are available in images.h.
// This step only performs the drawing in internal memory.
HT1632.render();
// This updates the display on the screen.
delay(1000);
HT1632.clear();
// This zeroes out the internal memory.
HT1632.render();
// This updates the screen display.
delay(1000);
}
I hope that this helps you out and good luck,
Pedro. 8)
EDIT - I use Arduino IDE 1.0.3 but I do not think that you will have any problem using these two sketches with IDE 1.0.4
Sure_3208_circuit.bmp (51.9 KB)