summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2021-12-16 21:24:37 +0200
committerYuval Adam <_@yuv.al>2021-12-16 21:24:37 +0200
commit02ec8cc85eee4b12bf71a7aa1c1a39943e764749 (patch)
treebdb5cd0df44e4a2ef2bed8305767550b660d4fa4
Initial files
-rw-r--r--HelloWorld/HelloWorld.ino19
-rw-r--r--README.md33
-rw-r--r--arduino-cli.yaml3
3 files changed, 55 insertions, 0 deletions
diff --git a/HelloWorld/HelloWorld.ino b/HelloWorld/HelloWorld.ino
new file mode 100644
index 0000000..89c7ff8
--- /dev/null
+++ b/HelloWorld/HelloWorld.ino
@@ -0,0 +1,19 @@
+#include"TFT_eSPI.h" //include TFT LCD library
+
+TFT_eSPI tft; //initialize TFT LCD
+
+void setup() {
+ tft.begin(); //start TFT LCD
+ tft.setRotation(3); //set screen rotation
+
+ tft.fillScreen(TFT_RED); //fill background
+
+ tft.setTextColor(TFT_BLACK); //set text color
+ tft.setTextSize(4); //set text size
+ tft.drawString("Hello world!",0,0); //draw text string
+
+}
+
+void loop() {
+
+}
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..a50c40b
--- /dev/null
+++ b/README.md
@@ -0,0 +1,33 @@
+# Wio Terminal OS
+
+## Prerequisites
+
+Install [`arduino-cli`](https://github.com/arduino/arduino-cli).
+
+## Setup
+
+Update the local indexes:
+
+```bash
+$ arduino-cli core update-index
+```
+
+Connect the Wio Terminal and ensure it shows up:
+
+```bash
+$ arduino-cli board list
+Port Protocol Type Board Name FQBN Core
+/dev/ttyACM0 serial Serial Port (USB) Seeeduino Wio Terminal Seeeduino:samd:seeed_wio_terminal Seeeduino:samd
+```
+
+Compile the sketch:
+
+```bash
+$ arduino-cli compile --fqbn Seeeduino:samd:seeed_wio_terminal HelloWorld
+```
+
+Upload it:
+
+```bash
+$ arduino-cli upload -p /dev/ttyACM0 --fqbn Seeeduino:samd:seeed_wio_terminal HelloWorld
+```
diff --git a/arduino-cli.yaml b/arduino-cli.yaml
new file mode 100644
index 0000000..48f7666
--- /dev/null
+++ b/arduino-cli.yaml
@@ -0,0 +1,3 @@
+board_manager:
+ additional_urls:
+ - https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json