Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Navigate to the Firmware view and create a new firmware.

...

Now we add a Digital InButton, which will represent the hardware button. Search for the Digital In Button and name it Button. Open up the configuration of the Digital In Button by clicking the arrow at the end of the item.
Select the following values:

...

  • Driver: GPIO

  • Pin: GP1

  • Mode: Initially Low ( We want the LED to be initially off)

...

Save the firmware.

Power on the Builder Base and wait for it to be connected. From the Actions of the First Firmware select Upload and select the Builder Base you connected the button and led to. Click upload and wait for the process to finish.

...

Step 4 - Map hardware to app

You are almost there. There is just one last step, which involves you mapping hardware in the app to physical hardware connected to the Builder Base.

Navigate to the Apps view and attempt to start your application. Notice the two red triangles making you aware of unmapped hardware. Every item in that list represents hardware objects in your application. You are not forced to map these hardware objects, they will simply do nothing in the app, when it is running.

...

Map the led and button to the corresponding hardware on your Builder Base.

...

Hit Save + Run and test your application.

You should be able to turn on the hardware led with the button on your breadboard as well as with the button in the dashboard. When you press the hardware button the color picker on the dashboard should turn white and your hardware led should turn on.