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.
Revision 1:714e68b0ba58, committed 2010-12-22
- Comitter:
- copperd
- Date:
- Wed Dec 22 01:12:37 2010 +0000
- Parent:
- 0:3e9d11eb5a2e
- Commit message:
- 2nd public, It looks nicer with a black background
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Dec 21 23:38:22 2010 +0000
+++ b/main.cpp Wed Dec 22 01:12:37 2010 +0000
@@ -9,7 +9,7 @@
srand(1); // Random seed
ecran.baudrate(115200);
- ecran.background_color(WHITE);
+ ecran.background_color(BLACK);
ecran.pen_size(SOLID);
// Set up Grid
// Display field is 34 x 25
@@ -91,7 +91,7 @@
{
displayold[sx][sy] = displaynew[sx][sy];
if (displaynew[sx][sy] == 1) ecran.rectangle(((9*sx)+1),((9*sy)+1),((9*sx)+7),((9*sy)+7),RED);
- else ecran.rectangle(((9*sx)+1),((9*sy)+1),((9*sx)+7),((9*sy)+7),WHITE);
+ else ecran.rectangle(((9*sx)+1),((9*sy)+1),((9*sx)+7),((9*sy)+7),BLACK);
}