添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
礼貌的木瓜  ·  How Prisma Cloud ...·  4 天前    · 
千年单身的咖啡  ·  All builds now ...·  4 天前    · 
鼻子大的炒粉  ·  Update not working / ...·  5 天前    · 
正直的烈马  ·  [Help] After install ...·  5 天前    · 
很拉风的鸭蛋  ·  Kindle Voyage ...·  2 月前    · 
奔跑的足球  ·  Document: ...·  3 月前    · 
豪气的哑铃  ·  python study ...·  3 月前    · 

DHT.h library issue on Linux (Debian 10 Buster)

Post here about your Arduino projects, get help - for Adafruit customers!
Moderators: adafruit_support_bill , adafruit
Please be positive and constructive with your questions and comments.
Sorry if this is the wrong place to post and please let me know where to post.
Was getting error:
/home/larryw/sketchbook/libraries/DHT_sensor_library141/DHT.cpp:31:3: error: ‘UINT32_MAX’ was not declared in this scope
UINT32_MAX /**< Used programmatically for timeout.
With some internet searching I added a line in DHT.cpp file:
#define UINT32_MAX 65535
Is this line correct? seems to work now, is there something else that could be the issue?
OS - Debian 10 Buster
Arduino IDE 2:1.o.5+dfsg2-4.1

Code: Select all

#define UINT32_MAX 0xffffffff
.. the maximum value you can store in a 32-bit unsigned integer.
Looking at the code though, the value is only used as a symbol indicating the microcontroller timed out waiting for a pulse to change. As long as the value you chose works, you should be okay.
  • ↳   For Educators
  • Supported Products & Projects
  • ↳   Internet of Things: Adafruit IO and Wippersnapper
  • ↳   Adafruit IO Wippersnapper Beta
  • ↳   Adafruit CircuitPython
  • ↳   Feather - Adafruit's lightweight platform
  • ↳   Circuit Playground Classic, Circuit Playground Express, Circuit Playground Bluefruit
  • ↳   Trinket ATTiny, Trinket M0
  • ↳   Metro, Metro Express, and Grand Central Boards
  • ↳   Itsy Bitsy Boards
  • ↳   CLUE Board
  • ↳   MakeCode
  • ↳   Issues with the Learn Adafruit Playground Notes System
  • ↳   AdaBox! Show us what you made!
  • ↳   Glowy things (LCD, LED, TFT, EL) purchased at Adafruit
  • ↳   Adafruit Raspberry Pi® accessories
  • ↳   Other Products from Adafruit
  • ↳   Wearables
  • ↳   Wireless: WiFi and Bluetooth
  • ↳   FONA
  • ↳   MiniPOV
  • ↳   MintyBoost
  • ↳   USBtinyISP
  • ↳   TV-B-Gone Kit
  • ↳   Beagle Bone & Adafruit Beagle Bone products
  • Arduino
  • ↳   Arduino
  • ↳   Arduino Starter Pack
  • ↳   Other Arduino products from Adafruit
  • ↳   Arduino Shields from Adafruit
  • Electronics
  • ↳   General Project help
  • ↳   Microcontrollers
  • ↳   Kitbiz
  • Tools
  • ↳   SMT (Surface Mount Tech)
  • ↳   Laser
  • ↳   Tools Tools Tools
  • Unsupported Projects
  • ↳   MintyMP3
  • ↳   Wave Bubble
  • ↳   MIDIsense
  • x0xb0x
  • ↳   x0xb0x Project Status 2010
  • ↳   General x0xing
  • ↳   Making x0x
  • ↳   x0xm0dz
  • ↳   x0x shop
  • Discontinued Products
  • ↳   SpokePOV (discontinued)
  • ↳   YBox2 (discontinued)
  • ↳   Clock Kits (discontinued)
  • ↳   XBee products (discontinued)
  • ↳   Fuzebox (discontinued)
  • ↳   Administrative (closed)
  • ↳   Ask an Engineer! VIDEO CHAT (closed)
  • ↳   Citizen Engineer (closed)
  • ↳   Test Message Forum (closed)
  • “Only through an inner spiritual transformation do we gain the strength to fight vigorously the evils of the world in a humble and loving spirit” Martin Luther King Jr.