-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sample: add sample firmware template
- Loading branch information
Showing
3 changed files
with
35 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Зразок прошивки для Лілки | ||
========================= | ||
|
||
Це - мінімальний зразок програми, яку ви можете використати як шаблон для створення власної прошивки для Лілки. | ||
|
||
Вона використовує PlatformIO. | ||
|
||
Інструкцію з прошивання Лілки з використанням Visual Studio та PlatformIO можна прочитати [ось тут](https://lilka.readthedocs.io/uk/latest/manual/environment.html). | ||
|
||
Крім того, цю прошивку можна зібрати та записати в Лілку за допомогою консолі: | ||
|
||
```sh | ||
pio run -t 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,11 @@ | ||
; Це - конфігураційний файл PlatformIO. Він використовується для налаштування проекту та його залежностей. | ||
; Докладніше про конфігурацію PlatformIO можна прочитати тут: https://docs.platformio.org/en/latest/projectconf/index.html | ||
|
||
[env:default] | ||
; Підтримка Лілки v2 ще не включена в офіційний реліз, тому поки що використовуємо коміт, який містить необхідні зміни | ||
; platform = espressif32 | ||
platform = https://github.com/platformio/platform-espressif32.git#9b0c95d4a737683370a8e3e1cd5ffd07590ccb28 | ||
board = lilka_v2 | ||
framework = arduino | ||
lib_deps = | ||
lilka |
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,10 @@ | ||
#include <lilka.h> | ||
|
||
void setup() { | ||
lilka::begin(); | ||
} | ||
|
||
void loop() { | ||
lilka::ui_alert("Привіт!", "Це - тестове повідомлення."); | ||
lilka::ui_alert("Привіт!", "А це - ще одне тестове повідомлення."); | ||
} |