ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
1.0
ESP8266ILI9341DisplayProject
Main Page
Related Pages
Data Structures
Files
File List
Globals
wire
cube_data.h
Go to the documentation of this file.
1
#ifndef _CUBE_DATA_H_
2
#define _CUBE_DATA_H_
3
29
#ifndef WIRE_ONE
30
#error WIRE_ONE
31
#endif
32
34
//MEMSPACE
35
MEMSPACE_RO
36
wire_p
cube_points
[] = {
37
/* TOP FACE */
38
{
WIRE_ONE
/2,
WIRE_ONE
/2,
WIRE_ONE
/2},
/* x, y, z */
39
{-
WIRE_ONE
/2,
WIRE_ONE
/2,
WIRE_ONE
/2},
/* -x, y, z */
40
{-
WIRE_ONE
/2,-
WIRE_ONE
/2,
WIRE_ONE
/2},
/* -x,-y, z */
41
{
WIRE_ONE
/2,-
WIRE_ONE
/2,
WIRE_ONE
/2},
/* x,-y, z */
42
/* BOTTOM FACE */
43
{
WIRE_ONE
/2,
WIRE_ONE
/2,-
WIRE_ONE
/2},
/* x, y,-z */
44
{-
WIRE_ONE
/2,
WIRE_ONE
/2,-
WIRE_ONE
/2},
/* -x, y,-z */
45
{-
WIRE_ONE
/2,-
WIRE_ONE
/2,-
WIRE_ONE
/2},
/* -x,-y,-z */
46
{
WIRE_ONE
/2,-
WIRE_ONE
/2,-
WIRE_ONE
/2},
/* x,-y,-z */
47
{
WIRE_ONE
/2,
WIRE_ONE
/2,-
WIRE_ONE
/2},
/* x, y,-z */
48
};
49
50
MEMSPACE_RO
51
wire_e
cube_edges
[] = {
52
/* TOP FACE */
53
{ 0,1 },
54
{ 1,2 },
55
{ 2,3 },
56
{ 3,0 },
57
58
/* BOTTOM FACE */
59
{ 4,5 },
60
{ 5,6 },
61
{ 6,7 },
62
{ 7,4 },
63
64
/* Remaining Edges */
65
{ 0,4 },
66
{ 1,5 },
67
{ 2,6 },
68
{ 3,7 },
69
70
/* END */
71
{ -1,-1},
72
};
73
74
#else
75
extern
wire_p
cube_points[];
76
extern
wire_e
cube_edges[];
77
#endif // _CUBE_DATA_H_
wire_p
Definition:
wire_types.h:28
MEMSPACE_RO
#define MEMSPACE_RO
Definition:
cpu.h:29
cube_points
MEMSPACE_RO wire_p cube_points[]
CUBE data +/- 0.5 is a cube with sides of 1.0.
Definition:
cube_data.h:36
WIRE_ONE
#define WIRE_ONE
Definition:
wire_types.h:40
cube_edges
MEMSPACE_RO wire_e cube_edges[]
Definition:
cube_data.h:51
wire_e
Definition:
wire_types.h:34
Generated on Wed Jan 31 2018 21:22:16 for ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts by
1.8.11