Browse Source

formatting

subDesTagesMitExtraKaese 3 years ago
parent
commit
21e367df0f
1 changed files with 4 additions and 4 deletions
  1. 4 4
      software/Pong_Code/Display.h

+ 4 - 4
software/Pong_Code/Display.h

@@ -59,8 +59,8 @@ void bin(unsigned n)
 */
 void draw() {
 	int row,i,j;
-	for (i=0 ; i<ROWS ; i++) {
-		row = screen[i] | ((i+1)<<12); //send format: (4bits row indicator,12bits data)
+	for (i=0; i<ROWS; i++) {
+		row = screen[i] | ((i+1)<<12); //send format: (4bits row indicator, 12bits data)
 		IOWR_ALTERA_AVALON_PIO_DATA(PIO_MATRIX_BASE, row);
 	}
 }
@@ -71,7 +71,7 @@ void draw() {
 */
 void draw_console() {
 	int i;
-	for (i = 0 ; i < ROWS ; i++) {
+	for (i=0; i<ROWS; i++) {
 		bin(screen[i]);
 		printf("\n");
 	}
@@ -96,7 +96,7 @@ void set_pixel(int x, int y) {
 */
 void reset_screen() {
 	int i;
-	for (i=0;i<ROWS;i++) {
+	for (i=0; i<ROWS; i++) {
 		screen[i] = 0;
 	}