Coder Social home page Coder Social logo

astronautsclock's Introduction

AstronautsClock

基于 ESP8266 及 1.3 寸 TFT 实现的华为太空人时钟。参考了 d88880(抖音号) 的简易太空人时钟代码。

展示

AstronautsClock

功能

  1. 时间、日期、星期,每 1 小时校准一次
  2. 实时天气信息:天气、温度、湿度、空气质量,每半小时刷新一次
  3. 整点蜂鸣报时
  4. 整点更换 gif(龙猫跳绳、龙猫跳舞、太空人)

材料清单

  1. ESP8266 开发板
  2. 中景园 1.3 寸 TFT,分辨率 240 x 240
  3. 蜂鸣器
  4. 微积木

电路图

tft

代码编译说明

依赖库

  1. ArduinoJson
  2. TimeLib
  3. TFT_eSPI
  4. TJpg_Decoder
  5. Buzzer

配置修改

  1. 修改 TFT_eSPI 库管脚定义,参考 User_Setup.h.backup
#define TFT_MISO 14
#define TFT_MOSI 13
#define TFT_CS   -1  // Chip select control pin D8
#define TFT_DC    5  // Data Command control pin
#define TFT_RST   4  // Reset pin (could connect to NodeMCU RST, see next line)
#define TFT_BL   -1  // LED back-light (only for ST7789 with backlight control pin)
  1. CLOCK.ino中修改 WiFi 信息,设置 ssidpassword
  2. CLOCK.ino中修改天气城市代码,设置 cityCode

astronautsclock's People

Contributors

217heidai avatar

Stargazers

Eloutmani Soufine avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.