Skip to content

Instantly share code, notes, and snippets.

View pyaillet's full-sized avatar
:bowtie:
Trolling...

Pierre-Yves Aillet pyaillet

:bowtie:
Trolling...
View GitHub Profile
@pyaillet
pyaillet / check.log
Created March 10, 2022 19:50
cargo c --target=xtensa-esp32-espidf
Checking esp-idf-hal v0.33.1 (/Users/pyaillet/Projets/esp32/esp-idf-hal)
error[E0433]: failed to resolve: use of undeclared crate or module `rmt_item32_t__bindgen_ty_1__bindgen_ty_1`
--> src/rmt.rs:564:38
|
564 | let mut inner_item = rmt_item32_t__bindgen_ty_1__bindgen_ty_1::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `rmt_item32_t__bindgen_ty_1__bindgen_ty_1`
error[E0425]: cannot find function `rmt_set_tx_loop_count` in this scope
--> src/rmt.rs:451:23
|
@pyaillet
pyaillet / main.rs
Last active October 18, 2022 21:40
esp-idf-rs storage example
use std::sync::Arc;
use embedded_svc::storage::{RawStorage, StorageBase};
use esp_idf_svc::{nvs::EspDefaultNvs, nvs_storage::EspNvsStorage};
use esp_idf_sys as _; // If using the `binstart` feature of `esp-idf-sys`, always keep this module imported
use log::*;
fn main() {
// Temporary. Will disappear once ESP-IDF 4.4 is released, but for now it is necessary to call this function once,
@pyaillet
pyaillet / config.yml
Created December 4, 2023 17:24
Minimal configuration for lazydocker https://github.com/jesseduffield/lazydocker - put this in your `~/.config/lazydocker/config.yml` file
customCommands:
containers:
- name: bash
attach: true
command: 'docker exec -it {{ .Container.ID }} bash'
serviceNames: []
- name: sh
attach: true
command: 'docker exec -it {{ .Container.ID }} sh'
serviceNames: []
curl -LO https://github.com/GoogleCloudPlatform/training-data-analyst/archive/refs/heads/master.zip
unzip master.zip
mv training-data-analyst-master training-data-analyst