Skip to content

Commit 7cef098

Browse files
committed
Bug in Button Press
MakeCode Editor had an update that broke P0 (up button) in the extension. I'm not sure why the button press was working before and now it isn't? The other buttons work so I assume that it is just the `<number>`. I checked other syntax that uses `DAL.MICROBIT_ID_IO_P0` and it seems this might be the issue. I also bumped up the version number and updated the note in the README.md.
1 parent 9d11fc6 commit 7cef098

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
![SparkFun Gamer:bit](https://raw.githubusercontent.com/sparkfun/pxt-gamer-bit/master/icon.png)
44

5-
The package adds support for the **gamer:bit** add-on board from SparkFun.
5+
The package adds support for the controller:bit and **gamer:bit** add-on board from SparkFun.
66

77
To use this package, go to https://makecode.microbit.org, click ``Add package`` and search for **gamerbit**.
88

gamerbit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//%
55
enum GamerBitPin {
66
//% block="P0 (D-PAD up)"
7-
P0 = <number>DAL.MICROBIT_ID_IO_P0,
7+
P0 = DAL.MICROBIT_ID_IO_P0,
88
//% block="P1 (D-PAD left)"
99
P1 = DAL.MICROBIT_ID_IO_P1,
1010
//% block="P2 (D-PAD right)"

pxt.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gamerbit",
3-
"version": "0.0.7",
3+
"version": "0.0.8",
44
"description": "Sparkfun gamer:bit blocks",
55
"license": "MIT",
66
"dependencies": {

0 commit comments

Comments
 (0)