| @Composable | |
| fun LedMatrixDisplay( | |
| number: Int = 0 | |
| ) { | |
| val character = when(number){ | |
| 0 -> number00 | |
| else -> number00 | |
| } | |
| Column { | |
| repeat(7) { row -> | |
| Row { | |
| repeat(5) { column -> | |
| Box( | |
| modifier = Modifier | |
| .padding(1.dp) | |
| .width(10.dp) | |
| .height(10.dp) | |
| .background( | |
| color = if( character[row][column] == 1 ) Color.Red else Color.LightGray | |
| ) | |
| ) | |
| } | |
| } | |
| } | |
| } | |
| } |