Skip to content

feat(examples): add Bitcoin block clock (mempool.space, block height + fees + halving)#2

Open
ritankarsaha wants to merge 1 commit into
jimbrend:mainfrom
ritankarsaha:feat/bitcoin-block-clock-example
Open

feat(examples): add Bitcoin block clock (mempool.space, block height + fees + halving)#2
ritankarsaha wants to merge 1 commit into
jimbrend:mainfrom
ritankarsaha:feat/bitcoin-block-clock-example

Conversation

@ritankarsaha

Copy link
Copy Markdown

Adds examples/05_bitcoin_block_clock.cpp — a self-contained app that:

  • Connects to Wi-Fi and polls mempool.space every 60 s (no API key needed)
  • Displays current block height, blocks until next halving + day estimate, and fast/half-hour/hour fee rates on the 1.47" LCD

This is a natural next step after 04_wifi_scan_serial — it takes Wi-Fi from "scan and print to serial" to "fetch live data and render it on screen," which is the pattern most real device apps build on.

Also adds ArduinoJson to platformio.ini (needed for fee rate JSON parsing) and updated README to list the new example.

Tested against the mempool.space public API. Hardware test pending physical device — happy to iterate on display layout based on feedback.

@jimbrend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant