Modified to work with two displays
Dependents: touch2 default CANary_9341_test CANary_merge
Fork of SPI_TFT by
Diff: SPI_TFT.cpp
- Revision:
- 6:34a13617fd35
- Parent:
- 5:9cbf4a534f7e
- Child:
- 7:e753bb62eeb9
diff -r 9cbf4a534f7e -r 34a13617fd35 SPI_TFT.cpp --- a/SPI_TFT.cpp Thu Sep 20 23:40:46 2012 +0000 +++ b/SPI_TFT.cpp Sat Sep 22 20:41:44 2012 +0000 @@ -29,7 +29,7 @@ #define BPP 16 // Bits per pixel -extern Serial pc; +//extern Serial pc; //extern DigitalOut xx; // debug !! SPI_TFT::SPI_TFT(PinName mosi, PinName miso, PinName sclk, PinName cs, PinName reset, const char *name) @@ -1011,11 +1011,6 @@ } while ((PixelWidth * 2 + padd)%4 != 0); - pc.printf("width = %d \n\r",PixelWidth); - pc.printf("heigh = %d \n\r",PixelHeigh); - pc.printf("padd = %d \n\r",padd); - pc.printf("start = 0x%x \n\r",start_data); - //fseek(Image, 70 ,SEEK_SET); window(x, y,PixelWidth ,PixelHeigh); wr_cmd(0x22);