Subversion Repositories HomeAutomation

Rev

Rev 1802 | Rev 1805 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1802 Rev 1803
Line 90... Line 90...
90
    }
90
    }
91
}
91
}
92
 
92
 
93
uint8_t dotmatrixGetData(void){
93
uint8_t dotmatrixGetData(void){
94
    uint8_t input = 0;
94
    uint8_t input = 0;
-
 
95
    /* Which ledmodule */
-
 
96
    uint8_t module = GrLcdState.lcdXAddr%8;
-
 
97
    /* Which column in ledmodule */
-
 
98
    uint8_t column = GrLcdState.lcdXAddr>>3;
95
/* FIXME */
99
    /* Which row */
-
 
100
    uint8_t row = GrLcdState.lcdYAddr;
-
 
101
   
-
 
102
    /* Repeat for each row */
-
 
103
    for (uint8_t i=0; i<8; i++)
-
 
104
    {
-
 
105
        /* Check panel size */
-
 
106
        if ((row+i < dotmatrixSIZEY) && (module < dotmatrixSIZEX/8))
-
 
107
        {
-
 
108
            /* Shift column and the into returndata */
-
 
109
            input |= ((dotmatrixFramebuf[row+i][module]>>column)&0x1) << i;
-
 
110
        }
-
 
111
    }
-
 
112
 
96
    return input;
113
    return input;
97
}
114
}
98
 
115
 
99
void dotmatrixWriteData(uint8_t data, uint8_t color){
116
void dotmatrixWriteData(uint8_t data, uint8_t color){
100
    if (color == GLCD_COLOR_CLEAR)
117
    if (color == GLCD_COLOR_CLEAR)