-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from openspaceaarhus/flipmos_instruction
Flipmos instruction
- Loading branch information
Showing
4 changed files
with
74 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
cmake_minimum_required(VERSION 3.16) | ||
|
||
project(FlipDots) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Getting started # | ||
|
||
Get prerequisites: CMake, Make etc | ||
|
||
and arduino-cli | ||
on ubuntu this can be installed with: | ||
|
||
sudo snap install arduino-cli | ||
|
||
## Configure the build ## | ||
The SSID / Password is set as variables in CMakeLists.txt | ||
|
||
The WEMOS_PORT is where the wemos is connected | ||
|
||
You can change them by editing your local copy, giving them as parameters for cmake. | ||
|
||
|
||
## Setup a build ## | ||
We need to create the Makefiles and insert values into the `Config.h` header | ||
``` | ||
cd ~/flipdot/flimos | ||
cmake -B build -DSSID=osaa-iot -DPASSWORD=hunter2 -DWEMOS_PORT="/dev/usb0" | ||
``` | ||
|
||
## Prepare the wemos environment ## | ||
Install all the wemos libraries we need | ||
|
||
``` | ||
make -C build flipmos_init | ||
``` | ||
|
||
## Build the flipmos binary ## | ||
This steps compiles | ||
``` | ||
make -C build flipmos | ||
``` | ||
## deploy the flipmos binary ## | ||
This will upload to `WEMOS_PORT` | ||
|
||
``` | ||
make -C build flipmos_upload | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
board_manager: | ||
additional_urls: | ||
- https://arduino.esp8266.com/stable/package_esp8266com_index.json |