Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Compile each line of the image and write the image line-by-line
- for( int y = 0; y < IMHT; y++ ) {
- for( int x = 0; x < (IMWD/8); x++ ) {
- uchar packedLine = 0;
- c_in :> packedLine;
- for(int i = 0; i < 8; i++) {
- line[x + i] = (uchar) ((packedLine >> (7-i)) & 1) * 255;
- }
- //Lights the Blue LED
- led <: 1;
- }
- _writeoutline( line, IMWD );
- printf( "DataOutStream: Line written...\n" );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement