MMBC

Untitled

Jun 22nd, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.42 KB | None | 0 0
  1. ////////////////////////////////////////
  2. // { PROGRAM NAME } { VERSION }
  3. // Author:
  4. // License:
  5. // Description:
  6. ////////////////////////////////////////
  7.  
  8. /* Keep these headers */
  9. #include <stdbool.h>
  10. #include <stddef.h>
  11. #include <stdint.h>
  12. #include <tice.h>
  13.  
  14. /* Standard headers */
  15. #include <math.h>
  16. #include <stdio.h>
  17. #include <stdlib.h>
  18. #include <string.h>
  19.  
  20. #include <graphx.h>
  21. #include <keypadc.h>
  22.  
  23. /* Other available headers: stdarg.h, setjmp.h, assert.h, ctype.h, float.h, iso646.h, limits.h, errno.h */
  24.  
  25. /* Put function prototypes here */
  26.  
  27.  
  28. uint16_t coords[300] = {0};
  29.  
  30.  
  31. /* Put all your code here */
  32. void main(void)
  33. {
  34.     int i0, i1, i2; // all iterators
  35.     int key;
  36.     bool run = 1;
  37.     gfx_Begin(gfx_8bpp);
  38.     gfx_ZeroScreen();
  39.     gfx_SetColor(255);
  40.     gfx_Line(0, 0, 0, 240);
  41.     gfx_Line(0, 0, 320, 0);
  42.     gfx_Line(0, 240, 320, 240);
  43.     gfx_Line(320, 0, 320, 240);
  44.     gfx_Line(55, 240, 55, 220);
  45.     i1 = 1;
  46.     for(i0=170;i0>140;i0-=2) {
  47.         gfx_SetPixel(27-i1,i0);
  48.         gfx_SetPixel(27+i1,i0+1);
  49.         i1++;
  50.     }
  51.     i2 = 0;
  52.     i0 = 3;
  53.     i1 = 3;
  54.     for(i0=3;i0<53;i0++){
  55.         for(i1=3;i1<8;i1++) {
  56.             coords[i2]=i0;
  57.             coords[i2+1]=i1;
  58.             i2+=2;
  59.         }
  60.     }
  61.     /*while(run) {
  62.         key = kb_ScanGroup(kb_group_6);
  63.         if (key == kb_Clear) run = 0;
  64.     }*/
  65.  
  66.     while(!os_GetCSC());
  67.     gfx_End();
  68.     prgm_CleanUp();
  69. }
Advertisement
Add Comment
Please, Sign In to add comment