disable time and button debug display

This commit is contained in:
Andy Killorin 2025-03-27 12:41:53 -04:00
parent 6bfbf2366b
commit 852f78b4fe
Signed by: ank
GPG key ID: 23F9463ECB67FE8C

5
main.c
View file

@ -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
} }