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: SPI_TFTx2_ILI9341 TFT_fonts TOUCH_TFTx2_ILI9341 mbed
Fork of CANary_corrupt by
Diff: utility.cpp
- Revision:
- 26:462ccb580472
- Parent:
- 25:ddf0ec209f03
- Child:
- 31:082372c83f68
diff -r ddf0ec209f03 -r 462ccb580472 utility.cpp
--- a/utility.cpp Fri Mar 15 04:28:34 2013 +0000
+++ b/utility.cpp Sat Mar 16 02:07:09 2013 +0000
@@ -198,6 +198,14 @@
fprintf(cfile,"x1_pp %d\r\n",tt.x1_pp);
fprintf(cfile,"y1_pp %d\r\n",tt.y1_pp);
fprintf(cfile,"x_mid %d\r\n",tt.x_mid);
+ if (dMode[0]==config1Screen)
+ fprintf(cfile,"dMode0 %d\r\n",dteScreen);
+ else
+ fprintf(cfile,"dMode0 %d\r\n",dMode[0]);
+ if (dMode[1]==config1Screen)
+ fprintf(cfile,"dMode1 %d\r\n",dteScreen);
+ else
+ fprintf(cfile,"dMode1 %d\r\n",dMode[1]);
fclose(cfile);
}
@@ -228,6 +236,8 @@
fscanf(cfile, "x1_pp %d\r\n", &tt.x1_pp ) ;
fscanf(cfile, "y1_pp %d\r\n", &tt.y1_pp ) ;
fscanf(cfile, "x_mid %d\r\n", &tt.x_mid ) ;
+ fscanf(cfile, "dMode0 %d\r\n", &dMode[0] ) ;
+ fscanf(cfile, "dMode1 %d\r\n", &dMode[1] ) ;
fclose(cfile);
}
}
