Main Site Documentation

BrainPad status update


#1

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.


#2

Wonderful news.


#3

I try this:

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


#4

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.


#5

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)
})

#6

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)
})

#7

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


#8

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


#9

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


#10

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


#11

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


#12

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?


#13

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.


#14

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 !


#15

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:


#16

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


#17

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


#18

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


#19

That’s what I discover this day !

Ok, it explains situation.


#20

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