Skip to content
No description, website, or topics provided.
Lua C C++
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
u8g2字体相关
固件
init-注释.lua
init.lua
nodemcu-oled-desktop.png
readme.md

readme.md

NodeMCU气象站,网站访问量显示器

硬件

  • NodeMCU/ESP8266
  • 0.96寸oled
  • DHT11
  • 声音传感器

功能

NodeMCU读取DHT11数据并显示,声音传感器可以唤醒屏幕,按钮可以唤醒屏幕和smartconfig配网。 服务器后台每一个小时,爬取网站访问量和天气数据,并缓存。NodeMCU获取并显示访问量和天气数据。

固件

master tag:2.2.0-master_20180608

NodeMCU 2.2.0.0 built with Docker provided by frightanic.com
	branch: HEAD
	commit: 4905381c004bdeaf744a60bb940c1906c2e052d4
	SSL: false
	Build type: integer
	LFS: disabled
	modules: dht,file,gpio,http,i2c,rtctime,sjson,tmr,u8g2,wifi
 build created on 2019-09-12 16:24
 powered by Lua 5.1.4 on SDK 2.2.1(6ab97e9)

字体(u8g2使用)

#define U8G2_FONT_TABLE \
  U8G2_FONT_TABLE_ENTRY(font_6x10_tf) \
  U8G2_FONT_TABLE_ENTRY(font_unifont_t_symbols) \
  U8G2_FONT_TABLE_ENTRY(font_helvR24_tf) \
  U8G2_FONT_TABLE_ENTRY(font_9x18_tf) \
  U8G2_FONT_TABLE_ENTRY(font_open_iconic_weather_4x_t) \
  U8G2_FONT_TABLE_ENTRY(font_courB24_tf ) \

详细

参见博客

You can’t perform that action at this time.