diff --git a/main.c b/main.c index 2b877bf..8da9f8d 100644 --- a/main.c +++ b/main.c @@ -117,8 +117,7 @@ int main(void) { GrContextForegroundSet(&sContext, ClrPink); for(j=0; j> 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 }