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);
|
||||
for(j=0; j<LOCAL_BUF_LEN; j++) {
|
||||
#define TRANSPOSE(x) (HEIGHT/2) - (x >> 8)
|
||||
//GrPixelDraw(&sContext, j, TRANSPOSE(local_adc_buffer[j]));
|
||||
#define TRANSPOSE(x) (HEIGHT/2) - (x >> 6) // reduce from twelve to six bits, then flip and center
|
||||
uint32_t upper,lower, current, last;
|
||||
|
||||
if (j==0) {
|
||||
|
@ -141,6 +140,7 @@ int main(void) {
|
|||
GrLineDrawV(&sContext, j, lower, upper);
|
||||
}
|
||||
|
||||
#ifdef DISPLAY_TIME
|
||||
// display time
|
||||
time = gTime; // read shared global only once
|
||||
|
||||
|
@ -168,6 +168,7 @@ int main(void) {
|
|||
offset += 10;
|
||||
buttons >>= 1;
|
||||
}
|
||||
#endif // DISPLAY_TIME
|
||||
|
||||
GrFlush(&sContext); // flush the frame buffer to the LCD
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue