screekworkshop / screek-human-sensor

131 stars 28 forks source link

1u fails to compile with error: cannot convert 'USBCDC*' to 'HardwareSerial*' in assignment #2

Closed rajil closed 1 year ago

rajil commented 1 year ago

This is referenced here. I think the yaml needs to be updated,

esphome:
  name: screek-humen-dectet-1u
  comment: Screek Human Presence Sensor 24GHz PS-HPS 1U
  friendly_name: Screek Human Presence Sensor 1U
  name_add_mac_suffix: True
  platformio_options:
    board_build.flash_mode: dio
    board_build.extra_flags:
      - "-DARDUINO_USB_CDC_ON_BOOT=0"
screekworkshop commented 1 year ago

https://github.com/screek-workshop/screek-human-sensor/commit/0d0d3dc0bd559de958172df3c9fd61dcf8439c91

We have applied this cdc ban to the commit. Thanks.