From ff79e901bcfa571f57fb666eb77ff0350141b4b9 Mon Sep 17 00:00:00 2001 From: Alan Wang Date: Tue, 8 Nov 2022 11:23:37 +0800 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e46d9f0..7035b96 100644 --- a/README.md +++ b/README.md @@ -251,7 +251,7 @@ Define dice images in a dictionary, and retrieve one using a random number when from microbit import display, Image, accelerometer, sleep from random import randint -dices = { # dictionary of 5x5 dice images +dice = { # dictionary of 5x5 dice images 1: '00000:00000:00900:00000:00000', 2: '90000:00000:00000:00000:00009', 3: '90000:00000:00900:00000:00009', @@ -262,7 +262,7 @@ dices = { # dictionary of 5x5 dice images while True: if accelerometer.was_gesture('shake'): # if user has shaked micro:bit - display.show(Image(dices[randint(1, 6)])) # get a image in random + display.show(Image(dice[randint(1, 6)])) # get a image in random ``` ## Fill LED Display