You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
d:\Arduino\Sketchbook\libraries\esp32-ds18b20\OneWireESP32.cpp: In constructor 'OneWire32::OneWire32(uint8_t, uint8_t, uint8_t, uint8_t)':
d:\Arduino\Sketchbook\libraries\esp32-ds18b20\OneWireESP32.cpp:57:39: error: no match for 'operator=' (operand types are 'volatile gpio_dev_s::' and 'int')
GPIO.enable_w1ts = (0x1 << owpin);
^
In file included from C:\Users\tao\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32c3/include/soc/include/soc/gpio_periph.h:18,
from C:\Users\tao\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32c3/include/hal/include/hal/gpio_types.h:17,
from C:\Users\tao\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32c3/include/esp_hw_support/include/esp_sleep.h:13,
from C:\Users\tao\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\cores\esp32/esp32-hal.h:33,
from C:\Users\tao\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\cores\esp32/Arduino.h:36,
from d:\Arduino\Sketchbook\libraries\esp32-ds18b20\OneWireESP32.cpp:13:
C:\Users\tao\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32c3/include/soc/esp32c3/include/soc/gpio_struct.h:61:11: note: candidate: 'gpio_dev_s::& gpio_dev_s::::operator=(const gpio_dev_s::&)'
union {
^
C:\Users\tao\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32c3/include/soc/esp32c3/include/soc/gpio_struct.h:61:11: note: no known conversion for argument 1 from 'int' to 'const gpio_dev_s::&'
C:\Users\tao\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32c3/include/soc/esp32c3/include/soc/gpio_struct.h:61:11: note: candidate: 'gpio_dev_s::& gpio_dev_s::::operator=(gpio_dev_s::&&)'
C:\Users\tao\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32c3/include/soc/esp32c3/include/soc/gpio_struct.h:61:11: note: no known conversion for argument 1 from 'int' to 'gpio_dev_s::&&'
d:\Arduino\Sketchbook\libraries\esp32-ds18b20\OneWireESP32.cpp:59:12: error: 'gpio_dev_t' {aka 'volatile struct gpio_dev_s'} has no member named 'enable1_w1ts'; did you mean 'enable_w1ts'?
GPIO.enable1_w1ts.data = (0x1 << (owpin - 32));
^~~~~~~~~~~~
enable_w1ts
exit status 1
Compilation error: exit status 1
The text was updated successfully, but these errors were encountered:
XIAO_ESP32C3
Arduino IDE 2.3.2
ds18b20.ino, sample code
d:\Arduino\Sketchbook\libraries\esp32-ds18b20\OneWireESP32.cpp: In constructor 'OneWire32::OneWire32(uint8_t, uint8_t, uint8_t, uint8_t)':
d:\Arduino\Sketchbook\libraries\esp32-ds18b20\OneWireESP32.cpp:57:39: error: no match for 'operator=' (operand types are 'volatile gpio_dev_s::' and 'int')
GPIO.enable_w1ts = (0x1 << owpin);
^
In file included from C:\Users\tao\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32c3/include/soc/include/soc/gpio_periph.h:18,
from C:\Users\tao\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32c3/include/hal/include/hal/gpio_types.h:17,
from C:\Users\tao\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32c3/include/esp_hw_support/include/esp_sleep.h:13,
from C:\Users\tao\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\cores\esp32/esp32-hal.h:33,
from C:\Users\tao\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\cores\esp32/Arduino.h:36,
from d:\Arduino\Sketchbook\libraries\esp32-ds18b20\OneWireESP32.cpp:13:
C:\Users\tao\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32c3/include/soc/esp32c3/include/soc/gpio_struct.h:61:11: note: candidate: 'gpio_dev_s::& gpio_dev_s::::operator=(const gpio_dev_s::&)'
union {
^
C:\Users\tao\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32c3/include/soc/esp32c3/include/soc/gpio_struct.h:61:11: note: no known conversion for argument 1 from 'int' to 'const gpio_dev_s::&'
C:\Users\tao\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32c3/include/soc/esp32c3/include/soc/gpio_struct.h:61:11: note: candidate: 'gpio_dev_s::& gpio_dev_s::::operator=(gpio_dev_s::&&)'
C:\Users\tao\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32c3/include/soc/esp32c3/include/soc/gpio_struct.h:61:11: note: no known conversion for argument 1 from 'int' to 'gpio_dev_s::&&'
d:\Arduino\Sketchbook\libraries\esp32-ds18b20\OneWireESP32.cpp:59:12: error: 'gpio_dev_t' {aka 'volatile struct gpio_dev_s'} has no member named 'enable1_w1ts'; did you mean 'enable_w1ts'?
GPIO.enable1_w1ts.data = (0x1 << (owpin - 32));
^~~~~~~~~~~~
enable_w1ts
exit status 1
Compilation error: exit status 1
The text was updated successfully, but these errors were encountered: