Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 2024 05 #284

Merged
merged 2 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/projects/rock-paper-scissors.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,10 @@ If you have a @boardname@ device, connect it to your computer and click the ``|D

## {Step 15}

Go further - Try adding 🎵 Music 🎵 blocks to your Rock Paper Scissors game for different sound effects. Note that some Music blocks may require a Calliope mini v2 device to play.
Go further - Try adding 🎵 Music 🎵 blocks to your Rock Paper Scissors game for different sound effects. Note that some Music blocks may require a Calliope mini 3 device to play.

```blocks

let hand = 0
input.onGesture(Gesture.Shake, function () {
hand = randint(1, 3)
Expand All @@ -217,6 +218,7 @@ input.onGesture(Gesture.Shake, function () {
music.play(music.createSoundExpression(WaveShape.Square, 1600, 1, 255, 0, 300, SoundExpressionEffect.None, InterpolationCurve.Curve), music.PlaybackMode.UntilDone)
}
})

```

```blockconfig.global
Expand Down
32 changes: 0 additions & 32 deletions libs/servo/targetoverrides.ts
Original file line number Diff line number Diff line change
@@ -1,38 +1,6 @@
namespace servos {
//% block="servo P0" fixedInstance whenUsed
export const P0 = new servos.PinServo(pins.P0);
//% block="servo P0" fixedInstance whenUsed
export const P1 = new servos.PinServo(pins.P1);
//% block="servo P2" fixedInstance whenUsed
export const P2 = new servos.PinServo(pins.P2);
//% block="servo P3" fixedInstance whenUsed
export const P3 = new servos.PinServo(pins.P3);
//% block="servo C4" fixedInstance whenUsed
export const C4 = new servos.PinServo(pins.C4);
//% block="servo C5" fixedInstance whenUsed
export const C5 = new servos.PinServo(pins.C5);
//% block="servo C6" fixedInstance whenUsed
export const C6 = new servos.PinServo(pins.C6);
//% block="servo C7" fixedInstance whenUsed
export const C7 = new servos.PinServo(pins.C7);
//% block="servo C8" fixedInstance whenUsed
export const C8 = new servos.PinServo(pins.C8);
//% block="servo C9" fixedInstance whenUsed
export const C9 = new servos.PinServo(pins.C9);
//% block="servo C10" fixedInstance whenUsed
export const C10 = new servos.PinServo(pins.C10);
//% block="servo C11" fixedInstance whenUsed
export const C11 = new servos.PinServo(pins.C11);
//% block="servo C12" fixedInstance whenUsed
export const C12 = new servos.PinServo(pins.C12);
//% block="servo C13" fixedInstance whenUsed
export const C13 = new servos.PinServo(pins.C13);
//% block="servo C14" fixedInstance whenUsed
export const C14 = new servos.PinServo(pins.C14);
//% block="servo C15" fixedInstance whenUsed
export const C15 = new servos.PinServo(pins.C15);
//% block="servo C16 (A1 RX)" fixedInstance whenUsed
export const C16 = new servos.PinServo(pins.C16);
//% block="servo C17 (A1 TX)" fixedInstance whenUsed
export const C17 = new servos.PinServo(pins.C17);
}
2 changes: 2 additions & 0 deletions targetconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@
"microsoft/pxt-microturtle",
"microsoft/pxt-neopixel",
"calliope-edu/pxt-faces",
"joernalraun/robot",
"calliope-net/i2c-liste",
"calliope-edu/pxt-storage",
"calliope-edu/warte-bis",
Expand Down Expand Up @@ -362,6 +363,7 @@
],
"preferred": true
},
"joernalraun/robot": {},
"51bit/sfc": {},
"51bit/smarttools": {},
"51bit/dfplayermini": {},
Expand Down
Loading