Skip to content

Commit

Permalink
Add nowait block file
Browse files Browse the repository at this point in the history
  • Loading branch information
memakura committed Aug 15, 2018
1 parent ba51a16 commit 5011ec3
Show file tree
Hide file tree
Showing 5 changed files with 459 additions and 15 deletions.
Binary file added 00scratch/dualmotor2.sb2
Binary file not shown.
File renamed without changes.
222 changes: 222 additions & 0 deletions 00scratch/s2microbit_EN_nowait.s2e
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
{
"extensionName": "s2microbit-ble",
"extensionPort": 50209,
"url": "https://github.com/memakura/s2microbit-ble",
"blockSpecs": [
[
" ",
"Display %m.images",
"display_image",
"HAPPY"
],
[
" ",
"Scroll %s",
"scroll",
"Hello!"
],
[
" ",
"Write Pixel X %n Y %n Intensity %m.val",
"write_pixel",
"0",
"0",
"1"
],
[
" ",
"Display pattern %n",
"display_pattern",
"11001 01111 01110 11110 10011"
],
[
" ",
"Clear Display",
"display_clear"
],
[
" ",
"Setup Pin %m.pins as %m.admodes %m.iomodes",
"setup_pin",
"0",
"Digital",
"Output"
],
[
" ",
"Digital Write Pin %m.pins Value %m.val",
"digital_write",
"0",
"0"
],
[
" ",
"Analog Write Pin %m.pins Value %n",
"analog_write",
"0",
"0"
],
[
"b",
"Button A pressed?",
"button_a_pressed"
],
[
"b",
"Button B pressed?",
"button_b_pressed"
],
[
"b",
"Tilted right?",
"tilted_right"
],
[
"b",
"Tilted left?",
"tilted_left"
],
[
"b",
"Tilted up?",
"tilted_up"
],
[
"b",
"Tilted down?",
"tilted_down"
],
[
"b",
"Shaken?",
"shaken"
],
[
"r",
"Digital Read Pin %m.pins",
"digital_read",
"0"
],
[
"r",
"Analog Read Pin %m.ain_pins",
"analog_read",
"0"
],
[
"r",
"Temperature",
"temperature"
],
[
"r",
"Magnetometer Bearing",
"magBearing"
],
[
"r",
"Magnetometer X",
"mag_x"
],
[
"r",
"Magnetometer Y",
"mag_y"
],
[
"r",
"Magnetometer Z",
"mag_z"
],
[
"r",
"Accelerometer X",
"acc_x"
],
[
"r",
"Accelerometer Y",
"acc_y"
],
[
"r",
"Accelerometer Z",
"acc_z"
]
],
"menus": {
"images": [
"HAPPY",
"SAD",
"ANGRY",
"SMILE",
"HEART",
"CONFUSED",
"ASLEEP",
"SURPRISED",
"SILLY",
"FABULOUS",
"MEH",
"YES",
"NO",
"TRIANGLE",
"DIAMOND",
"DIAMOND_SMALL",
"SQUARE",
"SQUARE_SMALL",
"TARGET",
"STICKFIGURE",
"RABBIT",
"COW",
"ROLLERSKATE",
"HOUSE",
"SNAKE",
"ARROW_N",
"ARROW_NE",
"ARROW_E",
"ARROW_SE",
"ARROW_S",
"ARROW_SW",
"ARROW_W",
"ARROW_NW",
"HEART_SMALL",
"TRIANGLE_LEFT",
"CHESSBOARD",
"PITCHFORK",
"XMAS",
"TSHIRT",
"SWORD",
"UMBRELLA",
"DUCK",
"TORTOISE",
"BUTTERFLY",
"GIRAFFE",
"SKULL",
"MUSIC_CROTCHET",
"MUSIC_QUAVER",
"MUSIC_QUAVERS",
"SCISSORS",
"PACMAN",
"GHOST"
],
"pins": [
"0", "1", "2",
"8", "13", "14", "15", "16"
],
"ain_pins": [
"0", "1", "2"
],
"val": [
"0",
"1"
],
"iomodes": [
"Input",
"Output"
],
"admodes": [
"Digital",
"Analog"
]
}
}
Loading

0 comments on commit 5011ec3

Please sign in to comment.