dude are colors even real

This commit is contained in:
jazz committed 2025-09-22 15:45:12 -05:00
1 parent a64dd0b1e5
commit 9e2e9f7773
211 files changed
+181603 -314

No files matched your search

+2 -3
View File
@@ -61,14 +61,13 @@ trafflight(int traffSPD, int walkSPD)
switch (trafflight_index) {
case 0:
HAL_GPIO_WritePin(R_Prt, R_Pin, GPIO_PIN_SET);
HAL_GPIO_WritePin(G_Prt, G_Pin, GPIO_PIN_SET);
break;
case 1:
HAL_GPIO_WritePin(Y_Prt, Y_Pin, GPIO_PIN_SET);
break;
case 2:
HAL_GPIO_WritePin(G_Prt, G_Pin, GPIO_PIN_SET);
break;
HAL_GPIO_WritePin(R_Prt, R_Pin, GPIO_PIN_SET);
}
trafflight_index = (trafflight_index + 1) % 3;