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.
Graphical.cpp
00001 #include "header.h" 00002 #include "MobileLCD.h" 00003 // Graphical Mode 00004 00005 extern float xout; 00006 extern float yout; 00007 extern float zout; 00008 extern float xball; 00009 extern float yball; 00010 extern long ball; 00011 extern long a; 00012 extern long b; 00013 extern long a2; 00014 extern long b2; 00015 extern long k; 00016 extern long red; 00017 extern long blue; 00018 extern long green; 00019 extern long col; 00020 00021 void Graphic(void){ 00022 lcd.cls(); 00023 while(1){ 00024 00025 SigCon(); 00026 xball=((xout*64)+64); 00027 yball=((yout*64)+64); 00028 b2 = (xball-20); 00029 a2 = (yball-20); 00030 00031 for (a = a2; a < a2+39; a++) { // this loop draws rows 00032 00033 for (b = b2; b < b2+39; b++) {// this loop draws columns 00034 00035 ball = bmp[k]; 00036 00037 if (ball !=0x00FF00) { 00038 red = ball << 16; 00039 red = red & 0xE00000; 00040 green = ball << 11; 00041 green = green & 0xE000; 00042 blue = ball << 6; 00043 blue = blue & 0xC0; 00044 00045 col = blue | green | red; 00046 } 00047 k++; 00048 lcd.pixel(a,b,col); 00049 } 00050 } 00051 k=0; 00052 but2.fall (&menuscreen); 00053 } 00054 00055 }
Generated on Mon Aug 8 2022 08:50:07 by
1.7.2