Forum Replies Created
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
rcj10Participant
When trying the one Writer approach it seems to last longer:
/* Simple example code for Peggy 2.0, using the Peggy2 and PeggyWriter libraries*/#include <Peggy2.h>#include <PeggyWriter.h>Peggy2 frame1; // Make a frame buffer object, called frame1PeggyWriter myWriter1; // Make a PeggyWriter objectPeggyScroller comp1; // Make a PeggyScroller objectPeggyScroller comp2;PeggyScroller comp3;char scrollerSelect = 1;char* data1= ” TEST 1 “;char* data2 = ” TEST 2 “;char* data3 = ” TEST 3 “;int delayCount = 0;int j = 0;char mF1;char mF2;int n = 0;char mF3;int a=1; //declaring integerchar b[2]; //declaring character arrayString str; //declaring string//int k = 0;//int l = 0;//String s1, s2, s3;void setup(){frame1.HardwareInit();comp2.init(&frame1, &myWriter1, 7, data2);comp3.init(&frame1, &myWriter1, 14, data3);comp1.init(&frame1, &myWriter1, 1, data1);}void loop(){long delayCount = 0;mF1 = comp1.scrollLeft();mF2 = comp2.scrollLeft();mF3 = comp3.scrollLeft();// Refresh Peggy lots of times while we kill time.// switch messages if one has completed.if (mF1 == 0){n=n+1;//str=String(n); //converting integer into a string//str.toCharArray(data1,1); //passing the value of the string to the character arraydata1 = ” Comp 1 ? “;comp1.init(&frame1, &myWriter1, 1, data1);}if (mF2 == 0){data2 = ” COMP 2 ? “;comp2.init(&frame1, &myWriter1, 7, data2);}if (mF3 == 0){data3 = ” COMP 3 ? “;comp3.init(&frame1, &myWriter1, 14, data3);}while (delayCount < 50){frame1.RefreshAll(1);delayMicroseconds(10);delayCount++;}delayCount = 0;}rcj10ParticipantSorry for not getting back to you quicker. I was having password issues.
The display will stop scrolling. The display will drop the frame rate to half or more.I am guessing the ram is filling up? -
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)