-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Hi, I would like to ask why it show some error in library.
c:\Users\User\OneDrive\ ĵ \Arduino\libraries\DHT_sensor_library\DHT.cpp: In constructor 'DHT::DHT(uint8_t, uint8_t, uint8_t)':
c:\Users\User\OneDrive\ ĵ \Arduino\libraries\DHT_sensor_library\DHT.cpp:51:37: error: 'microsecondsToClockCycles' was not declared in this scope
microsecondsToClockCycles(1000); // 1 millisecond timeout for
^
c:\Users\User\OneDrive\ ĵ \Arduino\libraries\DHT_sensor_library\DHT.cpp: In member function 'float DHT::readTemperature(bool, bool)':
c:\Users\User\OneDrive\ ĵ \Arduino\libraries\DHT_sensor_library\DHT.cpp:112:13: error: 'word' was not declared in this scope
f = ((word)(data[2] & 0x7F)) << 8 | data[3];
^
c:\Users\User\OneDrive\ ĵ \Arduino\libraries\DHT_sensor_library\DHT.cpp: In member function 'float DHT::readHumidity(bool)':
c:\Users\User\OneDrive\ ĵ \Arduino\libraries\DHT_sensor_library\DHT.cpp:158:13: error: 'word' was not declared in this scope
f = ((word)data[0]) << 8 | data[1];
^
c:\Users\User\OneDrive\ ĵ \Arduino\libraries\DHT_sensor_library\DHT.cpp:158:18: error: expected ')' before 'data'
f = ((word)data[0]) << 8 | data[1];
^
grpc: error while marshaling: string field contains invalid UTF-8
Compilation error: grpc: error while marshaling: string field contains invalid UTF-8