From d203a9ec56b79998271a2f0a402997da9a55968a Mon Sep 17 00:00:00 2001 From: Correl Date: Mon, 17 Oct 2022 18:41:06 -0400 Subject: [PATCH] updates --- 20220209144915-tutor.org | 12 ++++++++++++ 20221017183149-esp2866.org | 19 +++++++++++++++++++ 20221017183837-esphome.org | 8 ++++++++ 3 files changed, 39 insertions(+) create mode 100644 20221017183149-esp2866.org create mode 100644 20221017183837-esphome.org diff --git a/20220209144915-tutor.org b/20220209144915-tutor.org index 793bfba..cc9e6ff 100644 --- a/20220209144915-tutor.org +++ b/20220209144915-tutor.org @@ -195,3 +195,15 @@ https://www.topdecked.com/decks/alive/833c308f-219f-4624-8b32-1adedcb477f0 - Which cards do I want in one deck that are currently in another? - Which cards do I need more copies of? - Which cards do I need that would improve specific decks? + +** Types +: import Text -> (ValidCardNames, InvalidCardNames) +: import Text -> (ValidCards, InvalidCards) + +: PreferredCard = PreferredCard { name: ValidCardName, card: Maybe ValidCard } +: import Text -> ([PreferredCard], [InvalidCardNames]) + +: decklist DeckName -> ValidCardNames -> DeckList +: commanderDeckList -> DeckList -> Either InvalidCommanderDeck CommanderDecklist + +: Deck = Deck [PreferredCard] diff --git a/20221017183149-esp2866.org b/20221017183149-esp2866.org new file mode 100644 index 0000000..79a92f9 --- /dev/null +++ b/20221017183149-esp2866.org @@ -0,0 +1,19 @@ +:PROPERTIES: +:ID: d97fde4a-0e91-40f9-ac57-d0cd67295d14 +:END: +#+title: ESP2866 +* Best pins to use +| Label | GPIO | Input | Output | Notes | +|-------+--------+---------------+-----------------------+------------------------------------------------------------------| +| D0 | GPIO16 | no interrupt | no PWM or I2C support | HIGH at boot used to wake up from deep sleep | +| D1 | GPIO5 | OK! | OK! | often used as SCL (I2C) | +| D2 | GPIO4 | OK! | OK! | often used as SDA (I2C) | +| D3 | GPIO0 | pulled up | OK! | connected to FLASH button, boot fails if pulled LOW | +| D4 | GPIO2 | pulled up | OK! | HIGH at boot connected to on-board LED, boot fails if pulled LOW | +| D5 | GPIO14 | OK! | OK! | SPI (SCLK) | +| D6 | GPIO12 | OK! | OK! | SPI (MISO) | +| D7 | GPIO13 | OK! | OK! | SPI (MOSI) | +| D8 | GPIO15 | pulled to GND | OK | SPI (CS) Boot fails if pulled HIGH | +| RX | GPIO3 | OK | RX pin | HIGH at boot | +| TX | GPIO1 | TX pin | OK | HIGH at boot debug output at boot, boot fails if pulled LOW | +| A0 | ADC0 | Analog Input | X | | diff --git a/20221017183837-esphome.org b/20221017183837-esphome.org new file mode 100644 index 0000000..ec4f603 --- /dev/null +++ b/20221017183837-esphome.org @@ -0,0 +1,8 @@ +:PROPERTIES: +:ID: 659c836d-0934-4496-a163-a51ccaccc117 +:END: +#+title: #+title: ESPHome + +A platform for building firmware for [[id:d97fde4a-0e91-40f9-ac57-d0cd67295d14][ESP2866]] and ESP32 microcontrollers using +YAML configuration files using a syntax similar to HomeAssistant that integrates +easily with HomeAssistant installations.