Final edits and image sizing for csintro.
This commit is contained in:
@ -148,7 +148,26 @@ Remember, MakeCode automatically compiles and runs your program, so all you need
|
||||
* Feel free to play around with turning LEDs on or off in the ‘show leds’ blocks until you get the images you want.
|
||||
* Remember to save your code.
|
||||
|
||||
>
|
||||
```sim
|
||||
basic.forever(() => {
|
||||
basic.showLeds(`
|
||||
. . . . .
|
||||
. # . # .
|
||||
. . . . .
|
||||
# . . . #
|
||||
. # # # .
|
||||
`)
|
||||
basic.pause(800)
|
||||
basic.showLeds(`
|
||||
. . . . .
|
||||
. # . # .
|
||||
. . . . .
|
||||
. # # # .
|
||||
# . . . #
|
||||
`)
|
||||
basic.pause(800)
|
||||
})
|
||||
```
|
||||
|
||||
## Commenting your code
|
||||
It is good practice to add comments to your code. Comments can be useful in a number of ways. Comments can help you remember what a certain block of code does and/or why you chose to program something the way you did. Comments also help others reading your code to understand these same things.
|
||||
|
@ -1,12 +1,14 @@
|
||||
# Project: Fidget Cube
|
||||
|
||||

|
||||
|
||||
A fidget cube is a little cube with something different that you can manipulate on each surface. There are buttons, switches, and dials, and people who like to “fidget” find it relaxing to push, pull, press, and play with it. In this project, students are challenged to turn the micro:bit into their very own “fidget cube”.
|
||||
|
||||
Show students some examples of fidget cubes:
|
||||
* Original Kickstarter Fidget Cube - https://www.kickstarter.com/projects/antsylabs/fidget-cube-a-vinyl-desk-toy (there is a funny video showing the fidget cube in action).
|
||||
* Original Kickstarter Fidget Cube - [Fidget Cube: A Vinyl Desk Toy](https://www.kickstarter.com/projects/antsylabs/fidget-cube-a-vinyl-desk-toy) (there is a funny video showing the fidget cube in action).
|
||||
|
||||
## Discussion questions
|
||||
|
||||
* Do any of your students fidget?
|
||||
* What kinds of things do they fidget with? Spinning pens, fidget spinners, rings, coins?
|
||||
* There are many different versions of fidget cubes available now. Do any students have any?
|
||||
@ -18,6 +20,7 @@ Show students some examples of fidget cubes:
|
||||
Remind students that a computing device has a number of inputs, and a number of outputs. The code that we write processes input by telling the micro:bit what to do when various events occur.
|
||||
|
||||
## Project
|
||||
|
||||
Make a fidget cube out of the micro:bit, create a unique output for each of the following inputs:
|
||||
* on button A pressed
|
||||
* on button B pressed
|
||||
@ -29,7 +32,7 @@ See if you can combine a maker element similar to what you created in Lesson 1 b
|
||||

|
||||
Sample fidget cube designs
|
||||
|
||||
## Project Mod
|
||||
## Project mod
|
||||
* Add more inputs and more outputs - use more than 4 different types of input. Try to use other types of output (other than LEDs) such as sound!
|
||||
|
||||
## Assessment
|
||||
|
Reference in New Issue
Block a user