From 15088c6926e726a4b2611904e22398490d97dbf6 Mon Sep 17 00:00:00 2001 From: KaraBun Date: Tue, 20 Dec 2022 00:13:32 -0500 Subject: [PATCH] Fixed errors before even compiling D: --- Lanes.ino | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Lanes.ino b/Lanes.ino index 38ea4ad..e5eaac1 100644 --- a/Lanes.ino +++ b/Lanes.ino @@ -25,25 +25,25 @@ float ClockTick = 1/((Clock * PpQN)/60); long Lane1Pos, Lane2Pos, Lane3Pos, Lane1Time, Lane2Time, Lane3Time= 0; -int Lane1[4,16]; -int Lane2[4,16]; -int Lane3[4,16]; +int Lane1[4][16]; +int Lane2[4][16]; +int Lane3[4][16]; void setup() { //Open Serial for output prior to installing a screen Serial.begin( 115200 ); - randomSeed(analogread(A7)); + randomSeed(analogRead(A7)); //Clear the Lanes for(int i = 0; i < 16; i++){ - Lane1[0,i] = random(0, 96); - Lane1[1,i] = random(0, 255); - Lane1[2,i] = random(0, 2); - Lane1[3,i] = random(0,255); + Lane1[0][i] = random(0, 96); + Lane1[1][i] = random(0, 255); + Lane1[2][i] = random(0, 2); + Lane1[3][i] = random(0,255); for(int j = 0; j < 4; j++){ - Lane2[j,i] = Lane3[i,j] = 0; + Lane2[j][i] = Lane3[i][j] = 0; } } }