Josh Bam
/
CITY3032-Template
Template for working forward
Diff: main.cpp
- Revision:
- 5:a7f8c11020f7
- Parent:
- 4:d129442ea4dd
--- a/main.cpp Sun Oct 17 18:29:13 2021 +0000 +++ b/main.cpp Wed Oct 20 11:31:34 2021 +0000 @@ -38,12 +38,12 @@ printf("Starting Supercomputer\r\n"); GUI_SetFont(GUI_FONT_8X16X2X2); - GUI_SetColor(GUI_DARKGREEN); + GUI_SetColor(GUI_RED); uint8_t array[NUMLEDS_X][NUMLEDS_Y]; for (int j=0; j < NUMLEDS_Y; j++) { for (int i=0; i < NUMLEDS_X; i++) { array[i][j]=LED_OFF; - GUI_SetColor(GUI_DARKGREEN); + GUI_SetColor(GUI_RED); GUI_FillCircle(LED_RADIUS+(i)*LED_DIAMETER, TITLE_OFFSET+(j*LED_DIAMETER), LED_RADIUS); } } @@ -51,12 +51,12 @@ int ledx = rand()%NUMLEDS_X; int ledy = rand()%NUMLEDS_Y; if (array[ledx][ledy]==LED_OFF) { - GUI_SetColor(GUI_GREEN); + GUI_SetColor(GUI_BLUE); GUI_FillCircle(LED_RADIUS+(ledx)*LED_DIAMETER, TITLE_OFFSET+LED_DIAMETER*(ledy), LED_RADIUS); array[ledx][ledy] = LED_ON; } else { - GUI_SetColor(GUI_DARKGREEN); + GUI_SetColor(GUI_RED); GUI_FillCircle(LED_RADIUS+(ledx)*LED_DIAMETER, TITLE_OFFSET+LED_DIAMETER*(ledy), LED_RADIUS); // GUI_FillCircle(8+(ledx)*16, 24+16*(ledy), 8); array[ledx][ledy] = LED_OFF;