setup everything for the vibe
This commit is contained in:
parent
4155200ec8
commit
6ea40b3134
9 changed files with 42 additions and 14 deletions
19
Containerfile
Normal file
19
Containerfile
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
FROM node:26-trixie
|
||||||
|
|
||||||
|
VOLUME /src
|
||||||
|
|
||||||
|
#RUN apt-get update \
|
||||||
|
# && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends curl ca-certificates \
|
||||||
|
# && rm -rf /var/cache/apt/archives /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN curl -fsSL https://pi.dev/install.sh | sh \
|
||||||
|
&& pi update \
|
||||||
|
&& pi update --extensions
|
||||||
|
|
||||||
|
RUN curl -fsSL https://nixos.org/nix/install | sh -s -- --daemon \
|
||||||
|
&& echo "max-jobs = auto" >> /etc/nix/nix.conf \
|
||||||
|
&& echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
|
||||||
|
|
||||||
|
WORKDIR /src
|
||||||
|
|
||||||
|
CMD ["pi"]
|
||||||
|
|
@ -7,11 +7,6 @@
|
||||||
- [Waveshare ESP32-S3](https://www.waveshare.com/esp32-s3-lcd-1.3.htm?sku=30558) ([docs](https://www.waveshare.com/wiki/ESP32-S3-LCD-1.3))
|
- [Waveshare ESP32-S3](https://www.waveshare.com/esp32-s3-lcd-1.3.htm?sku=30558) ([docs](https://www.waveshare.com/wiki/ESP32-S3-LCD-1.3))
|
||||||
- [W5500 Ethernet Module](https://www.az-delivery.de/en/products/w5500-ethernet-netzwerk-internet-modul-fuer-arduino)
|
- [W5500 Ethernet Module](https://www.az-delivery.de/en/products/w5500-ethernet-netzwerk-internet-modul-fuer-arduino)
|
||||||
|
|
||||||
### Integrated ethernet but w/o display
|
|
||||||
|
|
||||||
- [Olimex ESP32-POE](https://www.olimex.com/Products/IoT/ESP32/ESP32-POE/open-source-hardware)
|
|
||||||
- [Olimex ESP32-POE-ISO](https://www.olimex.com/Products/IoT/ESP32/ESP32-POE-ISO/open-source-hardware)
|
|
||||||
|
|
||||||
## Test procedure
|
## Test procedure
|
||||||
|
|
||||||
1. Check physical link
|
1. Check physical link
|
||||||
|
|
@ -70,3 +65,4 @@ Temperature: 42°C
|
||||||
2. Configure?
|
2. Configure?
|
||||||
3. Compile
|
3. Compile
|
||||||
4. Flash
|
4. Flash
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
BIN
datasheets/AZ252_C14-10_EN_B07CYVRMPL.pdf
Normal file
BIN
datasheets/AZ252_C14-10_EN_B07CYVRMPL.pdf
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
datasheets/W5500_ds_v110e.pdf
Normal file
BIN
datasheets/W5500_ds_v110e.pdf
Normal file
Binary file not shown.
|
|
@ -1,7 +1,7 @@
|
||||||
# GPIOs
|
# GPIOs
|
||||||
|
|
||||||
| ESP32-S3 | W5500 |
|
| ESP32-S3 | W5500 |
|
||||||
| ------- |-------|
|
| -------- | ----- |
|
||||||
| GPIO12 | SCLK |
|
| GPIO12 | SCLK |
|
||||||
| GPIO11 | MOSI |
|
| GPIO11 | MOSI |
|
||||||
| GPIO13 | MISO |
|
| GPIO13 | MISO |
|
||||||
|
|
@ -10,3 +10,4 @@
|
||||||
| GPIO14 | INT |
|
| GPIO14 | INT |
|
||||||
| 3V3 | 3V3 |
|
| 3V3 | 3V3 |
|
||||||
| GND | GND |
|
| GND | GND |
|
||||||
|
|
||||||
|
|
|
||||||
12
flake.nix
12
flake.nix
|
|
@ -59,6 +59,18 @@
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
apps = {
|
apps = {
|
||||||
|
run-agent = {
|
||||||
|
type = "app";
|
||||||
|
program = "${pkgs.writeShellScript "run-agent" ''
|
||||||
|
podman run -it --rm -v ./:/src -v ./models.json:/root/.pi/agent/models.json --device=/dev/ttyACM0 pidev:latest
|
||||||
|
''}";
|
||||||
|
};
|
||||||
|
build-agent = {
|
||||||
|
type = "app";
|
||||||
|
program = "${pkgs.writeShellScript "build-agent" ''
|
||||||
|
podman build -t pidev:latest -f Containerfile .
|
||||||
|
''}";
|
||||||
|
};
|
||||||
menuconfig = {
|
menuconfig = {
|
||||||
type = "app";
|
type = "app";
|
||||||
meta.description = "⚙️ Open ESP-IDF configuration menu (sdkconfig)";
|
meta.description = "⚙️ Open ESP-IDF configuration menu (sdkconfig)";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue