Skip to content

Instantly share code, notes, and snippets.

@mnishiguchi
mnishiguchi / atomvm-blinky.md
Last active August 4, 2025 23:13
AtomVM Blinky on ESP32-S3 (Debian, 2025-07-31)

AtomVM Blinky on ESP32-S3 (Debian, 2025-07-31)

Let’s run a simple Elixir “Blinky” application on the Seeed Studio XIAO ESP32-S3 using AtomVM — a lightweight virtual machine for running Elixir and Erlang on microcontrollers.


Host Environment

This setup assumes a Debian-based Linux host with the following tools installed:

@mnishiguchi
mnishiguchi / spi-tft-display.md
Last active July 28, 2025 03:08
3.5インチ SPI TFT を Elixir で駆動 (ili9486_elixir なしだけどili9486_elixir風)

3.5インチ SPI TFT を Elixir で駆動 (ili9486_elixir風)

Mix.install([
  {:circuits_gpio, "~> 2.1"},
  {:circuits_spi, "~> 2.0"},
  {:kino, "~> 0.15"}
])
@mnishiguchi
mnishiguchi / himarari-fetch.md
Last active July 6, 2025 08:06
batch download of N hours of Himawari IR/VIS images
#!/usr/bin/env bash
#
# fetch_earth_images.sh
# Interactive batch download of Earth Wallpaper, IR & VIS images.
# -----------------------------------------------
set -euo pipefail
echo_heading() { echo -e "\n\033[34m$1\033[0m"; }
echo_success() { echo -e " \033[32m✔ $1\033[0m"; }
@mnishiguchi
mnishiguchi / nerves-quickstart.md
Last active March 14, 2024 04:02
Nerves Quickstart (English)

Nerves Quickstart

For those exploring [Nerves] for the first time, we recommend [Nerves Livebook]. It allows you to try out the Nerves project on real hardware without needing to build a project from scratch.

Within minutes, you'll have a [Raspberry Pi] or [Beaglebone] running Nerves. You'll be able to run code in Livebook and work through Nerves tutorials from the comfort of your browser.

No prior knowledge about the [Elixir] programming language is required. You can learn it in [Nerves Livebook].

@mnishiguchi
mnishiguchi / nerves-quickstart.md
Last active July 23, 2025 00:28
Elixir Nerves Quickstart (日本語)

Nerves Quickstart

初めて [Nerves] 試す方には[Nerves Livebook]をお勧めします。

[Nerves Livebook]という予めビルドされたファームウェアが公開されているので、それをダウンロードして[microSD カード]に焼くだけで簡単に氣樂に[Nerves]を樂しめます。[Livebook] のノートブック上で[Elixir]コードを実際に実行しながら進められるので、ウェブブラウザで快適に 楽しく[Nerves] を学べます。

[Elixir]コードを実行しますが、[Elixir]言語に関する知識は特に不要です。なぜなら、[Nerves Livebook]上で[Elixir]言語を学ぶこともできるからです。

@mnishiguchi
mnishiguchi / binary-clock--ja_20240211_1.md
Last active March 2, 2024 09:11
binary-clock--ja_20240211_1

Frankさんのカスタム二進数時計基板

Mix.install([
  {:circuits_spi, "~> 2.0 or ~> 1.0"},
  {:kino, "~> 0.12.2"}
])

基板の設計

@mnishiguchi
mnishiguchi / nerves-system-versions.md
Created June 14, 2022 11:54
Nerves system versions

Nerves system versions

rpi rpi0 rpi2 rpi3a rpi3 rpi4 bbb x86_64 osd32mp1
OTP 25.0 1.19.0 1.19.0 1.19.0 1.19.0 1.19.0 1.19.0 2.14.0 1.19.0 0.10.0
OTP 24.3.2 1.18.4 1.18.4 1.18.4 1.18.4 1.18.4 1.18.4 - 1.18.4 0.9.4
OTP 24.2 1.18.3 1.18.3 1.18.3 1.18.3 1.18.3 1.18.3 2.13.4 1.18.3 0.9.3
OTP 24.1.7 1.17.3 1.17.3 1.17.3 1.17.3 1.17.3 1.17.3 2.12.3 1.17.3 0.8.3
@mnishiguchi
mnishiguchi / inky-phat-weather.md
Last active November 13, 2021 16:14
Inky pHAT weather example in Elixir
@mnishiguchi
mnishiguchi / inky-phat-name-badge.md
Last active November 21, 2021 00:01
Inky pHAT name badge example in Elixir