Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Relay
#7
(03-28-2023, 08:35 AM)admin Wrote: yes, need add PCF8574 arduino library.
Thanks for the reply, with the additional library on Arduino ide it works. I'm supposed to use it on the Arduino Cloud and I can't get it to work. I attach the error

/usr/local/bin/arduino-cli compile --fqbn esp32:esp32:esp32:CPUFreq=240,DebugLevel=none,EraseFlash=none,EventsCore=1,FlashFreq=80,FlashMode=qio,FlashSize=4M,LoopCore=1,PSRAM=disabled,PartitionScheme=default,UploadSpeed=921600 --libraries /home/builder/opt/libraries/latest --build-cache-path /tmp --output-dir /tmp/078383118/build --build-path /tmp/arduino-build-F7B4CC6F93B1FBCAD39B43F824F23BDC --library /mnt/create-efs/webide/d3/90/d390ef1e05c8bc72a98d38ac0679549cConfusedatifiltri/libraries_v2/PCF8574 library /tmp/078383118/BEMOPRO_LORI_mar30a
Using library pcf8574_0_3_8 at version 0.3.8 in folder: /home/builder/opt/libraries/pcf8574_0_3_8
Using library Wire at version 2.0.0 in folder: /home/builder/.arduino15/packages/esp32/hardware/esp32/2.0.5/libraries/Wire
/tmp/078383118/BEMOPRO_LORI_mar30a/BEMOPRO_LORI_mar30a.ino:10:49: error: no matching function for call to 'PCF8574:TongueCF8574(TwoWire*, int, int, int)'
PCF8574 pcf8574_RE1(&I2Cone,0x24,A4S_SDA,A4S_SCL);//DO
^
In file included from /tmp/078383118/BEMOPRO_LORI_mar30a/BEMOPRO_LORI_mar30a.ino:3:
/home/builder/opt/libraries/latest/pcf8574_0_3_8/PCF8574.h:30:12: note: candidate: 'PCF8574:TongueCF8574(uint8_t, TwoWire*)'
explicit PCF8574(const uint8_t deviceAddress = 0x20, TwoWire *wire = &Wire);
^~~~~~~
/home/builder/opt/libraries/latest/pcf8574_0_3_8/PCF8574.h:30:12: note: candidate expects 2 arguments, 4 provided
/home/builder/opt/libraries/latest/pcf8574_0_3_8/PCF8574.h:27:7: note: candidate: 'constexpr PCF8574:TongueCF8574(const PCF8574&)'
class PCF8574
^~~~~~~
/home/builder/opt/libraries/latest/pcf8574_0_3_8/PCF8574.h:27:7: note: candidate expects 1 argument, 4 provided
/home/builder/opt/libraries/latest/pcf8574_0_3_8/PCF8574.h:27:7: note: candidate: 'constexpr PCF8574:TongueCF8574(PCF8574&&)'
/home/builder/opt/libraries/latest/pcf8574_0_3_8/PCF8574.h:27:7: note: candidate expects 1 argument, 4 provided
/tmp/078383118/BEMOPRO_LORI_mar30a/BEMOPRO_LORI_mar30a.ino: In function 'void setup()':
/tmp/078383118/BEMOPRO_LORI_mar30a/BEMOPRO_LORI_mar30a.ino:20:17: error: 'class PCF8574' has no member named 'pinMode'
pcf8574_RE1.pinMode(P0, OUTPUT);
^~~~~~~
Reply


Messages In This Thread
Relay - by lori72 - 03-24-2023, 07:31 PM
RE: Relay - by admin - 03-24-2023, 11:10 PM
RE: Relay - by lori72 - 03-25-2023, 06:51 AM
RE: Relay - by admin - 03-25-2023, 02:04 PM
RE: Relay - by lori72 - 03-28-2023, 07:05 AM
RE: Relay - by admin - 03-28-2023, 08:35 AM
RE: Relay - by lori72 - 03-30-2023, 08:06 AM
RE: Relay - by admin - 03-30-2023, 10:50 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)