Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Memory25L16_fast USBDevice mbed
Fork of BlackBoard_Firmware_MVP by
Diff: BB_Basic.cpp
- Revision:
- 6:2f4a272ab299
- Parent:
- 5:07113abf18c0
- Child:
- 7:b30c411a6d36
--- a/BB_Basic.cpp Thu Dec 22 22:16:34 2016 +0000 +++ b/BB_Basic.cpp Wed Jan 25 01:43:55 2017 +0000 @@ -480,6 +480,7 @@ //Create local variables int lineLengh = 60; //the length of the display in bytes + int imageLength = 1440; char sixtyBytes[lineLengh]; //Create a line buffer //int line = 0; //counter to keep track of the current line @@ -502,7 +503,7 @@ wait_ms(120); //delay 120ms //loop throug 1440 lines - for(int j=0; j<1440; j++) { + for(int j=0; j<imageLength; j++) { //pc.printf("\n"); mem.readData(mem_spi, sixtyBytes, address, lineLengh); //Read the line, putt them in buffer return the next address to read from for(int i =0; i<lineLengh; i++) { //Read one byte from the buffer @@ -511,6 +512,7 @@ address++; //byteCounter++; } + epd_spi.write(00); //Write a 0 at the end of each line //wait_us(10000); }