Cheatography
https://cheatography.com
Tutorial how to set up Arduino IDE to code Micro:bit
Additional Board Manager URL
Open ToolsOpen Tools>Board>Boards Manager from the menu bar, search for nRF5 and install “Nordic Semiconductor nRF5 Boards” by Sandeep Mistry |
Wait.Wait for the installation. It will take a while. |
Select Micro:bitSelect BBC micro:bit from the Boards menu. | Set SoftDevice to S110. | And set the Port to the Micro:bit COM port. |
| | Start Arduino IDEStart your Arduino IDE, then click on Preferences. | Add the URL into the Additional Board Manager URL text box | |
Test codeconst int buttonA = 5;
const int buttonB = 11;
void setup()
{
Serial.begin(9600);
pinMode(buttonA, INPUT);
pinMode(buttonB, INPUT);
}
void loop()
{
if (! digitalRead(buttonA))
{
Serial.println("Button A pressed");
}
if (! digitalRead(buttonB))
{
Serial.println("Button B pressed");
}
delay(150);
}
|
|
Help Us Go Positive!
We offset our carbon usage with Ecologi. Click the link below to help us!
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by Plugga