switch (n) { case 1:
printf("Draw points setting bits");
cfag12864b_clear(); for (i = 0; i < CFAG12864B_WIDTH; i += 2) for (j = 0; j < CFAG12864B_HEIGHT; j += 2)
cfag12864b_set(i, j); break;
case 2:
printf("Clear the LCD");
cfag12864b_clear(); break;
case 3:
printf("Draw rows formatting a [128*64] matrix");
memset(matrix, 0, CFAG12864B_WIDTH * CFAG12864B_HEIGHT); for (i = 0; i < CFAG12864B_WIDTH; i++) for (j = 0; j < CFAG12864B_HEIGHT; j += 2)
matrix[j * CFAG12864B_WIDTH + i] = 1;
cfag12864b_format(matrix); break;
case 4:
printf("Fill the lcd");
cfag12864b_fill(); break;
case 5:
printf("Draw columns unsetting bits"); for (i = 0; i < CFAG12864B_WIDTH; i += 2) for (j = 0; j < CFAG12864B_HEIGHT; j++)
cfag12864b_unset(i, j); break;
case 6:
printf("Do negative not-ing all bits"); for (i = 0; i < CFAG12864B_WIDTH; i++) for (j = 0; j < CFAG12864B_HEIGHT; j ++)
cfag12864b_not(i, j); break;
}
puts(" - [Press Enter]");
}
int main(int argc, char *argv[])
{ unsignedchar n;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.