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 Simulator and Pin definitions #251

Merged
merged 12 commits into from
Nov 8, 2023
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
1 change: 0 additions & 1 deletion .pxt/storage/auth-opera/user-state

This file was deleted.

20 changes: 10 additions & 10 deletions docs/static/Calliope_mini_v1.0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 10 additions & 10 deletions docs/static/calliope_mini_front_V03_1110_1120_pins.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion libs/audio-recording/pxt.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "audio-recording",
"description": "Record sound clips. micro:bit (V2) only",
"description": "Record sound clips. Calliope mini 3 only.",
"dependencies": {
"core": "file:../core",
"core-mini-codal": "file:../core-mini-codal"
Expand Down
11 changes: 10 additions & 1 deletion libs/core-mini-codal/_locales/Untitled-jsdoc-strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@
"SoundExpression": "A sound expression.",
"SoundExpression.play": "Starts to play a sound expression.",
"SoundExpression.playUntilDone": "Plays a sound expression until finished",
"TouchButtonEvent": "An action on a touch button",
"basic": "Provides access to basic micro:bit functionality.\n\nProvides access to basic micro:bit functionality.\n\nProvides access to basic calliope mini functionality.\n\nProvides access to basic calliope mini functionality.",
"basic.setLedColors": "Sets the color on the built-in RGB LED. Set to 0 to turn off.",
"basic.setLedColors|param|brightness": "The LED brightness in percent.",
"basic.setLedColors|param|color1": "The color of the first LED in RGB format (e.g., 0xFF0000 for red).",
"basic.setLedColors|param|color2": "The second LED color.",
"basic.setLedColors|param|color3": "The third LED color.",
"input": "Events and data from sensors",
"input.logoIsPressed": "Get the logo state (pressed or not).",
"input.onLogoEvent": "Do something when the logo is touched and released again.",
"input.onLogoEvent|param|body": "the code to run when the logo is pressed",
"motors": "Blocks to control the onboard motors",
"motors.brakeMotor": "Controls one or two motors attached to the board.",
"motors.dualMotorPower": "Controls two motors attached to the board.",
Expand Down Expand Up @@ -52,5 +57,9 @@
"music.tonePlayable": "Plays a tone through pin ``P0`` for the given duration.",
"music.tonePlayable|param|duration": "tone duration in milliseconds (ms)",
"music.tonePlayable|param|note": "pitch of the tone to play in Hertz (Hz).",
"music.volume": "Returns the current output volume of the sound synthesizer."
"music.volume": "Returns the current output volume of the sound synthesizer.",
"pins": "Control currents in Pins for analog/digital signals, servos, i2c, ...",
"pins.touchSetMode": "Configure the touch detection for the pins and logo.\nP0, P1, P2 use resistive touch by default.\nThe logo uses capacitative touch by default.",
"pins.touchSetMode|param|mode": "the touch mode to use",
"pins.touchSetMode|param|name": "target to change the touch mode for"
}
20 changes: 20 additions & 0 deletions libs/core-mini-codal/_locales/Untitled-strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,27 @@
"SoundExpressionEffect.Warble|block": "warble",
"SoundExpressionPlayMode.InBackground|block": "in background",
"SoundExpressionPlayMode.UntilDone|block": "until done",
"TouchButtonEvent.LongPressed|block": "long pressed",
"TouchButtonEvent.Pressed|block": "pressed",
"TouchButtonEvent.Released|block": "released",
"TouchButtonEvent.Touched|block": "touched",
"TouchTarget.LOGO|block": "logo",
"TouchTarget.P0|block": "P0",
"TouchTarget.P1|block": "P1",
"TouchTarget.P2|block": "P2",
"TouchTarget.P3|block": "P3",
"TouchTargetMode.Capacitive|block": "capacitive",
"TouchTargetMode.Resistive|block": "resistive",
"WaveShape.Noise|block": "noise",
"WaveShape.Sawtooth|block": "sawtooth",
"WaveShape.Sine|block": "sine",
"WaveShape.Square|block": "square",
"WaveShape.Triangle|block": "triangle",
"basic.setLedColors|block": "set LED to %color1=colorNumberPicker %color2=colorNumberPicker %color3=colorNumberPicker",
"basic|block": "basic",
"input.logoIsPressed|block": "logo is pressed",
"input.onLogoEvent|block": "on logo $action",
"input|block": "input",
"motors.brakeMotor|block": "motor %motor break",
"motors.dualMotorPower|block": "motor %motor|at %percent \\%",
"motors.motorCommand|block": "motor %command",
Expand All @@ -41,6 +55,8 @@
"music.tonePlayable|block": "tone $note for $duration",
"music.volume|block": "volume",
"music|block": "music",
"pins.touchSetMode|block": "set %name to touch mode %mode",
"pins|block": "pins",
"soundExpression.giggle|block": "{id:soundexpression}giggle",
"soundExpression.happy|block": "{id:soundexpression}happy",
"soundExpression.hello|block": "{id:soundexpression}hello",
Expand All @@ -52,13 +68,17 @@
"soundExpression.twinkle|block": "{id:soundexpression}twinkle",
"soundExpression.yawn|block": "{id:soundexpression}yawn",
"{id:category}Basic": "Basic",
"{id:category}Input": "Input",
"{id:category}Motors": "Motors",
"{id:category}Music": "Music",
"{id:category}Pins": "Pins",
"{id:category}SoundExpression": "SoundExpression",
"{id:group}Logo": "Logo",
"{id:group}Melody": "Melody",
"{id:group}Melody Advanced": "Melody Advanced",
"{id:group}RGB LED": "RGB LED",
"{id:group}State": "State",
"{id:group}Tone": "Tone",
"{id:group}Touch": "Touch",
"{id:group}Volume": "Volume"
}
Loading
Loading