Skip to content

Commit 1cda378

Browse files
committed
init
0 parents  commit 1cda378

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+1154
-0
lines changed

.cargo/config.toml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[build]
2+
# Uncomment the relevant target for your chip here (ESP32, ESP32-S2, ESP32-S3 or ESP32-C3)
3+
target = "xtensa-esp32-espidf"
4+
#target = "xtensa-esp32s2-espidf"
5+
#target = "xtensa-esp32s3-espidf"
6+
#target = "riscv32imc-esp-espidf"
7+
#rustflags = ["--cfg", "espidf_time64"] # Extending time_t for esp-idf v5: https://github.com/esp-rs/rust/issues/110
8+
[target.xtensa-esp32-espidf]
9+
linker = "ldproxy"
10+
runner = "espflash --monitor"
11+
12+
[target.xtensa-esp32s2-espidf]
13+
linker = "ldproxy"
14+
runner = "espflash --monitor"
15+
16+
[target.xtensa-esp32s3-espidf]
17+
linker = "ldproxy"
18+
runner = "espflash --monitor"
19+
20+
[target.riscv32imc-esp-espidf]
21+
linker = "ldproxy"
22+
runner = "espflash --monitor"
23+
24+
# Future - necessary for the experimental "native build" of esp-idf-sys with ESP32C3
25+
# See also https://github.com/ivmarkov/embuild/issues/16
26+
rustflags = ["-C", "default-linker-libraries"]
27+
28+
[unstable]
29+
30+
build-std = ["std", "panic_abort"]
31+
#build-std-features = ["panic_immediate_abort"] # Required for older ESP-IDF versions without a realpath implementation
32+
33+
[env]
34+
# Note: these variables are not used when using pio builder
35+
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF stable (v4.4)
36+
ESP_IDF_VERSION = { value = "branch:release/v4.4" }
37+
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF master (mainline)
38+
#ESP_IDF_VERSION = { value = "master" }
39+
[package.metadata.esp-idf-sys]
40+
esp_idf_tools_install_dir = "global"

.editorconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 4
7+
indent_style = space
8+
insert_final_newline = true
9+
max_line_length = 120
10+
tab_width = 4
11+
12+
[*.go]
13+
indent_style = tab
14+
15+
[{*.bash, *.sh, *.zsh}]
16+
indent_size = 2
17+
tab_width = 2
18+
19+
[{*.yaml, *.yml}]
20+
indent_size = 2

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/.vscode
2+
/.embuild
3+
/target
4+
/Cargo.lock
5+
.idea/

Cargo.toml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
[package]
2+
name = "tamagotchi"
3+
version = "0.1.0"
4+
authors = ["Dmitry Makarenko <[email protected]>"]
5+
edition = "2021"
6+
resolver = "2"
7+
8+
[profile.release]
9+
opt-level = "s"
10+
11+
[profile.dev]
12+
debug = true # Symbols are nice and they don't increase the size on Flash
13+
opt-level = "z"
14+
15+
[features]
16+
pio = ["esp-idf-sys/pio"]
17+
18+
[dependencies]
19+
esp-idf-sys = { version = "0.31.11", features = ["binstart"] }
20+
esp-idf-hal = { version = "0.39.3" }
21+
dummy-pin = "0.1.1"
22+
embedded-graphics = "0.7.1"
23+
embedded-hal = "1.0.0-alpha.9"
24+
#epd-waveshare = {git = "https://github.com/caemor/epd-waveshare", branch="main"}
25+
epd-waveshare = { path = "../epd-waveshare" }
26+
display-interface-spi = { version = "0.4.1" }
27+
png = "0.17.7"
28+
#ssd1681 ="0.1.0"
29+
ieee80211 = { git = "https://github.com/SpiralP/rust-ieee80211", branch = "master" }
30+
bincode = "2.0.0-rc.2"
31+
[build-dependencies]
32+
embuild = "0.30"
33+
anyhow = "1"
34+
35+
[package.metadata.esp-idf-sys]
36+
esp_idf_tools_install_dir = "global"

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
lint: ## Run lint
2+
cargo clippy --all-targets -- -D warnings -A clippy::extra_unused_lifetimes
3+
# Absolutely awesome: http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
4+
help:
5+
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
6+
7+
.DEFAULT_GOAL := help

README.md

Lines changed: 2 additions & 0 deletions

build.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Necessary because of this issue: https://github.com/rust-lang/cargo/issues/9641
2+
fn main() -> anyhow::Result<()> {
3+
embuild::build::CfgArgs::output_propagated("ESP_IDF")?;
4+
embuild::build::LinkArgs::output_propagated("ESP_IDF")
5+
}

data/img/angry.png

1.08 KB

data/img/angry.raw

1.95 KB
Binary file not shown.

data/img/awake.png

1.82 KB

data/img/awake.raw

1.95 KB
Binary file not shown.

data/img/bored.png

1.06 KB

data/img/bored.raw

1.95 KB
Binary file not shown.

data/img/broken.png

1.93 KB

data/img/broken.raw

1.95 KB
Binary file not shown.

data/img/cool.png

1.08 KB

data/img/cool.raw

1.95 KB
Binary file not shown.

data/img/debug.png

1.64 KB

data/img/debug.raw

1.95 KB
Binary file not shown.

data/img/demotivated.png

1.22 KB

data/img/demotivated.raw

1.95 KB
Binary file not shown.

data/img/excited.png

1.55 KB

data/img/excited.raw

1.95 KB
Binary file not shown.

data/img/friend.png

1.82 KB

data/img/friend.raw

1.95 KB
Binary file not shown.

data/img/grateful.png

1.62 KB

data/img/grateful.raw

1.95 KB
Binary file not shown.

data/img/happy.png

1.54 KB

data/img/happy.raw

1.95 KB
Binary file not shown.

data/img/intense.png

1.36 KB

data/img/intense.raw

1.95 KB
Binary file not shown.

data/img/lonely.png

1.39 KB

data/img/lonely.raw

1.95 KB
Binary file not shown.

data/img/look_l.png

1.81 KB

data/img/look_l.raw

1.95 KB
Binary file not shown.

data/img/look_l_happy.png

1.73 KB

data/img/look_l_happy.raw

1.95 KB
Binary file not shown.

data/img/look_r.png

1.73 KB

data/img/look_r.raw

1.95 KB
Binary file not shown.

data/img/look_r_happy.png

1.69 KB

data/img/look_r_happy.raw

1.95 KB
Binary file not shown.

data/img/motivated.png

2.02 KB

data/img/motivated.raw

1.95 KB
Binary file not shown.

data/img/sad.png

1.26 KB

data/img/sad.raw

1.95 KB
Binary file not shown.

data/img/sleep.png

1.4 KB

data/img/sleep.raw

1.95 KB
Binary file not shown.

data/img/sleep2.png

1.48 KB

data/img/sleep2.raw

1.95 KB
Binary file not shown.

data/img/smart.png

1.39 KB

data/img/smart.raw

1.95 KB
Binary file not shown.

data/img/upload.png

1.6 KB

data/img/upload.raw

1.95 KB
Binary file not shown.

data/img/upload_1.png

1.17 KB

data/img/upload_1.raw

1.95 KB
Binary file not shown.

data/img/upload_2.png

1.6 KB

data/img/upload_2.raw

1.95 KB
Binary file not shown.

export-esp.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export LIBCLANG_PATH="/Users/dmakarenko/.espressif/tools/xtensa-esp32-elf-clang/esp-15.0.0-20221014-aarch64-apple-darwin/esp-clang/lib/"
2+
export PATH="/Users/dmakarenko/.espressif/tools/xtensa-esp32-elf-gcc/8_4_0-esp-2021r2-patch3-aarch64-apple-darwin/bin/:/Users/dmakarenko/.espressif/tools/xtensa-esp32s2-elf-gcc/8_4_0-esp-2021r2-patch3-aarch64-apple-darwin/bin/:/Users/dmakarenko/.espressif/tools/xtensa-esp32s3-elf-gcc/8_4_0-esp-2021r2-patch3-aarch64-apple-darwin/bin/:$PATH"

0 commit comments

Comments
 (0)