Open aurelien-fr opened 1 year ago
Hello !
You can try test this PR by installing the Arduino CLI, getting the patch and compile with the needed compilation option.
The Arduino CLI must be installed because compiler options shall be added, which cannot be done with the Arduino IDE :
sudo curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sudo BINDIR=/usr/local/bin sh
# Create the configuration file
arduino-cli config init
Add the following line in the configuration file arduino-cli.yaml (should be in ~/.arduino15/) :
board_manager:
additional_urls:
- https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json
library:
enable_unsafe_install: true
Then :
# Then update the arduino cli core
arduino-cli core update-index
# Install the packages for Seeeduino
arduino-cli core install Seeeduino:nrf52
# Also install Adafruit tool for flashing
pip3 install --user adafruit-nrfutil
Then install manually the needed library from Arduino (patched to resolve compilation failures) :
mkdir -p ~/Arduino/libraries
cd ~/Arduino/libraries
git clone ***@***.***:aurelien-fr/Seeed_Arduino_Mic.git
Then go to the folder and build using arduino-cli :
cd ~/your_test_folder_with_ino
arduino-cli compile --fqbn Seeeduino:nrf52:xiaonRF52840Sense --build-property compiler.cpp.extra_flags="-DARDUINO_ARCH_NRF52840" Leanvia_Beacon.ino
Without my patch the compilation fails.
Best regards, Aurélien DHIVER
De : Baozhu Zuo @.> Envoyé : vendredi 3 mars 2023 01:05 À : Seeed-Studio/Seeed_Arduino_Mic @.> Cc : Aurélien @.>; Mention @.> Objet : Re: [Seeed-Studio/Seeed_Arduino_Mic] Update nRF52840 ADC class to new PDM API and remove warnings (PR #6)
@aurelien-frhttps://github.com/aurelien-fr How can I test this PR ?
— Reply to this email directly, view it on GitHubhttps://github.com/Seeed-Studio/Seeed_Arduino_Mic/pull/6#issuecomment-1452750079, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ASDFG65YDBJVWDVBQXLSOSTW2EYU7ANCNFSM6AAAAAAVNMGWXM. You are receiving this because you were mentioned.Message ID: @.***>
@aurelien-fr How can I test this PR ?