Skip to content
This repository has been archived by the owner on Jun 26, 2022. It is now read-only.
/ Sunmachine-A2-fw Public archive

Firmware for the Sunmachine-A2-pcb board.

License

Notifications You must be signed in to change notification settings

gblach/Sunmachine-A2-fw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sunmachine-A2-fw

The firmware for the Sunmachine-A2-pcb board. It allows to control WS2812, SK6812 or similar LED strips via Bluetooth LE. It supports both RGB and WWA LEDs. Boards with this firmware can be controlled using the Sunmachine-app mobile app.

Installing pre-built firmware

Pre-built firmware is saved in Sunmachine-A2-fw.hex file.

The firmware can be uploaded using the nRF Connect for Desktop or nRF Command Line Tools. Depends on whether you want to use GUI program or the command line.

You also need an appropriate programmer, the standalone Segger J-Link or the on-board Segger J-Link (this can be found for e.g. on nrf52840dk board). This programmer must be connected to Tag-Connect 2050 connector on the board and to your PC.

Building from source code

Instead of using pre-built firmware, you can build it from source. To do this, you must have the Zephyr development environment installed. Follow these instructions to install it on your system.

To build the firmware, run the following command. "./Sunmachine-A2-fw" is a path to the source code directory.

west build -b sma2 ./Sunmachine-A2-fw

And then, to upload the firmware to the board, you need an appropriate programmer. When connected, run the following command:

west flash