ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts  1.0
ESP8266ILI9341DisplayProject
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
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 
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_
#define MEMSPACE_RO
Definition: cpu.h:29
MEMSPACE_RO wire_p cube_points[]
CUBE data +/- 0.5 is a cube with sides of 1.0.
Definition: cube_data.h:36
#define WIRE_ONE
Definition: wire_types.h:40
MEMSPACE_RO wire_e cube_edges[]
Definition: cube_data.h:51