1 |
jakw |
1 |
#include "ProjectorLC4500.h"
|
|
|
2 |
|
|
|
3 |
#include "LC4500API/API.h"
|
|
|
4 |
|
|
|
5 |
ProjectorLC4500::ProjectorLC4500(unsigned int): nPatterns(0){
|
|
|
6 |
// Disable standby
|
|
|
7 |
LCR_SetPowerMode(false);
|
|
|
8 |
|
|
|
9 |
// Set source
|
|
|
10 |
LCR_SetInputSource(0, 0); //??
|
|
|
11 |
|
|
|
12 |
// Set standard axis flips
|
|
|
13 |
LCR_SetLongAxisImageFlip(false);
|
|
|
14 |
LCR_SetShortAxisImageFlip(true);
|
|
|
15 |
|
|
|
16 |
// Set LED currents
|
|
|
17 |
LCR_SetLedCurrents(70, 0, 0);
|
|
|
18 |
|
|
|
19 |
// Configure GPIO
|
|
|
20 |
//int LCR_SetGPIOConfig(unsigned int pinNum, bool enAltFunc, bool altFunc1, bool dirOutput, bool outTypeOpenDrain, bool pinState);
|
|
|
21 |
|
|
|
22 |
// Set pattern display mode to "not external"
|
|
|
23 |
int LCR_SetPatternDisplayMode(false);
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
}
|
|
|
27 |
|
|
|
28 |
void ProjectorLC4500::setPattern(unsigned int patternNumber, const unsigned char *tex, unsigned int texWidth, unsigned int texHeight){
|
|
|
29 |
|
|
|
30 |
}
|
|
|
31 |
|
|
|
32 |
void ProjectorLC4500::displayPattern(unsigned int){
|
|
|
33 |
|
|
|
34 |
}
|
|
|
35 |
|
|
|
36 |
void ProjectorLC4500::displayTexture(const unsigned char *tex, unsigned int texWidth, unsigned int texHeight){
|
|
|
37 |
|
|
|
38 |
}
|
|
|
39 |
|
|
|
40 |
void ProjectorLC4500::displayBlack(){
|
|
|
41 |
|
|
|
42 |
}
|
|
|
43 |
|
|
|
44 |
void ProjectorLC4500::displayWhite(){
|
|
|
45 |
|
|
|
46 |
}
|
|
|
47 |
|
|
|
48 |
void ProjectorLC4500::getScreenRes(unsigned int *nx, unsigned int *ny){
|
|
|
49 |
*nx = 912;
|
|
|
50 |
*ny = 1140;
|
|
|
51 |
}
|
|
|
52 |
|
|
|
53 |
ProjectorLC4500::~ProjectorLC4500(){
|
|
|
54 |
|
|
|
55 |
}
|
|
|
56 |
|