Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////////////////////////////////////////
- // { PROGRAM NAME } { VERSION }
- // Author:
- // License:
- // Description:
- ////////////////////////////////////////
- /* Keep these headers */
- #include <stdbool.h>
- #include <stddef.h>
- #include <stdint.h>
- #include <tice.h>
- /* Standard headers */
- #include <math.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <graphx.h>
- #include <keypadc.h>
- /* Other available headers: stdarg.h, setjmp.h, assert.h, ctype.h, float.h, iso646.h, limits.h, errno.h */
- /* Put function prototypes here */
- uint16_t coords[300] = {0};
- /* Put all your code here */
- void main(void)
- {
- int i0, i1, i2; // all iterators
- int key;
- bool run = 1;
- gfx_Begin(gfx_8bpp);
- gfx_ZeroScreen();
- gfx_SetColor(255);
- gfx_Line(0, 0, 0, 240);
- gfx_Line(0, 0, 320, 0);
- gfx_Line(0, 240, 320, 240);
- gfx_Line(320, 0, 320, 240);
- gfx_Line(55, 240, 55, 220);
- i1 = 1;
- for(i0=170;i0>140;i0-=2) {
- gfx_SetPixel(27-i1,i0);
- gfx_SetPixel(27+i1,i0+1);
- i1++;
- }
- i2 = 0;
- i0 = 3;
- i1 = 3;
- for(i0=3;i0<53;i0++){
- for(i1=3;i1<8;i1++) {
- coords[i2]=i0;
- coords[i2+1]=i1;
- i2+=2;
- }
- }
- /*while(run) {
- key = kb_ScanGroup(kb_group_6);
- if (key == kb_Clear) run = 0;
- }*/
- while(!os_GetCSC());
- gfx_End();
- prgm_CleanUp();
- }
Advertisement
Add Comment
Please, Sign In to add comment