Skip to content

Instantly share code, notes, and snippets.

f~f~øxà~xææ?æø~ff~fæøþff`ffàæþ`~fffæf`æfþf`àæþfæþ`fæøxf~æøf~fæff~fxffþfx~æfx~`æfx~æøfx~`æfx~~æfx~æþ`fx`þààþææxx~àþxæxxxxxàf?àþxæxxxxx`àfàþxàfàxxþ~fààxøæþæ?àþxàfxxxf`øf~àfI (30) boot: ESP-IDF v4.3-beta1-24-g0bbc721a6-dirty 2nd stage bootloader
I (30) boot: compile time 14:32:18
I (31) boot: chip revision: 1
I (32) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (35) boot.esp32: SPI Speed : 40MHz
I (38) boot.esp32: SPI Mode : DIO
I (40) boot.esp32: SPI Flash Size : 4MB
I (42) boot: Enabling RNG early entropy source...
I (44) boot: Partition Table:
I (46) boot: ## Label Usage Type ST Offset Length
use core::cell::RefCell;
use bsp::hal;
use embedded_storage::nor_flash::{NorFlash, ReadNorFlash};
use hal::{nvmc::Nvmc, pac::NVMC};
use tickv::{error_codes::ErrorCode, flash_controller::FlashController, TicKV};
pub const FLASH_PAGE_SIZE: usize = 4096;
# Array get cycle
# KEY cyclical enumerator
KEY = "code"
SYMBOLS = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z","1","2","3"]
def encrypt(input_text)
crypt input_text, false
end
@eflukx
eflukx / parse_kicad_xml.rb
Last active September 2, 2023 13:10
Small script to parse the .xml BOM files exported by KiCad. This allows for easy handling and transforming in a (production) pipeline using Ruby
require 'pry'
require 'json'
require 'nokogiri'
require 'yaml'
require 'hashie'
class GroupedComponents
@@DEFAULT_FIELDS = %w(refs cnt value footprint)