#include <LedDisplay.h>
// Define pins for the LED display.
#define dataPin 6 // connects to the display's data in
#define registerSelect 7 // the display's register select pin
#define clockPin 8 // the display's clock pin
#define enable 9 // the display's chip enable pin
#define reset 10 // the display's reset pin
#define displayLength 8 // number of characters in the display
// create an instance of the LED display library:
LedDisplay d1 = LedDisplay(dataPin, registerSelect, clockPin,
enable, reset, displayLength);
int brightness = 15; // screen brightness
void setup() {
// initialize the display library:
d1.begin();
// set the brightness of the display:
d1.setBrightness(brightness);
}
void loop() {
//set cursor to 0 position
d1.home();
//print cursor position in each respective position
for (int i = 0; i < 8; i++){
d1.print(d1.getCursor());
delay(500);
}
//clear display
d1.clear();
}
there is no direct manipulation of pin 13.
this program is using the LedDisplay library to talk to an HCMS-2915 8 character led display.
ideally the program would write to the display, one character at a time
01234567
then clear, and begin writing again.
when it gets to 6, the pin 13 LED (or L light as I confusingly called it) blinks, and the program restarts, clearing the display, and starting from 0.
i'm externally powering the display, and I'm running the arduino off of the USB power.