Adafruit ItsyBitsy-nRF52840

The Adafruit ItsyBitsy-nRF52840 is a small ARM development board based on the Nordic Semiconductor nrf52840 processor.

Interfaces

Interface Hardware Supported TinyGo Support
GPIO YES YES
UART YES YES
SPI YES YES
I2C YES YES
ADC YES YES
PWM YES YES
Bluetooth YES YES

Machine Package Docs

Documentation for the machine package for the ItsyBitsy-nRF52840

Flashing

UF2

The ItsyBitsy-nRF52840 comes with the UF2 bootloader already installed.

CLI Flashing on Linux

  • Plug your ItsyBitsy-nRF52840 into your computer’s USB port.
  • Flash your TinyGo program to the board using this command:

    tinygo flash -target=itsybitsy-nrf52840 [PATH TO YOUR PROGRAM]
    
  • The ItsyBitsy-nRF52840 board should restart and then begin running your program.

CLI Flashing on macOS

  • Plug your ItsyBitsy-nRF52840 into your computer’s USB port.
  • Flash your TinyGo program to the board using this command:

    tinygo flash -target=itsybitsy-nrf52840 [PATH TO YOUR PROGRAM]
    
  • The ItsyBitsy-nRF52840 board should restart and then begin running your program.

CLI Flashing on Windows

  • Plug your ItsyBitsy-nRF52840 into your computer’s USB port.
  • Flash your TinyGo program to the board using this command:

    tinygo flash -target=itsybitsy-nrf52840 [PATH TO YOUR PROGRAM]
    
  • The ItsyBitsy-nRF52840 board should restart and then begin running your program.

Troubleshooting

If you have troubles getting your ItsyBitsy-nRF52840 board to receive code, try this:

  • Press the “RESET” button on the board two times to get the ItsyBitsy-nRF52840 board ready to receive code.
  • The ItsyBitsy-nRF52840 board will appear to your computer like a USB drive.
  • Now try running the command:

    tinygo flash -target=itsybitsy-nrf52840 [PATH TO YOUR PROGRAM]
    

Once you have updated your ItsyBitsy-nRF52840 board the first time, after that you should be able to flash it entirely from the command line.

Notes

You can use the USB port to the ItsyBitsy-nRF52840 as a serial port. UART0 refers to this connection.

For an example that uses the built-in Neopixel LEDs, take a look at the TinyGo drivers repository located at https://github.com/tinygo-org/drivers/tree/release/examples

Bluetooth support is now available for the ItsyBitsy-nRF52840 board. See https://github.com/tinygo-org/bluetooth for more information.