PropWare  3.0.0.224
C++ objects and CMake build system for Parallax Propeller
Macros | Functions | Variables
GraphicsTest.c File Reference
#include <stdint.h>
#include <stdlib.h>
#include <propeller.h>
#include "tv.h"
#include "Graphics.h"
+ Include dependency graph for GraphicsTest.c:

Go to the source code of this file.

Macros

#define X_TILES   12
 
#define Y_TILES   10
 
#define X_EXPANSION   14
 
#define X_ORIGIN   96
 
#define Y_ORIGIN   80
 
#define LINES   4
 
#define THICKNESS   3
 
#define MAX_COLORS   64
 
#define BITMAP_BASE   (((int)gBitmap +256) & ~127)
 
#define DISPLY_BASE   (((int)gDisplay+256) & ~127)
 
#define MAXV   50
 

Functions

void Start (void)
 
void grTest (void)
 
int main (void)
 
static int tvstart (int pin)
 

Variables

HUBDATA TV_t gTV
 
HUBDATA volatile uint16_t gScreen [X_TILES *Y_TILES]
 
HUBDATA volatile uint32_t gColors [MAX_COLORS]
 
HUBDATA volatile uint32_t gDisplay [(X_TILES *Y_TILES<< 4)+128]
 
HUBDATA volatile uint32_t gBitmap [(X_TILES *Y_TILES<< 4)+128]
 
uint8_t xa [LINES]
 
uint8_t ya [LINES]
 
uint8_t xsa [LINES]
 
uint8_t ysa [LINES]
 
uint16_t vecdef []
 
uint16_t vecdef2 []
 
uint16_t pixdef []
 
uint16_t pixdef2 []
 
char gstr [100]
 

Detailed Description

Graphics test application ported from Chip Gracy's GraphicsDemo.spin Copyright (c) 2009, Steve Denson See end of file for MIT license terms.

Definition in file GraphicsTest.c.

Function Documentation

◆ main()

int main ( void  )

Variable Documentation

◆ pixdef

uint16_t pixdef[]
Initial value:
=
{
0x0702, 0x0000,
0x0fc0, 0x0000,
0x3230, 0x0000,
0xc20c, 0x0000,
0xeaac, 0x0000,
0xc20c, 0x2000,
0x3230, 0xa800,
0x0fc0, 0x2000
}

Definition at line 95 of file GraphicsTest.c.

◆ pixdef2

uint16_t pixdef2[]
Initial value:
=
{
0x0401,
0x0003,
0x800a,
0x2aaa,
0x2aa0,
0x2020
}

Definition at line 110 of file GraphicsTest.c.

◆ vecdef

uint16_t vecdef[]
Initial value:
=
{
0x4000+0x2000/3*0, 50,
0x8000+0x2000/3*1+1, 50,
0x8000+0x2000/3*2-1, 50,
0x8000+0x2000/3*0, 50,
0
}

Definition at line 62 of file GraphicsTest.c.

◆ vecdef2

uint16_t vecdef2[]
Initial value:
=
{
0x4000+0x2000/12*0, 50,
0x8000+0x2000/12*1, 20,
0x8000+0x2000/12*2, 50,
0x8000+0x2000/12*3, 20,
0x8000+0x2000/12*4, 50,
0x8000+0x2000/12*5, 20,
0x8000+0x2000/12*6, 50,
0x8000+0x2000/12*7, 20,
0x8000+0x2000/12*8, 50,
0x8000+0x2000/12*9, 20,
0x8000+0x2000/12*10, 50,
0x8000+0x2000/12*11, 20,
0x8000+0x2000/12*0, 50,
0
}

Definition at line 74 of file GraphicsTest.c.