BrainPad status update

The BrainPad now has 2 standard options to program, make code and visual studio. We call those “start making” and “go beyond”. Both are great options and each served a defined purpose.

The new website reflects the above http://www.brainpad.com

I know I know, when can we buy a BrainPad? We have made one final change to the reset circuitry. The production BrainPad now enters the loader mode by simply holding the reset button down for 3 seconds. This is being tested now and production starts right when or engineers give us the thumbs up.

4 Likes

Wonderful news.

1 Like

I try this:

But in emulator, I can’t see any red light. I’ve done a mistake ?

The best way to share would be to click on the javascript tab and then paste your code here.

We will test it out, thanks.

Good advice !

forever(function () {
    if (input.buttonU.wasPressed()) {
        lightbulb.setColor(0x00ff00)
        display.showString("Hello world", 1)
    } else {
        lightbulb.setColor(0xff0000)
        display.showString("Hello world", 3)
    }
    pause(1000)
})

In the code you have, it is checking if the button WAS pressed, and not IS pressed. They are currently two different blocks. The display currently still has an I2C issue, so you won’t see anything on the physical BrainPad screen yet.

forever(function () {
    if (input.buttonU.isPressed()) {
        lightbulb.setColor(0xff0000)
        display.showString("Hello world", 1)
    } else {
        lightbulb.setColor(0x00ff00)
        display.showString("Hello world", 3)
    }
    pause(100)
})
2 Likes

@Gus_Issa: Is it possible to use BP2 Rev A ?

1 Like

Subtile difference, and I don’t see it, thanks for tips !
But it doesn’t change anything on emulator: red color is never display.

1 Like

No. You will need to hold the left button down while resetting the board. See this http://docs.brainpad.com/resources/older-brainpad.html

2 Likes

I think I must wait for next firmware: virtual drive doesn’t appear.

Did you go through the troubleshooting guide? I am sure you have an old bootloader.

http://docs.brainpad.com/resources/troubleshooting-guide.html
http://docs.brainpad.com/resources/bootloader.html

2 Likes

Was is the semantics of “was pressed”? The software remembers that the button was pressed, even after released, and remains “was pressed” until it is was queried?

1 Like

Was pressed detects when the button is pressed one time. It returns true only once. You will need to release the button and repress it to get “true” again.

1 Like

You are right … as Always ! :wink:
As I have 2.0.4 bootloader, I was thinking it is newer than 1.0.2 brainpad bootloader.
Now → MakeCode !

2 Likes

Event with button are easy to use.
But I’ve found some bugs:

  • shake, face up, … functions doesn’t work and made program to crash ?
  • display doesn’t work too. Perhaps some I2C or SPI bugs.

Downloading file to put on brainpad are very easy to use. And my daughter want to stole my Brainpad ! :smile:

2 Likes

Yep, that’s what I said. :grinning:

1 Like

There was a change recently that broke I2C, which in turn broke the display and accelerometer. We are fixing it still.

2 Likes

That was the GHI Electronics loader, that works with FEZ config for example. The BrainPad had it own loader, which works very differently.

2 Likes

That’s what I discover this day !

Ok, it explains situation.

1 Like

Now I am waiting for TinyClr firmware 0.11.0 for Brainpad… (I hope I2C will be fixed in it).

1 Like