Open jwhaddad opened 5 months ago
It's possible this can be made to compile for the Adafruit MacroPad RP2040, is there more information from the compilation log so I can figure out what is causing the compile error?
Thank you for your reply. I'm slightly new to Arduino, have done many projects with raspberry pi. Your help is greatly appreciated.below is the complete log i get: my arduino program:
PCF8574 stepperExpander(0x20); //Create the PCF8574 object at the hex address the PCF8574 chip is at
StepperMotor mainStepper(stepperExpander, 200, 0, 1, 2, 3); //When making the new object you can either use P0, P1, P2, ect.. or use numbers //StepperMotor mainStepper(stepperExpander, 200, 0, 1); //Config for two wire contol
void setup() { mainStepper.setSpeed(100); //Set speed to 100RPM (This is a softcap, library has limited to 100RPM to not cause problems with missing steps, change the library if you need to) stepperExpander.begin(); //Remember to .begin() the PCF8574 chip or else it will not output }
void loop() { mainStepper.step(100); //Step 100 forwards mainStepper.step(-100); //Step 100 backwards }
Log: Arduino: 1.8.19 (Windows 10), Board: "Adafruit MacroPad RP2040, 8MB (no FS), 133 MHz, Small (-Os) (standard), Disabled, Disabled, Disabled, Disabled, None, Pico SDK, IPv4 Only, W25Q080 QSPI /2, Default (UF2)"
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\xxxxxxx\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\xxxxxxx\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries -fqbn=rp2040:rp2040:adafruit_macropad2040:flash=8388608_0,freq=133,opt=Small,rtti=Disabled,stackprotect=Disabled,exceptions=Disabled,dbgport=Disabled,dbglvl=None,usbstack=picosdk,ipbtstack=ipv4only,boot2=boot2_w25q080_2_padded_checksum,uploadmethod=default -ide-version=10819 -build-path C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_build_363902 -warnings=all -build-cache C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_cache_124247 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.pqt-elf2uf2.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-elf2uf2\2.2.0-d04e724 -prefs=runtime.tools.pqt-elf2uf2-2.2.0-d04e724.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-elf2uf2\2.2.0-d04e724 -prefs=runtime.tools.pqt-mklittlefs.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-mklittlefs\2.2.0-d04e724 -prefs=runtime.tools.pqt-mklittlefs-2.2.0-d04e724.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-mklittlefs\2.2.0-d04e724 -prefs=runtime.tools.pqt-openocd.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-openocd\2.2.0-d04e724 -prefs=runtime.tools.pqt-openocd-2.2.0-d04e724.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-openocd\2.2.0-d04e724 -prefs=runtime.tools.pqt-pioasm.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-pioasm\2.2.0-d04e724 -prefs=runtime.tools.pqt-pioasm-2.2.0-d04e724.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-pioasm\2.2.0-d04e724 -prefs=runtime.tools.pqt-picotool.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-picotool\2.2.0-d04e724 -prefs=runtime.tools.pqt-picotool-2.2.0-d04e724.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-picotool\2.2.0-d04e724 -prefs=runtime.tools.pqt-python3.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-python3\1.0.1-base-3a57aed -prefs=runtime.tools.pqt-python3-1.0.1-base-3a57aed.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-python3\1.0.1-base-3a57aed -prefs=runtime.tools.pqt-gcc.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-gcc\2.2.0-d04e724 -prefs=runtime.tools.pqt-gcc-2.2.0-d04e724.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-gcc\2.2.0-d04e724 -verbose C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_modified_sketch_260954\sketch_jul11b.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\xxxxxxx\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\xxxxxxx\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries -fqbn=rp2040:rp2040:adafruit_macropad2040:flash=8388608_0,freq=133,opt=Small,rtti=Disabled,stackprotect=Disabled,exceptions=Disabled,dbgport=Disabled,dbglvl=None,usbstack=picosdk,ipbtstack=ipv4only,boot2=boot2_w25q080_2_padded_checksum,uploadmethod=default -ide-version=10819 -build-path C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_build_363902 -warnings=all -build-cache C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_cache_124247 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.pqt-elf2uf2.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-elf2uf2\2.2.0-d04e724 -prefs=runtime.tools.pqt-elf2uf2-2.2.0-d04e724.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-elf2uf2\2.2.0-d04e724 -prefs=runtime.tools.pqt-mklittlefs.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-mklittlefs\2.2.0-d04e724 -prefs=runtime.tools.pqt-mklittlefs-2.2.0-d04e724.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-mklittlefs\2.2.0-d04e724 -prefs=runtime.tools.pqt-openocd.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-openocd\2.2.0-d04e724 -prefs=runtime.tools.pqt-openocd-2.2.0-d04e724.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-openocd\2.2.0-d04e724 -prefs=runtime.tools.pqt-pioasm.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-pioasm\2.2.0-d04e724 -prefs=runtime.tools.pqt-pioasm-2.2.0-d04e724.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-pioasm\2.2.0-d04e724 -prefs=runtime.tools.pqt-picotool.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-picotool\2.2.0-d04e724 -prefs=runtime.tools.pqt-picotool-2.2.0-d04e724.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-picotool\2.2.0-d04e724 -prefs=runtime.tools.pqt-python3.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-python3\1.0.1-base-3a57aed -prefs=runtime.tools.pqt-python3-1.0.1-base-3a57aed.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-python3\1.0.1-base-3a57aed -prefs=runtime.tools.pqt-gcc.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-gcc\2.2.0-d04e724 -prefs=runtime.tools.pqt-gcc-2.2.0-d04e724.path=C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-gcc\2.2.0-d04e724 -verbose C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_modified_sketch_260954\sketch_jul11b.ino
Using board 'adafruit_macropad2040' from platform in folder: C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3
Using core 'rp2040' from platform in folder: C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3
Detecting libraries used...
"C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-gcc\2.2.0-d04e724/bin/arm-none-eabi-g++" -I "C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_build_363902/core" -c -Werror=return-type -Wno-psabi -DCFG_TUSB_MCU=OPT_MCU_RP2040 -DUSBD_PID=0x8107 -DUSBD_VID=0x239a -DUSBD_MAX_POWER_MA=250 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"MacroPad RP2040\"" -DPICO_CYW43_ARCH_THREADSAFE_BACKGROUND=1 -DCYW43_LWIP=1 -DLWIP_IPV6=0 -DLWIP_IPV4=1 -DLWIP_IGMP=1 -DLWIP_CHECKSUM_CTRL_PER_NETIF=1 "-DARDUINO_VARIANT=\"adafruit_macropad2040\"" -DTARGET_RP2040 -DPICO_FLASH_SIZE_BYTES=8388608 -march=armv6-m -mcpu=cortex-m0plus -mthumb -ffunction-sections -fdata-sections -fno-exceptions -DARM_MATH_CM0_FAMILY -DARM_MATH_CM0_PLUS "-iprefixC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/" "@C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/lib/platform_inc.txt" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/include" -fno-rtti -std=gnu++17 -g -pipe -w -x c++ -E -CC -DF_CPU=133000000L -DARDUINO=10819 -DARDUINO_ADAFRUIT_MACROPAD_RP2040 "-DBOARD_NAME=\"ADAFRUIT_MACROPAD_RP2040\"" -DARDUINO_ARCH_RP2040 -Os -DWIFICC=CYW43_COUNTRY_WORLDWIDE "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\cores\rp2040" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\variants\adafruit_macropad2040" "C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_build_363902\sketch\sketch_jul11b.ino.cpp" -o nul
Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
-> candidates: [Wire@1.0]
"C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-gcc\2.2.0-d04e724/bin/arm-none-eabi-g++" -I "C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_build_363902/core" -c -Werror=return-type -Wno-psabi -DCFG_TUSB_MCU=OPT_MCU_RP2040 -DUSBD_PID=0x8107 -DUSBD_VID=0x239a -DUSBD_MAX_POWER_MA=250 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"MacroPad RP2040\"" -DPICO_CYW43_ARCH_THREADSAFE_BACKGROUND=1 -DCYW43_LWIP=1 -DLWIP_IPV6=0 -DLWIP_IPV4=1 -DLWIP_IGMP=1 -DLWIP_CHECKSUM_CTRL_PER_NETIF=1 "-DARDUINO_VARIANT=\"adafruit_macropad2040\"" -DTARGET_RP2040 -DPICO_FLASH_SIZE_BYTES=8388608 -march=armv6-m -mcpu=cortex-m0plus -mthumb -ffunction-sections -fdata-sections -fno-exceptions -DARM_MATH_CM0_FAMILY -DARM_MATH_CM0_PLUS "-iprefixC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/" "@C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/lib/platform_inc.txt" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/include" -fno-rtti -std=gnu++17 -g -pipe -w -x c++ -E -CC -DF_CPU=133000000L -DARDUINO=10819 -DARDUINO_ADAFRUIT_MACROPAD_RP2040 "-DBOARD_NAME=\"ADAFRUIT_MACROPAD_RP2040\"" -DARDUINO_ARCH_RP2040 -Os -DWIFICC=CYW43_COUNTRY_WORLDWIDE "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\cores\rp2040" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\variants\adafruit_macropad2040" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\libraries\Wire\src" "C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_build_363902\sketch\sketch_jul11b.ino.cpp" -o nul
Alternatives for PCF8574_Stepper.h: [PCF8574-Stepper-Motor-Control-master]
ResolveLibrary(PCF8574_Stepper.h)
-> candidates: [PCF8574-Stepper-Motor-Control-master]
"C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-gcc\2.2.0-d04e724/bin/arm-none-eabi-g++" -I "C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_build_363902/core" -c -Werror=return-type -Wno-psabi -DCFG_TUSB_MCU=OPT_MCU_RP2040 -DUSBD_PID=0x8107 -DUSBD_VID=0x239a -DUSBD_MAX_POWER_MA=250 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"MacroPad RP2040\"" -DPICO_CYW43_ARCH_THREADSAFE_BACKGROUND=1 -DCYW43_LWIP=1 -DLWIP_IPV6=0 -DLWIP_IPV4=1 -DLWIP_IGMP=1 -DLWIP_CHECKSUM_CTRL_PER_NETIF=1 "-DARDUINO_VARIANT=\"adafruit_macropad2040\"" -DTARGET_RP2040 -DPICO_FLASH_SIZE_BYTES=8388608 -march=armv6-m -mcpu=cortex-m0plus -mthumb -ffunction-sections -fdata-sections -fno-exceptions -DARM_MATH_CM0_FAMILY -DARM_MATH_CM0_PLUS "-iprefixC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/" "@C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/lib/platform_inc.txt" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/include" -fno-rtti -std=gnu++17 -g -pipe -w -x c++ -E -CC -DF_CPU=133000000L -DARDUINO=10819 -DARDUINO_ADAFRUIT_MACROPAD_RP2040 "-DBOARD_NAME=\"ADAFRUIT_MACROPAD_RP2040\"" -DARDUINO_ARCH_RP2040 -Os -DWIFICC=CYW43_COUNTRY_WORLDWIDE "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\cores\rp2040" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\variants\adafruit_macropad2040" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\libraries\Wire\src" "-IC:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master" "C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_build_363902\sketch\sketch_jul11b.ino.cpp" -o nul
Alternatives for PCF8574.h: [PCF8574_library-master@2.3.7]
ResolveLibrary(PCF8574.h)
-> candidates: [PCF8574_library-master@2.3.7]
"C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-gcc\2.2.0-d04e724/bin/arm-none-eabi-g++" -I "C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_build_363902/core" -c -Werror=return-type -Wno-psabi -DCFG_TUSB_MCU=OPT_MCU_RP2040 -DUSBD_PID=0x8107 -DUSBD_VID=0x239a -DUSBD_MAX_POWER_MA=250 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"MacroPad RP2040\"" -DPICO_CYW43_ARCH_THREADSAFE_BACKGROUND=1 -DCYW43_LWIP=1 -DLWIP_IPV6=0 -DLWIP_IPV4=1 -DLWIP_IGMP=1 -DLWIP_CHECKSUM_CTRL_PER_NETIF=1 "-DARDUINO_VARIANT=\"adafruit_macropad2040\"" -DTARGET_RP2040 -DPICO_FLASH_SIZE_BYTES=8388608 -march=armv6-m -mcpu=cortex-m0plus -mthumb -ffunction-sections -fdata-sections -fno-exceptions -DARM_MATH_CM0_FAMILY -DARM_MATH_CM0_PLUS "-iprefixC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/" "@C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/lib/platform_inc.txt" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/include" -fno-rtti -std=gnu++17 -g -pipe -w -x c++ -E -CC -DF_CPU=133000000L -DARDUINO=10819 -DARDUINO_ADAFRUIT_MACROPAD_RP2040 "-DBOARD_NAME=\"ADAFRUIT_MACROPAD_RP2040\"" -DARDUINO_ARCH_RP2040 -Os -DWIFICC=CYW43_COUNTRY_WORLDWIDE "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\cores\rp2040" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\variants\adafruit_macropad2040" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\libraries\Wire\src" "-IC:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master" "-IC:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574_library-master" "C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_build_363902\sketch\sketch_jul11b.ino.cpp" -o nul
"C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-gcc\2.2.0-d04e724/bin/arm-none-eabi-g++" -I "C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_build_363902/core" -c -Werror=return-type -Wno-psabi -DCFG_TUSB_MCU=OPT_MCU_RP2040 -DUSBD_PID=0x8107 -DUSBD_VID=0x239a -DUSBD_MAX_POWER_MA=250 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"MacroPad RP2040\"" -DPICO_CYW43_ARCH_THREADSAFE_BACKGROUND=1 -DCYW43_LWIP=1 -DLWIP_IPV6=0 -DLWIP_IPV4=1 -DLWIP_IGMP=1 -DLWIP_CHECKSUM_CTRL_PER_NETIF=1 "-DARDUINO_VARIANT=\"adafruit_macropad2040\"" -DTARGET_RP2040 -DPICO_FLASH_SIZE_BYTES=8388608 -march=armv6-m -mcpu=cortex-m0plus -mthumb -ffunction-sections -fdata-sections -fno-exceptions -DARM_MATH_CM0_FAMILY -DARM_MATH_CM0_PLUS "-iprefixC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/" "@C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/lib/platform_inc.txt" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/include" -fno-rtti -std=gnu++17 -g -pipe -w -x c++ -E -CC -DF_CPU=133000000L -DARDUINO=10819 -DARDUINO_ADAFRUIT_MACROPAD_RP2040 "-DBOARD_NAME=\"ADAFRUIT_MACROPAD_RP2040\"" -DARDUINO_ARCH_RP2040 -Os -DWIFICC=CYW43_COUNTRY_WORLDWIDE "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\cores\rp2040" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\variants\adafruit_macropad2040" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\libraries\Wire\src" "-IC:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master" "-IC:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574_library-master" "C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\libraries\Wire\src\Wire.cpp" -o nul
"C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-gcc\2.2.0-d04e724/bin/arm-none-eabi-g++" -I "C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_build_363902/core" -c -Werror=return-type -Wno-psabi -DCFG_TUSB_MCU=OPT_MCU_RP2040 -DUSBD_PID=0x8107 -DUSBD_VID=0x239a -DUSBD_MAX_POWER_MA=250 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"MacroPad RP2040\"" -DPICO_CYW43_ARCH_THREADSAFE_BACKGROUND=1 -DCYW43_LWIP=1 -DLWIP_IPV6=0 -DLWIP_IPV4=1 -DLWIP_IGMP=1 -DLWIP_CHECKSUM_CTRL_PER_NETIF=1 "-DARDUINO_VARIANT=\"adafruit_macropad2040\"" -DTARGET_RP2040 -DPICO_FLASH_SIZE_BYTES=8388608 -march=armv6-m -mcpu=cortex-m0plus -mthumb -ffunction-sections -fdata-sections -fno-exceptions -DARM_MATH_CM0_FAMILY -DARM_MATH_CM0_PLUS "-iprefixC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/" "@C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/lib/platform_inc.txt" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/include" -fno-rtti -std=gnu++17 -g -pipe -w -x c++ -E -CC -DF_CPU=133000000L -DARDUINO=10819 -DARDUINO_ADAFRUIT_MACROPAD_RP2040 "-DBOARD_NAME=\"ADAFRUIT_MACROPAD_RP2040\"" -DARDUINO_ARCH_RP2040 -Os -DWIFICC=CYW43_COUNTRY_WORLDWIDE "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\cores\rp2040" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\variants\adafruit_macropad2040" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\libraries\Wire\src" "-IC:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master" "-IC:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574_library-master" "C:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master\PCF8574_Stepper.cpp" -o nul
"C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-gcc\2.2.0-d04e724/bin/arm-none-eabi-g++" -I "C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_build_363902/core" -c -Werror=return-type -Wno-psabi -DCFG_TUSB_MCU=OPT_MCU_RP2040 -DUSBD_PID=0x8107 -DUSBD_VID=0x239a -DUSBD_MAX_POWER_MA=250 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"MacroPad RP2040\"" -DPICO_CYW43_ARCH_THREADSAFE_BACKGROUND=1 -DCYW43_LWIP=1 -DLWIP_IPV6=0 -DLWIP_IPV4=1 -DLWIP_IGMP=1 -DLWIP_CHECKSUM_CTRL_PER_NETIF=1 "-DARDUINO_VARIANT=\"adafruit_macropad2040\"" -DTARGET_RP2040 -DPICO_FLASH_SIZE_BYTES=8388608 -march=armv6-m -mcpu=cortex-m0plus -mthumb -ffunction-sections -fdata-sections -fno-exceptions -DARM_MATH_CM0_FAMILY -DARM_MATH_CM0_PLUS "-iprefixC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/" "@C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/lib/platform_inc.txt" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/include" -fno-rtti -std=gnu++17 -g -pipe -w -x c++ -E -CC -DF_CPU=133000000L -DARDUINO=10819 -DARDUINO_ADAFRUIT_MACROPAD_RP2040 "-DBOARD_NAME=\"ADAFRUIT_MACROPAD_RP2040\"" -DARDUINO_ARCH_RP2040 -Os -DWIFICC=CYW43_COUNTRY_WORLDWIDE "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\cores\rp2040" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\variants\adafruit_macropad2040" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\libraries\Wire\src" "-IC:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master" "-IC:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574_library-master" "C:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574_library-master\PCF8574.cpp" -o nul
Generating function prototypes...
"C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-gcc\2.2.0-d04e724/bin/arm-none-eabi-g++" -I "C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_build_363902/core" -c -Werror=return-type -Wno-psabi -DCFG_TUSB_MCU=OPT_MCU_RP2040 -DUSBD_PID=0x8107 -DUSBD_VID=0x239a -DUSBD_MAX_POWER_MA=250 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"MacroPad RP2040\"" -DPICO_CYW43_ARCH_THREADSAFE_BACKGROUND=1 -DCYW43_LWIP=1 -DLWIP_IPV6=0 -DLWIP_IPV4=1 -DLWIP_IGMP=1 -DLWIP_CHECKSUM_CTRL_PER_NETIF=1 "-DARDUINO_VARIANT=\"adafruit_macropad2040\"" -DTARGET_RP2040 -DPICO_FLASH_SIZE_BYTES=8388608 -march=armv6-m -mcpu=cortex-m0plus -mthumb -ffunction-sections -fdata-sections -fno-exceptions -DARM_MATH_CM0_FAMILY -DARM_MATH_CM0_PLUS "-iprefixC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/" "@C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/lib/platform_inc.txt" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/include" -fno-rtti -std=gnu++17 -g -pipe -w -x c++ -E -CC -DF_CPU=133000000L -DARDUINO=10819 -DARDUINO_ADAFRUIT_MACROPAD_RP2040 "-DBOARD_NAME=\"ADAFRUIT_MACROPAD_RP2040\"" -DARDUINO_ARCH_RP2040 -Os -DWIFICC=CYW43_COUNTRY_WORLDWIDE "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\cores\rp2040" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\variants\adafruit_macropad2040" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\libraries\Wire\src" "-IC:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master" "-IC:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574_library-master" "C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_build_363902\sketch\sketch_jul11b.ino.cpp" -o "C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_build_363902\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_build_363902\preproc\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-python3\1.0.1-base-3a57aed/python3" -I "C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/tools/signing.py" --mode header --publickey "C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_modified_sketch_260954/public.key" --out "C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_build_363902/core/Updater_Signing.h"
"C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-gcc\2.2.0-d04e724/bin/arm-none-eabi-g++" -I "C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_build_363902/core" -c -Wall -Wextra -Werror=return-type -Wno-ignored-qualifiers -Wno-psabi -DCFG_TUSB_MCU=OPT_MCU_RP2040 -DUSBD_PID=0x8107 -DUSBD_VID=0x239a -DUSBD_MAX_POWER_MA=250 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"MacroPad RP2040\"" -DPICO_CYW43_ARCH_THREADSAFE_BACKGROUND=1 -DCYW43_LWIP=1 -DLWIP_IPV6=0 -DLWIP_IPV4=1 -DLWIP_IGMP=1 -DLWIP_CHECKSUM_CTRL_PER_NETIF=1 "-DARDUINO_VARIANT=\"adafruit_macropad2040\"" -DTARGET_RP2040 -DPICO_FLASH_SIZE_BYTES=8388608 -march=armv6-m -mcpu=cortex-m0plus -mthumb -ffunction-sections -fdata-sections -fno-exceptions -DARM_MATH_CM0_FAMILY -DARM_MATH_CM0_PLUS -MMD "-iprefixC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/" "@C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/lib/platform_inc.txt" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/include" -fno-rtti -std=gnu++17 -g -pipe -DF_CPU=133000000L -DARDUINO=10819 -DARDUINO_ADAFRUIT_MACROPAD_RP2040 "-DBOARD_NAME=\"ADAFRUIT_MACROPAD_RP2040\"" -DARDUINO_ARCH_RP2040 -Os -DWIFICC=CYW43_COUNTRY_WORLDWIDE "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\cores\rp2040" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\variants\adafruit_macropad2040" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\libraries\Wire\src" "-IC:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master" "-IC:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574_library-master" "C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_build_363902\sketch\sketch_jul11b.ino.cpp" -o "C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_build_363902\sketch\sketch_jul11b.ino.cpp.o"
In file included from C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_modified_sketch_260954\sketch_jul11b.ino:2:
C:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master/PCF8574_Stepper.h:40:92: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]
40 | StepperMotor(PCF8574 &stepperExpander, int stepsPerRev, int pin1, int pin2, int pin3 = NULL, int pin4 = NULL);
| ^~~~
C:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master/PCF8574_Stepper.h:40:109: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]
40 | StepperMotor(PCF8574 &stepperExpander, int stepsPerRev, int pin1, int pin2, int pin3 = NULL, int pin4 = NULL);
| ^~~~
Compiling libraries...
Compiling library "Wire"
"C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-gcc\2.2.0-d04e724/bin/arm-none-eabi-g++" -I "C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_build_363902/core" -c -Wall -Wextra -Werror=return-type -Wno-ignored-qualifiers -Wno-psabi -DCFG_TUSB_MCU=OPT_MCU_RP2040 -DUSBD_PID=0x8107 -DUSBD_VID=0x239a -DUSBD_MAX_POWER_MA=250 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"MacroPad RP2040\"" -DPICO_CYW43_ARCH_THREADSAFE_BACKGROUND=1 -DCYW43_LWIP=1 -DLWIP_IPV6=0 -DLWIP_IPV4=1 -DLWIP_IGMP=1 -DLWIP_CHECKSUM_CTRL_PER_NETIF=1 "-DARDUINO_VARIANT=\"adafruit_macropad2040\"" -DTARGET_RP2040 -DPICO_FLASH_SIZE_BYTES=8388608 -march=armv6-m -mcpu=cortex-m0plus -mthumb -ffunction-sections -fdata-sections -fno-exceptions -DARM_MATH_CM0_FAMILY -DARM_MATH_CM0_PLUS -MMD "-iprefixC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/" "@C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/lib/platform_inc.txt" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/include" -fno-rtti -std=gnu++17 -g -pipe -DF_CPU=133000000L -DARDUINO=10819 -DARDUINO_ADAFRUIT_MACROPAD_RP2040 "-DBOARD_NAME=\"ADAFRUIT_MACROPAD_RP2040\"" -DARDUINO_ARCH_RP2040 -Os -DWIFICC=CYW43_COUNTRY_WORLDWIDE "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\cores\rp2040" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\variants\adafruit_macropad2040" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\libraries\Wire\src" "-IC:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master" "-IC:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574_library-master" "C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\libraries\Wire\src\Wire.cpp" -o "C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_build_363902\libraries\Wire\Wire.cpp.o"
"C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-gcc\2.2.0-d04e724/bin/arm-none-eabi-ar" rcs "C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_build_363902\libraries\Wire\Wire.a" "C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_build_363902\libraries\Wire\Wire.cpp.o"
Compiling library "PCF8574-Stepper-Motor-Control-master"
"C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\tools\pqt-gcc\2.2.0-d04e724/bin/arm-none-eabi-g++" -I "C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_build_363902/core" -c -Wall -Wextra -Werror=return-type -Wno-ignored-qualifiers -Wno-psabi -DCFG_TUSB_MCU=OPT_MCU_RP2040 -DUSBD_PID=0x8107 -DUSBD_VID=0x239a -DUSBD_MAX_POWER_MA=250 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"MacroPad RP2040\"" -DPICO_CYW43_ARCH_THREADSAFE_BACKGROUND=1 -DCYW43_LWIP=1 -DLWIP_IPV6=0 -DLWIP_IPV4=1 -DLWIP_IGMP=1 -DLWIP_CHECKSUM_CTRL_PER_NETIF=1 "-DARDUINO_VARIANT=\"adafruit_macropad2040\"" -DTARGET_RP2040 -DPICO_FLASH_SIZE_BYTES=8388608 -march=armv6-m -mcpu=cortex-m0plus -mthumb -ffunction-sections -fdata-sections -fno-exceptions -DARM_MATH_CM0_FAMILY -DARM_MATH_CM0_PLUS -MMD "-iprefixC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/" "@C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/lib/platform_inc.txt" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3/include" -fno-rtti -std=gnu++17 -g -pipe -DF_CPU=133000000L -DARDUINO=10819 -DARDUINO_ADAFRUIT_MACROPAD_RP2040 "-DBOARD_NAME=\"ADAFRUIT_MACROPAD_RP2040\"" -DARDUINO_ARCH_RP2040 -Os -DWIFICC=CYW43_COUNTRY_WORLDWIDE "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\cores\rp2040" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\variants\adafruit_macropad2040" "-IC:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\libraries\Wire\src" "-IC:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master" "-IC:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574_library-master" "C:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master\PCF8574_Stepper.cpp" -o "C:\Users\xxxxxxx~1.XXX\AppData\Local\Temp\arduino_build_363902\libraries\PCF8574-Stepper-Motor-Control-master\PCF8574_Stepper.cpp.o"
In file included from C:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master\PCF8574_Stepper.cpp:7:
C:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master\PCF8574_Stepper.h:40:92: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]
40 | StepperMotor(PCF8574 &stepperExpander, int stepsPerRev, int pin1, int pin2, int pin3 = NULL, int pin4 = NULL);
| ^~~~
C:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master\PCF8574_Stepper.h:40:109: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]
40 | StepperMotor(PCF8574 &stepperExpander, int stepsPerRev, int pin1, int pin2, int pin3 = NULL, int pin4 = NULL);
| ^~~~
C:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master\PCF8574_Stepper.cpp:13:122: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]
13 | StepperMotor::StepperMotor(PCF8574 &stepperExpander,int stepsPerRev, int pin1, int pin2, int pin3 = NULL, int pin4 = NULL){
| ^
C:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master\PCF8574_Stepper.cpp:13:122: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]
C:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master\PCF8574_Stepper.cpp:13:1: error: default argument given for parameter 5 of 'StepperMotor::StepperMotor(PCF8574&, int, int, int, int, int)' [-fpermissive]
13 | StepperMotor::StepperMotor(PCF8574 &stepperExpander,int stepsPerRev, int pin1, int pin2, int pin3 = NULL, int pin4 = NULL){
| ^~~~~~~~~~~~
C:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master\PCF8574_Stepper.h:40:5: note: previous specification in 'StepperMotor::StepperMotor(PCF8574&, int, int, int, int, int)' here
40 | StepperMotor(PCF8574 &stepperExpander, int stepsPerRev, int pin1, int pin2, int pin3 = NULL, int pin4 = NULL);
| ^~~~~~~~~~~~
C:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master\PCF8574_Stepper.cpp:13:1: error: default argument given for parameter 6 of 'StepperMotor::StepperMotor(PCF8574&, int, int, int, int, int)' [-fpermissive]
13 | StepperMotor::StepperMotor(PCF8574 &stepperExpander,int stepsPerRev, int pin1, int pin2, int pin3 = NULL, int pin4 = NULL){
| ^~~~~~~~~~~~
C:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master\PCF8574_Stepper.h:40:5: note: previous specification in 'StepperMotor::StepperMotor(PCF8574&, int, int, int, int, int)' here
40 | StepperMotor(PCF8574 &stepperExpander, int stepsPerRev, int pin1, int pin2, int pin3 = NULL, int pin4 = NULL);
| ^~~~~~~~~~~~
C:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master\PCF8574_Stepper.cpp: In constructor 'StepperMotor::StepperMotor(PCF8574&, int, int, int, int, int)':
C:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master\PCF8574_Stepper.cpp:13:1: error: uninitialized reference member in 'class PCF8574&' [-fpermissive]
13 | StepperMotor::StepperMotor(PCF8574 &stepperExpander,int stepsPerRev, int pin1, int pin2, int pin3 = NULL, int pin4 = NULL){
| ^~~~~~~~~~~~
C:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master\PCF8574_Stepper.h:36:14: note: 'PCF8574& StepperMotor::stepperExpander' should be initialized
36 | PCF8574 &stepperExpander;
| ^~~~~~~~~~~~~~~
C:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master\PCF8574_Stepper.cpp:22:28: warning: NULL used in arithmetic [-Wpointer-arith]
22 | this->twoWire = (pin3 == NULL || pin4 == NULL);
| ^~~~
C:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master\PCF8574_Stepper.cpp:22:44: warning: NULL used in arithmetic [-Wpointer-arith]
22 | this->twoWire = (pin3 == NULL || pin4 == NULL);
| ^~~~
Using library Wire at version 1.0 in folder: C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\libraries\Wire
Using library PCF8574-Stepper-Motor-Control-master in folder: C:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574-Stepper-Motor-Control-master (legacy)
Using library PCF8574_library-master at version 2.3.7 in folder: C:\Users\xxxxxxx\OneDrive - xxxxxxx Oilfield\Documents\Arduino\libraries\PCF8574_library-master
exit status 1
Error compiling for board Adafruit MacroPad RP2040.
This is an issue where Arduino supports NULL values but Adafruit does not.
You could change the code so that pin3 and pin4 are set to -1 in two-wire control mode and change the if statements to reflect this.
Below are some examples on parts of the code that should be changed
class StepperMotor {
private:
PCF8574& stepperExpander;
int stepsPerRev;
int pin1, pin2, pin3, pin4;
bool twoWire;
int currentStep;
public:
StepperMotor(PCF8574& stepperExpander, int stepsPerRev, int pin1, int pin2, int pin3 = -1, int pin4 = -1); CHANGE HERE
void step(int steps);
void setSpeed(long whatSpeed);
};
and
this->twoWire = (pin3 == -1 || pin4 == -1);
Any chance this can be made to compile for board Adafruit MacroPad RP2040? i get this error "Error compiling for board Adafruit MacroPad RP2040"