From 0b1650d9cbc23484c58afbc34b98df9d030fdb15 Mon Sep 17 00:00:00 2001 From: Sayanee Date: Fri, 12 Apr 2024 15:13:22 +0800 Subject: [PATCH] refactor: simplify putting content on start page with only Markdown --- _includes | 2 +- _layouts | 2 +- index.md | 69 -------------------------------------------------- start/step1.md | 7 +++++ start/step2.md | 19 ++++++++++++++ start/step3.md | 11 ++++++++ 6 files changed, 39 insertions(+), 71 deletions(-) create mode 100644 start/step1.md create mode 100644 start/step2.md create mode 100644 start/step3.md diff --git a/_includes b/_includes index ce392fa..b7dd69a 160000 --- a/_includes +++ b/_includes @@ -1 +1 @@ -Subproject commit ce392fa77a0ae885a5c5cc443eab2ed84f8298c6 +Subproject commit b7dd69aceb370c98afc2c0bcb9de02a2666c7801 diff --git a/_layouts b/_layouts index 13b758a..77ccf82 160000 --- a/_layouts +++ b/_layouts @@ -1 +1 @@ -Subproject commit 13b758a0dc710e05cb0604582ac506a06a68bc61 +Subproject commit 77ccf82f757681bb1c452ced6c54edfd71efedb1 diff --git a/index.md b/index.md index e9e0f89..9447885 100644 --- a/index.md +++ b/index.md @@ -24,72 +24,3 @@ features: - detail: Display the Haversine distance with the peer nodes - detail: Display the Haversine distance with a relative time ago when both nodes had a GPS fix --- -
-
-

Getting Started

-
-
-
-
-
-

Step 1

-

Assemble the components.

-

Screw in the E-Ink screen, the LoRa antenna and insert the 18650 battery at the back.

- - Final assembly - - - With the battery - -
-
-
-
-

Step 2

-

[Option A]: Install new board in Arduino IDE

-

Copy and paste the following URL into the File > Preferences > "Additional Boards Manager" textbox in Arduino IDE

- https://raw.githubusercontent.com/hutscape/arduino-board-index/main/package_hutscape_index.json - - Paste board URL - -

Restart Arduino IDE. Go to Tools > Boards Manager > Search for Hutscape or Oak

- - Install custom board - - - Installation of custom board is successful - -

[Option B]: Use Makefile

-

Run make to upload the sketch to the board.

- - Run the command make to upload the code to the board - - - Successfully uploaded the code to the board - -
-
-
- -
-
-
-
-
-
diff --git a/start/step1.md b/start/step1.md new file mode 100644 index 0000000..53d8a49 --- /dev/null +++ b/start/step1.md @@ -0,0 +1,7 @@ +## Assemble the components + +Screw in the E-Ink screen, the LoRa antenna and insert the 18650 battery at the back. + +[![Final assembly]({{site.url}}/images/prototype/front.jpg)]({{site.url}}/images/prototype/front.jpg) + +[![With the battery]({{site.url}}/images/prototype/back.jpg)]({{site.url}}/images/prototype/back.jpg) diff --git a/start/step2.md b/start/step2.md new file mode 100644 index 0000000..905689c --- /dev/null +++ b/start/step2.md @@ -0,0 +1,19 @@ +**[Option A]: Install new board in Arduino IDE** + +[Copy and paste the JSON URL](https://raw.githubusercontent.com/hutscape/arduino-board-index/main/package_hutscape_index.json) into the File > Preferences > "Additional Boards Manager" textbox in Arduino IDE + +[![Paste board URL]({{site.url}}/images/code/paste-board-url.png)]({{site.url}}/images/code/paste-board-url.png) + +Restart Arduino IDE. Go to Tools > Boards Manager > Search for Hutscape or Oak + +[![Install custom board]({{site.url}}/images/code/install-custom-board.png)]({{site.url}}/images/code/install-custom-board.png) + +[![Installation of custom board is successful]({{site.url}}/images/code/custom-board-installed.png)]({{site.url}}/images/code/custom-board-installed.png) + +**[Option B]: Use Makefile** + +Run `make` to upload the sketch to the board. + +[![Run the command make to upload the code to the board]({{site.url}}/images/code/make-to-install.png)]({{site.url}}/images/code/make-to-install.png) + +[![Successfully uploaded the code to the board]({{site.url}}/images/code/make-successful.png)]({{site.url}}/images/code/make-successful.png) diff --git a/start/step3.md b/start/step3.md new file mode 100644 index 0000000..4f7b865 --- /dev/null +++ b/start/step3.md @@ -0,0 +1,11 @@ +Try the [Blinky LED code]({{ site.url }}/code/hello-world) or other [code examples]({{ site.url }}/code). + +[![Typical setup]({{ site.url }}/images/code/eink-prototype.jpg)]({{ site.url }}/images/code/eink-prototype.jpg) + +**[Option A]: Use Arduino IDE** + +[![Use Arduino IDE to upload blinky firmware]({{ site.url }}/images/code/option-a-ide-blinky.png)]({{ site.url }}/images/code/option-a-ide-blinky.png) + +**[Option B]: Use Makefile** + +[![Use Makefile to upload the blinky firmware]({{ site.url }}/images/code/option-b-makefile-blinky.png)]({{ site.url }}/images/code/option-b-makefile-blinky.png)