disable time and button debug display
This commit is contained in:
parent
6bfbf2366b
commit
852f78b4fe
1 changed files with 3 additions and 2 deletions
5
main.c
5
main.c
|
@ -117,8 +117,7 @@ int main(void) {
|
||||||
|
|
||||||
GrContextForegroundSet(&sContext, ClrPink);
|
GrContextForegroundSet(&sContext, ClrPink);
|
||||||
for(j=0; j<LOCAL_BUF_LEN; j++) {
|
for(j=0; j<LOCAL_BUF_LEN; j++) {
|
||||||
#define TRANSPOSE(x) (HEIGHT/2) - (x >> 8)
|
#define TRANSPOSE(x) (HEIGHT/2) - (x >> 6) // reduce from twelve to six bits, then flip and center
|
||||||
//GrPixelDraw(&sContext, j, TRANSPOSE(local_adc_buffer[j]));
|
|
||||||
uint32_t upper,lower, current, last;
|
uint32_t upper,lower, current, last;
|
||||||
|
|
||||||
if (j==0) {
|
if (j==0) {
|
||||||
|
@ -141,6 +140,7 @@ int main(void) {
|
||||||
GrLineDrawV(&sContext, j, lower, upper);
|
GrLineDrawV(&sContext, j, lower, upper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef DISPLAY_TIME
|
||||||
// display time
|
// display time
|
||||||
time = gTime; // read shared global only once
|
time = gTime; // read shared global only once
|
||||||
|
|
||||||
|
@ -168,6 +168,7 @@ int main(void) {
|
||||||
offset += 10;
|
offset += 10;
|
||||||
buttons >>= 1;
|
buttons >>= 1;
|
||||||
}
|
}
|
||||||
|
#endif // DISPLAY_TIME
|
||||||
|
|
||||||
GrFlush(&sContext); // flush the frame buffer to the LCD
|
GrFlush(&sContext); // flush the frame buffer to the LCD
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue