# Adhan Clock

带礼拜时间、历法、祈祷提醒和扫码配网的 ESP32 时钟。

ESP32 Islamic clock: prayer times, Hijri date, adhkar, QR phone setup

带礼拜时间、历法、祈祷提醒和扫码配网的 ESP32 时钟。

- id: medma07-adhan-clock
- author: MedMA07
- repository: https://github.com/MedMA07/Adhan-clock
- license: MIT
- shape: wide
- scenes: art
- boards: ESP32
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/medma07-adhan-clock/
- html_zh: https://esp32gallery.com/zh/projects/medma07-adhan-clock/
- json: https://esp32gallery.com/data/catalog/projects/medma07-adhan-clock.json

## Hardware

ESP32-class board. Verify the exact board revision, display, power source and wiring in the upstream build guide.

ESP32 类开发板；请在上游构建文档中核对具体板型、屏幕、供电与接线。

## English

```
A 1.8-inch ST7735S TFT on an ESP32 38-pin devkit shows the time, Gregorian and Hijri dates, a large countdown to the next prayer, and a slideshow of more than sixty adhkar and du'a pages. Prayer times come from the Aladhan API with a local calculation fallback when there is no internet. One TTP223 touch sensor does all navigation: a tap advances from home to prayer times, adhkar and the QR screen, holds of roughly one and two seconds page through adhkar, and six seconds on the QR screen factory-resets. Pairing is by QR code, which joins the phone to the AdhanClock access point and opens the settings page at the board hotspot address. Arabic is not rendered by a font engine but pre-generated as compressed anti-aliased bitmaps from the Amiri font, rebuilt with a Python script. Arduino IDE with esp32 core 2.0.17 and the Huge APP partition scheme builds it.
```

## 中文

```
ESP32 38 针开发板配 1.8 寸 ST7735S 屏，屏上是时间、公历和回历日期，以及到下一次礼拜的大号倒计时，外加 60 多页晨昏祈念和祷文轮播。礼拜时刻来自 Aladhan API 并做缓存，断网时改用本地推算。整机只有一个 TTP223 触摸片：点一下在主页、礼拜时刻、祈念、二维码四屏之间走，按住约 1 秒翻页、约 2 秒换分类，在二维码页按住 6 秒恢复出厂。配网靠扫码，手机连上 AdhanClock 热点后打开 the board hotspot address 填 Wi-Fi、城市和计算法。阿拉伯文没有用字体引擎，而是事先用 Amiri 字体生成压缩的抗锯齿点阵图，改文字要跑一遍 gen_assets.py 再重新烧录。Arduino IDE 里用 esp32 核心 2.0.17，分区选 Huge APP。
```
