├── pics ├── W5100.jpg ├── W5500.jpg ├── ENC28J60.jpg ├── W5500_1.jpg ├── RP2040-Pinout.png ├── ICSP_connector.jpg ├── Portenta_Vision.jpg ├── Basic_Insert_ESP32_S2.png └── MySQL_MariaDB_Generic_v.1.0.2.png ├── .codespellrc ├── .github ├── workflows │ ├── auto-github-actions.yml │ ├── report-size-deltas.yml │ ├── spell-check.yml │ └── check-arduino.yml ├── dependabot.yml ├── ISSUE_TEMPLATE │ ├── feature_request.md │ └── bug_report.md └── stale.yml ├── .gitignore ├── Packages_Patches ├── arduino │ └── hardware │ │ └── mbed_portenta │ │ ├── 2.4.1 │ │ └── portenta_post_install.sh │ │ ├── 2.5.2 │ │ └── portenta_post_install.sh │ │ ├── 2.6.1 │ │ └── portenta_post_install.sh │ │ ├── 2.7.2 │ │ └── portenta_post_install.sh │ │ ├── 2.8.0 │ │ └── portenta_post_install.sh │ │ ├── 3.0.0 │ │ └── portenta_post_install.sh │ │ ├── 3.0.1 │ │ └── portenta_post_install.sh │ │ ├── 3.1.1 │ │ └── portenta_post_install.sh │ │ ├── 3.3.0 │ │ └── portenta_post_install.sh │ │ └── 3.4.1 │ │ └── portenta_post_install.sh ├── adafruit │ └── hardware │ │ └── nrf52 │ │ ├── 0.19.0 │ │ └── variants │ │ │ ├── NINA_B112_ublox │ │ │ ├── pins_arduino.h │ │ │ └── variant.cpp │ │ │ └── NINA_B302_ublox │ │ │ ├── pins_arduino.h │ │ │ └── variant.cpp │ │ ├── 0.20.1 │ │ └── variants │ │ │ ├── NINA_B112_ublox │ │ │ ├── pins_arduino.h │ │ │ └── variant.cpp │ │ │ └── NINA_B302_ublox │ │ │ ├── pins_arduino.h │ │ │ └── variant.cpp │ │ ├── 0.20.5 │ │ └── variants │ │ │ ├── NINA_B112_ublox │ │ │ ├── pins_arduino.h │ │ │ └── variant.cpp │ │ │ └── NINA_B302_ublox │ │ │ ├── pins_arduino.h │ │ │ └── variant.cpp │ │ ├── 0.21.0 │ │ └── variants │ │ │ ├── NINA_B112_ublox │ │ │ ├── pins_arduino.h │ │ │ └── variant.cpp │ │ │ └── NINA_B302_ublox │ │ │ ├── pins_arduino.h │ │ │ └── variant.cpp │ │ ├── 0.22.0 │ │ └── variants │ │ │ ├── NINA_B112_ublox │ │ │ ├── pins_arduino.h │ │ │ └── variant.cpp │ │ │ └── NINA_B302_ublox │ │ │ ├── pins_arduino.h │ │ │ └── variant.cpp │ │ ├── 0.22.1 │ │ └── variants │ │ │ ├── NINA_B112_ublox │ │ │ ├── pins_arduino.h │ │ │ └── variant.cpp │ │ │ └── NINA_B302_ublox │ │ │ ├── pins_arduino.h │ │ │ └── variant.cpp │ │ ├── 0.23.0 │ │ └── variants │ │ │ ├── NINA_B112_ublox │ │ │ ├── pins_arduino.h │ │ │ └── variant.cpp │ │ │ └── NINA_B302_ublox │ │ │ ├── pins_arduino.h │ │ │ └── variant.cpp │ │ ├── 0.24.0 │ │ └── variants │ │ │ ├── NINA_B112_ublox │ │ │ ├── pins_arduino.h │ │ │ └── variant.cpp │ │ │ └── NINA_B302_ublox │ │ │ ├── pins_arduino.h │ │ │ └── variant.cpp │ │ ├── 1.0.0 │ │ └── variants │ │ │ ├── NINA_B112_ublox │ │ │ ├── pins_arduino.h │ │ │ └── variant.cpp │ │ │ ├── NINA_B302_ublox │ │ │ ├── pins_arduino.h │ │ │ └── variant.cpp │ │ │ └── sparkfun_nrf52840_mini │ │ │ └── variant.cpp │ │ ├── 1.1.0 │ │ └── variants │ │ │ ├── NINA_B112_ublox │ │ │ ├── pins_arduino.h │ │ │ └── variant.cpp │ │ │ ├── NINA_B302_ublox │ │ │ ├── pins_arduino.h │ │ │ └── variant.cpp │ │ │ └── sparkfun_nrf52840_mini │ │ │ └── variant.cpp │ │ ├── 1.2.0 │ │ └── variants │ │ │ ├── NINA_B112_ublox │ │ │ ├── pins_arduino.h │ │ │ └── variant.cpp │ │ │ ├── NINA_B302_ublox │ │ │ ├── pins_arduino.h │ │ │ └── variant.cpp │ │ │ └── sparkfun_nrf52840_mini │ │ │ └── variant.cpp │ │ └── 1.3.0 │ │ └── variants │ │ ├── NINA_B112_ublox │ │ ├── pins_arduino.h │ │ └── variant.cpp │ │ ├── NINA_B302_ublox │ │ ├── pins_arduino.h │ │ └── variant.cpp │ │ └── sparkfun_nrf52840_mini │ │ └── variant.cpp └── Seeeduino │ └── hardware │ └── rp2040 │ └── 1.9.3 │ └── variants │ └── rpipico │ └── pins_arduino.h ├── examples ├── WiFi │ ├── multiFileProject_WiFi │ │ ├── multiFileProject.cpp │ │ ├── multiFileProject.h │ │ ├── Credentials.h │ │ └── multiFileProject_WiFi.ino │ ├── Connect_WiFi │ │ └── Credentials.h │ ├── Reboot_WiFi │ │ └── Credentials.h │ ├── Basic_Insert_WiFi │ │ └── Credentials.h │ ├── Basic_Select_WiFi │ │ └── Credentials.h │ ├── Complex_Insert_WiFi │ │ └── Credentials.h │ ├── Complex_Select_WiFi │ │ └── Credentials.h │ ├── Query_Progmem_WiFi │ │ └── Credentials.h │ ├── Query_Results_WiFi │ │ └── Credentials.h │ ├── Basic_Insert_ESP │ │ └── Credentials.h │ ├── Connect_Disconnect_WiFi │ │ └── Credentials.h │ └── Connect_Default_Database_WiFi │ │ └── Credentials.h ├── Ethernet │ └── multiFileProject_Ethernet │ │ ├── multiFileProject.cpp │ │ └── multiFileProject.h ├── WiFiNINA │ ├── multiFileProject_WiFiNINA │ │ ├── multiFileProject.cpp │ │ ├── multiFileProject.h │ │ ├── Credentials.h │ │ └── multiFileProject_WiFiNINA.ino │ ├── Connect_WiFiNINA │ │ └── Credentials.h │ ├── Reboot_WiFiNINA │ │ └── Credentials.h │ ├── Basic_Insert_WiFiNINA │ │ └── Credentials.h │ ├── Basic_Select_WiFiNINA │ │ └── Credentials.h │ ├── Complex_Insert_WiFiNINA │ │ └── Credentials.h │ ├── Complex_Select_WiFiNINA │ │ └── Credentials.h │ ├── Query_Progmem_WiFiNINA │ │ └── Credentials.h │ ├── Query_Results_WiFiNINA │ │ └── Credentials.h │ ├── Connect_Disconnect_WiFiNINA │ │ └── Credentials.h │ └── Connect_Default_Database_WiFiNINA │ │ └── Credentials.h ├── QNEthernet │ └── multiFileProject_QNEthernet │ │ ├── multiFileProject.cpp │ │ ├── multiFileProject.h │ │ └── multiFileProject_QNEthernet.ino ├── WT32_ETH01 │ └── multiFileProject_WT32_ETH01 │ │ ├── multiFileProject.cpp │ │ ├── multiFileProject.h │ │ └── multiFileProject_WT32_ETH01.ino ├── NativeEthernet │ └── multiFileProject_NativeEthernet │ │ ├── multiFileProject.cpp │ │ ├── multiFileProject.h │ │ └── multiFileProject_NativeEthernet.ino └── Portenta_H7 │ ├── WiFi │ ├── multiFileProject_Portenta_H7_WiFi │ │ ├── multiFileProject.cpp │ │ ├── multiFileProject.h │ │ ├── Credentials.h │ │ ├── defines.h │ │ └── multiFileProject_Portenta_H7_WiFi.ino │ ├── Connect_WiFi │ │ ├── Credentials.h │ │ └── defines.h │ ├── Reboot_WiFi │ │ ├── Credentials.h │ │ └── defines.h │ ├── Basic_Insert_WiFi │ │ ├── Credentials.h │ │ └── defines.h │ ├── Basic_Select_WiFi │ │ ├── Credentials.h │ │ └── defines.h │ ├── Complex_Insert_WiFi │ │ ├── Credentials.h │ │ └── defines.h │ ├── Complex_Select_WiFi │ │ ├── Credentials.h │ │ └── defines.h │ ├── Connect_Disconnect_WiFi │ │ ├── Credentials.h │ │ └── defines.h │ └── Connect_Default_Database_WiFi │ │ ├── Credentials.h │ │ └── defines.h │ └── Ethernet │ └── multiFileProject_Portenta_H7_Ethernet │ ├── multiFileProject.cpp │ ├── multiFileProject.h │ └── multiFileProject_Portenta_H7_Ethernet.ino ├── LICENSE ├── LibraryPatches └── esp32 │ └── cores │ └── esp32 │ └── Server.h ├── library.properties ├── CONTRIBUTING.md └── src ├── MySQL_Generic.hpp └── MySQL_Generic_WiFiNINA.h /pics/W5100.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khoih-prog/MySQL_MariaDB_Generic/HEAD/pics/W5100.jpg -------------------------------------------------------------------------------- /pics/W5500.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khoih-prog/MySQL_MariaDB_Generic/HEAD/pics/W5500.jpg -------------------------------------------------------------------------------- /pics/ENC28J60.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khoih-prog/MySQL_MariaDB_Generic/HEAD/pics/ENC28J60.jpg -------------------------------------------------------------------------------- /pics/W5500_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khoih-prog/MySQL_MariaDB_Generic/HEAD/pics/W5500_1.jpg -------------------------------------------------------------------------------- /pics/RP2040-Pinout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khoih-prog/MySQL_MariaDB_Generic/HEAD/pics/RP2040-Pinout.png -------------------------------------------------------------------------------- /pics/ICSP_connector.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khoih-prog/MySQL_MariaDB_Generic/HEAD/pics/ICSP_connector.jpg -------------------------------------------------------------------------------- /pics/Portenta_Vision.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khoih-prog/MySQL_MariaDB_Generic/HEAD/pics/Portenta_Vision.jpg -------------------------------------------------------------------------------- /pics/Basic_Insert_ESP32_S2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khoih-prog/MySQL_MariaDB_Generic/HEAD/pics/Basic_Insert_ESP32_S2.png -------------------------------------------------------------------------------- /pics/MySQL_MariaDB_Generic_v.1.0.2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khoih-prog/MySQL_MariaDB_Generic/HEAD/pics/MySQL_MariaDB_Generic_v.1.0.2.png -------------------------------------------------------------------------------- /.codespellrc: -------------------------------------------------------------------------------- 1 | # See: https://github.com/codespell-project/codespell#using-a-config-file 2 | [codespell] 3 | # In the event of a false positive, add the problematic word, in all lowercase, to a comma-separated list here: 4 | ignore-words-list = , 5 | check-filenames = 6 | check-hidden = 7 | skip = ./.git,./src,./examples,./Packages_Patches,./LibraryPatches 8 | -------------------------------------------------------------------------------- /.github/workflows/auto-github-actions.yml: -------------------------------------------------------------------------------- 1 | name: auto-github-actions 2 | on: [push] 3 | jobs: 4 | check-bats-version: 5 | runs-on: ubuntu-latest 6 | steps: 7 | - uses: actions/checkout@v3 8 | - uses: actions/setup-node@v3 9 | with: 10 | node-version: '14' 11 | - run: npm install -g bats 12 | - run: bats -v 13 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Compiled Object files 5 | *.slo 6 | *.lo 7 | *.o 8 | *.obj 9 | 10 | # Precompiled Headers 11 | *.gch 12 | *.pch 13 | 14 | # Compiled Dynamic libraries 15 | *.so 16 | *.dylib 17 | *.dll 18 | 19 | # Fortran module files 20 | *.mod 21 | *.smod 22 | 23 | # Compiled Static libraries 24 | *.lai 25 | *.la 26 | *.a 27 | *.lib 28 | 29 | # Executables 30 | *.exe 31 | *.out 32 | *.app 33 | -------------------------------------------------------------------------------- /.github/workflows/report-size-deltas.yml: -------------------------------------------------------------------------------- 1 | name: Report Size Deltas 2 | 3 | on: 4 | schedule: 5 | - cron: '*/5 * * * *' 6 | 7 | jobs: 8 | report: 9 | runs-on: ubuntu-latest 10 | 11 | steps: 12 | - name: Comment size deltas reports to PRs 13 | uses: arduino/report-size-deltas@v1 14 | with: 15 | # The name of the workflow artifact created by the "Compile Examples" workflow 16 | sketches-reports-source: sketches-reports 17 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # See: https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates#about-the-dependabotyml-file 2 | version: 2 3 | 4 | updates: 5 | # Configure check for outdated GitHub Actions actions in workflows. 6 | # See: https://docs.github.com/en/github/administering-a-repository/keeping-your-actions-up-to-date-with-dependabot 7 | - package-ecosystem: github-actions 8 | directory: / # Check the repository's workflows under /.github/workflows/ 9 | schedule: 10 | interval: daily 11 | -------------------------------------------------------------------------------- /.github/workflows/spell-check.yml: -------------------------------------------------------------------------------- 1 | name: Spell Check 2 | 3 | on: 4 | pull_request: 5 | push: 6 | schedule: 7 | # run every Tuesday at 3 AM UTC 8 | - cron: "0 3 * * 2" 9 | workflow_dispatch: 10 | repository_dispatch: 11 | 12 | jobs: 13 | spellcheck: 14 | runs-on: ubuntu-latest 15 | 16 | steps: 17 | - name: Checkout 18 | uses: actions/checkout@v3 19 | 20 | # See: https://github.com/codespell-project/actions-codespell/blob/master/README.md 21 | - name: Spell check 22 | uses: codespell-project/actions-codespell@master 23 | -------------------------------------------------------------------------------- /Packages_Patches/arduino/hardware/mbed_portenta/2.4.1/portenta_post_install.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | portenta_h7_rules () { 4 | echo "" 5 | echo "# Portenta H7 bootloader mode UDEV rules" 6 | echo "" 7 | cat < /etc/udev/rules.d/49-portenta_h7.rules 18 | 19 | # reload udev rules 20 | echo "Reload rules..." 21 | udevadm trigger 22 | udevadm control --reload-rules 23 | -------------------------------------------------------------------------------- /Packages_Patches/arduino/hardware/mbed_portenta/2.5.2/portenta_post_install.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | portenta_h7_rules () { 4 | echo "" 5 | echo "# Portenta H7 bootloader mode UDEV rules" 6 | echo "" 7 | cat < /etc/udev/rules.d/49-portenta_h7.rules 18 | 19 | # reload udev rules 20 | echo "Reload rules..." 21 | udevadm trigger 22 | udevadm control --reload-rules 23 | -------------------------------------------------------------------------------- /Packages_Patches/arduino/hardware/mbed_portenta/2.6.1/portenta_post_install.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | portenta_h7_rules () { 4 | echo "" 5 | echo "# Portenta H7 bootloader mode UDEV rules" 6 | echo "" 7 | cat < /etc/udev/rules.d/49-portenta_h7.rules 18 | 19 | # reload udev rules 20 | echo "Reload rules..." 21 | udevadm trigger 22 | udevadm control --reload-rules 23 | -------------------------------------------------------------------------------- /Packages_Patches/arduino/hardware/mbed_portenta/2.7.2/portenta_post_install.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | portenta_h7_rules () { 4 | echo "" 5 | echo "# Portenta H7 bootloader mode UDEV rules" 6 | echo "" 7 | cat < /etc/udev/rules.d/49-portenta_h7.rules 18 | 19 | # reload udev rules 20 | echo "Reload rules..." 21 | udevadm trigger 22 | udevadm control --reload-rules 23 | -------------------------------------------------------------------------------- /Packages_Patches/arduino/hardware/mbed_portenta/2.8.0/portenta_post_install.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | portenta_h7_rules () { 4 | echo "" 5 | echo "# Portenta H7 bootloader mode UDEV rules" 6 | echo "" 7 | cat < /etc/udev/rules.d/49-portenta_h7.rules 18 | 19 | # reload udev rules 20 | echo "Reload rules..." 21 | udevadm trigger 22 | udevadm control --reload-rules 23 | -------------------------------------------------------------------------------- /Packages_Patches/arduino/hardware/mbed_portenta/3.0.0/portenta_post_install.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | portenta_h7_rules () { 4 | echo "" 5 | echo "# Portenta H7 bootloader mode UDEV rules" 6 | echo "" 7 | cat < /etc/udev/rules.d/49-portenta_h7.rules 18 | 19 | # reload udev rules 20 | echo "Reload rules..." 21 | udevadm trigger 22 | udevadm control --reload-rules 23 | -------------------------------------------------------------------------------- /Packages_Patches/arduino/hardware/mbed_portenta/3.0.1/portenta_post_install.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | portenta_h7_rules () { 4 | echo "" 5 | echo "# Portenta H7 bootloader mode UDEV rules" 6 | echo "" 7 | cat < /etc/udev/rules.d/49-portenta_h7.rules 18 | 19 | # reload udev rules 20 | echo "Reload rules..." 21 | udevadm trigger 22 | udevadm control --reload-rules 23 | -------------------------------------------------------------------------------- /Packages_Patches/arduino/hardware/mbed_portenta/3.1.1/portenta_post_install.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | portenta_h7_rules () { 4 | echo "" 5 | echo "# Portenta H7 bootloader mode UDEV rules" 6 | echo "" 7 | cat < /etc/udev/rules.d/49-portenta_h7.rules 18 | 19 | # reload udev rules 20 | echo "Reload rules..." 21 | udevadm trigger 22 | udevadm control --reload-rules 23 | -------------------------------------------------------------------------------- /Packages_Patches/arduino/hardware/mbed_portenta/3.3.0/portenta_post_install.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | portenta_h7_rules () { 4 | echo "" 5 | echo "# Portenta H7 bootloader mode UDEV rules" 6 | echo "" 7 | cat < /etc/udev/rules.d/49-portenta_h7.rules 18 | 19 | # reload udev rules 20 | echo "Reload rules..." 21 | udevadm trigger 22 | udevadm control --reload-rules 23 | -------------------------------------------------------------------------------- /Packages_Patches/arduino/hardware/mbed_portenta/3.4.1/portenta_post_install.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | portenta_h7_rules () { 4 | echo "" 5 | echo "# Portenta H7 bootloader mode UDEV rules" 6 | echo "" 7 | cat < /etc/udev/rules.d/49-portenta_h7.rules 18 | 19 | # reload udev rules 20 | echo "Reload rules..." 21 | udevadm trigger 22 | udevadm control --reload-rules 23 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.github/workflows/check-arduino.yml: -------------------------------------------------------------------------------- 1 | name: Check Arduino 2 | 3 | # See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows 4 | on: 5 | push: 6 | pull_request: 7 | schedule: 8 | # Run every Tuesday at 8 AM UTC to catch breakage caused by new rules added to Arduino Lint. 9 | - cron: "0 8 * * TUE" 10 | workflow_dispatch: 11 | repository_dispatch: 12 | 13 | jobs: 14 | lint: 15 | runs-on: ubuntu-latest 16 | 17 | steps: 18 | - name: Checkout repository 19 | uses: actions/checkout@v3 20 | 21 | - name: Arduino Lint 22 | uses: arduino/arduino-lint-action@v1 23 | with: 24 | compliance: specification 25 | library-manager: update 26 | # Always use this setting for official repositories. Remove for 3rd party projects. 27 | official: true 28 | project-type: library 29 | -------------------------------------------------------------------------------- /.github/stale.yml: -------------------------------------------------------------------------------- 1 | # Configuration for probot-stale - https://github.com/probot/stale 2 | 3 | daysUntilStale: 60 4 | daysUntilClose: 14 5 | limitPerRun: 30 6 | staleLabel: stale 7 | exemptLabels: 8 | - pinned 9 | - security 10 | - "to be implemented" 11 | - "for reference" 12 | - "move to PR" 13 | - "enhancement" 14 | 15 | only: issues 16 | onlyLabels: [] 17 | exemptProjects: false 18 | exemptMilestones: false 19 | exemptAssignees: false 20 | 21 | markComment: > 22 | [STALE_SET] This issue has been automatically marked as stale because it has not had 23 | recent activity. It will be closed in 14 days if no further activity occurs. Thank you 24 | for your contributions. 25 | 26 | unmarkComment: > 27 | [STALE_CLR] This issue has been removed from the stale queue. Please ensure activity to keep it opening the future. 28 | 29 | closeComment: > 30 | [STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions. 31 | 32 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.19.0/variants/NINA_B112_ublox/pins_arduino.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | This library is free software; you can redistribute it and/or 4 | modify it under the terms of the GNU Lesser General Public 5 | License as published by the Free Software Foundation; either 6 | version 2.1 of the License, or (at your option) any later version. 7 | This library is distributed in the hope that it will be useful, 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 | See the GNU Lesser General Public License for more details. 11 | You should have received a copy of the GNU Lesser General Public 12 | License along with this library; if not, write to the Free Software 13 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 14 | */ 15 | 16 | // API compatibility 17 | #include "variant.h" 18 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.19.0/variants/NINA_B302_ublox/pins_arduino.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | This library is free software; you can redistribute it and/or 4 | modify it under the terms of the GNU Lesser General Public 5 | License as published by the Free Software Foundation; either 6 | version 2.1 of the License, or (at your option) any later version. 7 | This library is distributed in the hope that it will be useful, 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 | See the GNU Lesser General Public License for more details. 11 | You should have received a copy of the GNU Lesser General Public 12 | License along with this library; if not, write to the Free Software 13 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 14 | */ 15 | 16 | // API compatibility 17 | #include "variant.h" 18 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.20.1/variants/NINA_B112_ublox/pins_arduino.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | This library is free software; you can redistribute it and/or 4 | modify it under the terms of the GNU Lesser General Public 5 | License as published by the Free Software Foundation; either 6 | version 2.1 of the License, or (at your option) any later version. 7 | This library is distributed in the hope that it will be useful, 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 | See the GNU Lesser General Public License for more details. 11 | You should have received a copy of the GNU Lesser General Public 12 | License along with this library; if not, write to the Free Software 13 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 14 | */ 15 | 16 | // API compatibility 17 | #include "variant.h" 18 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.20.1/variants/NINA_B302_ublox/pins_arduino.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | This library is free software; you can redistribute it and/or 4 | modify it under the terms of the GNU Lesser General Public 5 | License as published by the Free Software Foundation; either 6 | version 2.1 of the License, or (at your option) any later version. 7 | This library is distributed in the hope that it will be useful, 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 | See the GNU Lesser General Public License for more details. 11 | You should have received a copy of the GNU Lesser General Public 12 | License along with this library; if not, write to the Free Software 13 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 14 | */ 15 | 16 | // API compatibility 17 | #include "variant.h" 18 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.20.5/variants/NINA_B112_ublox/pins_arduino.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | This library is free software; you can redistribute it and/or 4 | modify it under the terms of the GNU Lesser General Public 5 | License as published by the Free Software Foundation; either 6 | version 2.1 of the License, or (at your option) any later version. 7 | This library is distributed in the hope that it will be useful, 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 | See the GNU Lesser General Public License for more details. 11 | You should have received a copy of the GNU Lesser General Public 12 | License along with this library; if not, write to the Free Software 13 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 14 | */ 15 | 16 | // API compatibility 17 | #include "variant.h" 18 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.20.5/variants/NINA_B302_ublox/pins_arduino.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | This library is free software; you can redistribute it and/or 4 | modify it under the terms of the GNU Lesser General Public 5 | License as published by the Free Software Foundation; either 6 | version 2.1 of the License, or (at your option) any later version. 7 | This library is distributed in the hope that it will be useful, 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 | See the GNU Lesser General Public License for more details. 11 | You should have received a copy of the GNU Lesser General Public 12 | License along with this library; if not, write to the Free Software 13 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 14 | */ 15 | 16 | // API compatibility 17 | #include "variant.h" 18 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.21.0/variants/NINA_B112_ublox/pins_arduino.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | This library is free software; you can redistribute it and/or 4 | modify it under the terms of the GNU Lesser General Public 5 | License as published by the Free Software Foundation; either 6 | version 2.1 of the License, or (at your option) any later version. 7 | This library is distributed in the hope that it will be useful, 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 | See the GNU Lesser General Public License for more details. 11 | You should have received a copy of the GNU Lesser General Public 12 | License along with this library; if not, write to the Free Software 13 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 14 | */ 15 | 16 | // API compatibility 17 | #include "variant.h" 18 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.21.0/variants/NINA_B302_ublox/pins_arduino.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | This library is free software; you can redistribute it and/or 4 | modify it under the terms of the GNU Lesser General Public 5 | License as published by the Free Software Foundation; either 6 | version 2.1 of the License, or (at your option) any later version. 7 | This library is distributed in the hope that it will be useful, 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 | See the GNU Lesser General Public License for more details. 11 | You should have received a copy of the GNU Lesser General Public 12 | License along with this library; if not, write to the Free Software 13 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 14 | */ 15 | 16 | // API compatibility 17 | #include "variant.h" 18 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.22.0/variants/NINA_B112_ublox/pins_arduino.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | This library is free software; you can redistribute it and/or 4 | modify it under the terms of the GNU Lesser General Public 5 | License as published by the Free Software Foundation; either 6 | version 2.1 of the License, or (at your option) any later version. 7 | This library is distributed in the hope that it will be useful, 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 | See the GNU Lesser General Public License for more details. 11 | You should have received a copy of the GNU Lesser General Public 12 | License along with this library; if not, write to the Free Software 13 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 14 | */ 15 | 16 | // API compatibility 17 | #include "variant.h" 18 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.22.0/variants/NINA_B302_ublox/pins_arduino.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | This library is free software; you can redistribute it and/or 4 | modify it under the terms of the GNU Lesser General Public 5 | License as published by the Free Software Foundation; either 6 | version 2.1 of the License, or (at your option) any later version. 7 | This library is distributed in the hope that it will be useful, 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 | See the GNU Lesser General Public License for more details. 11 | You should have received a copy of the GNU Lesser General Public 12 | License along with this library; if not, write to the Free Software 13 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 14 | */ 15 | 16 | // API compatibility 17 | #include "variant.h" 18 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.22.1/variants/NINA_B112_ublox/pins_arduino.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | This library is free software; you can redistribute it and/or 4 | modify it under the terms of the GNU Lesser General Public 5 | License as published by the Free Software Foundation; either 6 | version 2.1 of the License, or (at your option) any later version. 7 | This library is distributed in the hope that it will be useful, 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 | See the GNU Lesser General Public License for more details. 11 | You should have received a copy of the GNU Lesser General Public 12 | License along with this library; if not, write to the Free Software 13 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 14 | */ 15 | 16 | // API compatibility 17 | #include "variant.h" 18 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.22.1/variants/NINA_B302_ublox/pins_arduino.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | This library is free software; you can redistribute it and/or 4 | modify it under the terms of the GNU Lesser General Public 5 | License as published by the Free Software Foundation; either 6 | version 2.1 of the License, or (at your option) any later version. 7 | This library is distributed in the hope that it will be useful, 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 | See the GNU Lesser General Public License for more details. 11 | You should have received a copy of the GNU Lesser General Public 12 | License along with this library; if not, write to the Free Software 13 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 14 | */ 15 | 16 | // API compatibility 17 | #include "variant.h" 18 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.23.0/variants/NINA_B112_ublox/pins_arduino.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | This library is free software; you can redistribute it and/or 4 | modify it under the terms of the GNU Lesser General Public 5 | License as published by the Free Software Foundation; either 6 | version 2.1 of the License, or (at your option) any later version. 7 | This library is distributed in the hope that it will be useful, 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 | See the GNU Lesser General Public License for more details. 11 | You should have received a copy of the GNU Lesser General Public 12 | License along with this library; if not, write to the Free Software 13 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 14 | */ 15 | 16 | // API compatibility 17 | #include "variant.h" 18 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.23.0/variants/NINA_B302_ublox/pins_arduino.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | This library is free software; you can redistribute it and/or 4 | modify it under the terms of the GNU Lesser General Public 5 | License as published by the Free Software Foundation; either 6 | version 2.1 of the License, or (at your option) any later version. 7 | This library is distributed in the hope that it will be useful, 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 | See the GNU Lesser General Public License for more details. 11 | You should have received a copy of the GNU Lesser General Public 12 | License along with this library; if not, write to the Free Software 13 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 14 | */ 15 | 16 | // API compatibility 17 | #include "variant.h" 18 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.24.0/variants/NINA_B112_ublox/pins_arduino.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | This library is free software; you can redistribute it and/or 4 | modify it under the terms of the GNU Lesser General Public 5 | License as published by the Free Software Foundation; either 6 | version 2.1 of the License, or (at your option) any later version. 7 | This library is distributed in the hope that it will be useful, 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 | See the GNU Lesser General Public License for more details. 11 | You should have received a copy of the GNU Lesser General Public 12 | License along with this library; if not, write to the Free Software 13 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 14 | */ 15 | 16 | // API compatibility 17 | #include "variant.h" 18 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.24.0/variants/NINA_B302_ublox/pins_arduino.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | This library is free software; you can redistribute it and/or 4 | modify it under the terms of the GNU Lesser General Public 5 | License as published by the Free Software Foundation; either 6 | version 2.1 of the License, or (at your option) any later version. 7 | This library is distributed in the hope that it will be useful, 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 | See the GNU Lesser General Public License for more details. 11 | You should have received a copy of the GNU Lesser General Public 12 | License along with this library; if not, write to the Free Software 13 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 14 | */ 15 | 16 | // API compatibility 17 | #include "variant.h" 18 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/1.0.0/variants/NINA_B112_ublox/pins_arduino.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | This library is free software; you can redistribute it and/or 4 | modify it under the terms of the GNU Lesser General Public 5 | License as published by the Free Software Foundation; either 6 | version 2.1 of the License, or (at your option) any later version. 7 | This library is distributed in the hope that it will be useful, 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 | See the GNU Lesser General Public License for more details. 11 | You should have received a copy of the GNU Lesser General Public 12 | License along with this library; if not, write to the Free Software 13 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 14 | */ 15 | 16 | // API compatibility 17 | #include "variant.h" 18 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/1.0.0/variants/NINA_B302_ublox/pins_arduino.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | This library is free software; you can redistribute it and/or 4 | modify it under the terms of the GNU Lesser General Public 5 | License as published by the Free Software Foundation; either 6 | version 2.1 of the License, or (at your option) any later version. 7 | This library is distributed in the hope that it will be useful, 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 | See the GNU Lesser General Public License for more details. 11 | You should have received a copy of the GNU Lesser General Public 12 | License along with this library; if not, write to the Free Software 13 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 14 | */ 15 | 16 | // API compatibility 17 | #include "variant.h" 18 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/1.1.0/variants/NINA_B112_ublox/pins_arduino.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | This library is free software; you can redistribute it and/or 4 | modify it under the terms of the GNU Lesser General Public 5 | License as published by the Free Software Foundation; either 6 | version 2.1 of the License, or (at your option) any later version. 7 | This library is distributed in the hope that it will be useful, 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 | See the GNU Lesser General Public License for more details. 11 | You should have received a copy of the GNU Lesser General Public 12 | License along with this library; if not, write to the Free Software 13 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 14 | */ 15 | 16 | // API compatibility 17 | #include "variant.h" 18 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/1.1.0/variants/NINA_B302_ublox/pins_arduino.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | This library is free software; you can redistribute it and/or 4 | modify it under the terms of the GNU Lesser General Public 5 | License as published by the Free Software Foundation; either 6 | version 2.1 of the License, or (at your option) any later version. 7 | This library is distributed in the hope that it will be useful, 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 | See the GNU Lesser General Public License for more details. 11 | You should have received a copy of the GNU Lesser General Public 12 | License along with this library; if not, write to the Free Software 13 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 14 | */ 15 | 16 | // API compatibility 17 | #include "variant.h" 18 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/1.2.0/variants/NINA_B112_ublox/pins_arduino.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | This library is free software; you can redistribute it and/or 4 | modify it under the terms of the GNU Lesser General Public 5 | License as published by the Free Software Foundation; either 6 | version 2.1 of the License, or (at your option) any later version. 7 | This library is distributed in the hope that it will be useful, 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 | See the GNU Lesser General Public License for more details. 11 | You should have received a copy of the GNU Lesser General Public 12 | License along with this library; if not, write to the Free Software 13 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 14 | */ 15 | 16 | // API compatibility 17 | #include "variant.h" 18 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/1.2.0/variants/NINA_B302_ublox/pins_arduino.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | This library is free software; you can redistribute it and/or 4 | modify it under the terms of the GNU Lesser General Public 5 | License as published by the Free Software Foundation; either 6 | version 2.1 of the License, or (at your option) any later version. 7 | This library is distributed in the hope that it will be useful, 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 | See the GNU Lesser General Public License for more details. 11 | You should have received a copy of the GNU Lesser General Public 12 | License along with this library; if not, write to the Free Software 13 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 14 | */ 15 | 16 | // API compatibility 17 | #include "variant.h" 18 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/1.3.0/variants/NINA_B112_ublox/pins_arduino.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | This library is free software; you can redistribute it and/or 4 | modify it under the terms of the GNU Lesser General Public 5 | License as published by the Free Software Foundation; either 6 | version 2.1 of the License, or (at your option) any later version. 7 | This library is distributed in the hope that it will be useful, 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 | See the GNU Lesser General Public License for more details. 11 | You should have received a copy of the GNU Lesser General Public 12 | License along with this library; if not, write to the Free Software 13 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 14 | */ 15 | 16 | // API compatibility 17 | #include "variant.h" 18 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/1.3.0/variants/NINA_B302_ublox/pins_arduino.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | This library is free software; you can redistribute it and/or 4 | modify it under the terms of the GNU Lesser General Public 5 | License as published by the Free Software Foundation; either 6 | version 2.1 of the License, or (at your option) any later version. 7 | This library is distributed in the hope that it will be useful, 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 | See the GNU Lesser General Public License for more details. 11 | You should have received a copy of the GNU Lesser General Public 12 | License along with this library; if not, write to the Free Software 13 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 14 | */ 15 | 16 | // API compatibility 17 | #include "variant.h" 18 | -------------------------------------------------------------------------------- /examples/WiFi/multiFileProject_WiFi/multiFileProject.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | multiFileProject.cpp 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | *****************************************************************************************************************************/ 14 | 15 | // To demo how to include files in multi-file Projects 16 | 17 | #include "multiFileProject.h" 18 | -------------------------------------------------------------------------------- /examples/Ethernet/multiFileProject_Ethernet/multiFileProject.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | multiFileProject.cpp 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | *****************************************************************************************************************************/ 14 | 15 | // To demo how to include files in multi-file Projects 16 | 17 | #include "multiFileProject.h" 18 | -------------------------------------------------------------------------------- /examples/WiFiNINA/multiFileProject_WiFiNINA/multiFileProject.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | multiFileProject.cpp 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | *****************************************************************************************************************************/ 14 | 15 | // To demo how to include files in multi-file Projects 16 | 17 | #include "multiFileProject.h" 18 | -------------------------------------------------------------------------------- /examples/QNEthernet/multiFileProject_QNEthernet/multiFileProject.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | multiFileProject.cpp 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | *****************************************************************************************************************************/ 14 | 15 | // To demo how to include files in multi-file Projects 16 | 17 | #include "multiFileProject.h" 18 | -------------------------------------------------------------------------------- /examples/WT32_ETH01/multiFileProject_WT32_ETH01/multiFileProject.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | multiFileProject.cpp 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | *****************************************************************************************************************************/ 14 | 15 | // To demo how to include files in multi-file Projects 16 | 17 | #include "multiFileProject.h" 18 | -------------------------------------------------------------------------------- /examples/NativeEthernet/multiFileProject_NativeEthernet/multiFileProject.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | multiFileProject.cpp 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | *****************************************************************************************************************************/ 14 | 15 | // To demo how to include files in multi-file Projects 16 | 17 | #include "multiFileProject.h" 18 | -------------------------------------------------------------------------------- /examples/Portenta_H7/WiFi/multiFileProject_Portenta_H7_WiFi/multiFileProject.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | multiFileProject.cpp 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | *****************************************************************************************************************************/ 14 | 15 | // To demo how to include files in multi-file Projects 16 | 17 | #include "multiFileProject.h" 18 | -------------------------------------------------------------------------------- /examples/Portenta_H7/Ethernet/multiFileProject_Portenta_H7_Ethernet/multiFileProject.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | multiFileProject.cpp 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | *****************************************************************************************************************************/ 14 | 15 | // To demo how to include files in multi-file Projects 16 | 17 | #include "multiFileProject.h" 18 | -------------------------------------------------------------------------------- /examples/WiFi/multiFileProject_WiFi/multiFileProject.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | multiFileProject.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | *****************************************************************************************************************************/ 14 | 15 | // To demo how to include files in multi-file Projects 16 | 17 | #pragma once 18 | 19 | // Can be included as many times as necessary, without `Multiple Definitions` Linker Error 20 | #include "MySQL_Generic.hpp" 21 | -------------------------------------------------------------------------------- /examples/Ethernet/multiFileProject_Ethernet/multiFileProject.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | multiFileProject.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | *****************************************************************************************************************************/ 14 | 15 | // To demo how to include files in multi-file Projects 16 | 17 | #pragma once 18 | 19 | // Can be included as many times as necessary, without `Multiple Definitions` Linker Error 20 | #include "MySQL_Generic.hpp" 21 | -------------------------------------------------------------------------------- /examples/WiFiNINA/multiFileProject_WiFiNINA/multiFileProject.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | multiFileProject.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | *****************************************************************************************************************************/ 14 | 15 | // To demo how to include files in multi-file Projects 16 | 17 | #pragma once 18 | 19 | // Can be included as many times as necessary, without `Multiple Definitions` Linker Error 20 | #include "MySQL_Generic.hpp" 21 | -------------------------------------------------------------------------------- /examples/QNEthernet/multiFileProject_QNEthernet/multiFileProject.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | multiFileProject.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | *****************************************************************************************************************************/ 14 | 15 | // To demo how to include files in multi-file Projects 16 | 17 | #pragma once 18 | 19 | // Can be included as many times as necessary, without `Multiple Definitions` Linker Error 20 | #include "MySQL_Generic.hpp" 21 | -------------------------------------------------------------------------------- /examples/WT32_ETH01/multiFileProject_WT32_ETH01/multiFileProject.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | multiFileProject.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | *****************************************************************************************************************************/ 14 | 15 | // To demo how to include files in multi-file Projects 16 | 17 | #pragma once 18 | 19 | // Can be included as many times as necessary, without `Multiple Definitions` Linker Error 20 | #include "MySQL_Generic.hpp" 21 | -------------------------------------------------------------------------------- /examples/NativeEthernet/multiFileProject_NativeEthernet/multiFileProject.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | multiFileProject.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | *****************************************************************************************************************************/ 14 | 15 | // To demo how to include files in multi-file Projects 16 | 17 | #pragma once 18 | 19 | // Can be included as many times as necessary, without `Multiple Definitions` Linker Error 20 | #include "MySQL_Generic.hpp" 21 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Khoi Hoang 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /examples/Portenta_H7/WiFi/multiFileProject_Portenta_H7_WiFi/multiFileProject.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | multiFileProject.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | *****************************************************************************************************************************/ 14 | 15 | // To demo how to include files in multi-file Projects 16 | 17 | #pragma once 18 | 19 | // Can be included as many times as necessary, without `Multiple Definitions` Linker Error 20 | #include "MySQL_Generic.hpp" 21 | -------------------------------------------------------------------------------- /examples/Portenta_H7/Ethernet/multiFileProject_Portenta_H7_Ethernet/multiFileProject.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | multiFileProject.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | *****************************************************************************************************************************/ 14 | 15 | // To demo how to include files in multi-file Projects 16 | 17 | #pragma once 18 | 19 | // Can be included as many times as necessary, without `Multiple Definitions` Linker Error 20 | #include "MySQL_Generic.hpp" 21 | -------------------------------------------------------------------------------- /examples/WiFi/Connect_WiFi/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "****"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/WiFi/Reboot_WiFi/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "****"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/WiFi/Basic_Insert_WiFi/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "****"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/WiFi/Basic_Select_WiFi/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "****"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/WiFi/Complex_Insert_WiFi/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "****"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/WiFi/Complex_Select_WiFi/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "****"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/WiFi/Query_Progmem_WiFi/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "****"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/WiFi/Query_Results_WiFi/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "****"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/WiFi/Basic_Insert_ESP/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "****"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/WiFi/Connect_Disconnect_WiFi/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "****"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/WiFi/multiFileProject_WiFi/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "****"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/WiFiNINA/Connect_WiFiNINA/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "****"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/WiFiNINA/Reboot_WiFiNINA/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "****"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/Portenta_H7/WiFi/Connect_WiFi/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "your_ssid"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/Portenta_H7/WiFi/Reboot_WiFi/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "your_ssid"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/WiFi/Connect_Default_Database_WiFi/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "****"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/WiFiNINA/Basic_Insert_WiFiNINA/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "****"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/WiFiNINA/Basic_Select_WiFiNINA/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "****"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/WiFiNINA/Complex_Insert_WiFiNINA/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "****"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/WiFiNINA/Complex_Select_WiFiNINA/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "****"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/WiFiNINA/Query_Progmem_WiFiNINA/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "****"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/WiFiNINA/Query_Results_WiFiNINA/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "****"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/Portenta_H7/WiFi/Basic_Insert_WiFi/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "your_ssid"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/Portenta_H7/WiFi/Basic_Select_WiFi/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "your_ssid"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/WiFiNINA/Connect_Disconnect_WiFiNINA/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "****"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/WiFiNINA/multiFileProject_WiFiNINA/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "****"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/Portenta_H7/WiFi/Complex_Insert_WiFi/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "your_ssid"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/Portenta_H7/WiFi/Complex_Select_WiFi/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "your_ssid"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/Portenta_H7/WiFi/Connect_Disconnect_WiFi/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "your_ssid"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/WiFiNINA/Connect_Default_Database_WiFiNINA/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "****"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/Portenta_H7/WiFi/Connect_Default_Database_WiFi/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "your_ssid"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /examples/Portenta_H7/WiFi/multiFileProject_Portenta_H7_WiFi/Credentials.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | Credentials.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef Credentials_h 16 | #define Credentials_h 17 | 18 | char ssid[] = "your_ssid"; // your network SSID (name) 19 | char pass[] = "12345678"; // your network password 20 | 21 | char user[] = "invited-guest"; // MySQL user login username 22 | char password[] = "the-invited-guest"; // MySQL user login password 23 | 24 | #endif //Credentials_h 25 | -------------------------------------------------------------------------------- /LibraryPatches/esp32/cores/esp32/Server.h: -------------------------------------------------------------------------------- 1 | /* 2 | Server.h - Base class that provides Server 3 | Copyright (c) 2011 Adrian McEwen. All right reserved. 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | */ 19 | 20 | #ifndef server_h 21 | #define server_h 22 | 23 | #include "Print.h" 24 | 25 | class Server: public Print 26 | { 27 | public: 28 | // KH, change to fix compiler error for EthernetWebServer 29 | // error: cannot declare field 'EthernetWebServer::_server' to be of abstract type 'EthernetServer' 30 | // virtual void begin(uint16_t port=0) =0; 31 | //virtual void begin() = 0; 32 | void begin() {}; 33 | }; 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /library.properties: -------------------------------------------------------------------------------- 1 | name=MySQL_MariaDB_Generic 2 | version=1.7.2 3 | author=Dr. Charles Bell , Khoi Hoang 4 | maintainer=Khoi Hoang 5 | sentence=Connects to MySQL or MariaDB using ESP8266/ESP32, WT32_ETH01 (ESP32 + LAN8720A), nRF52, SAMD21/SAMD51, STM32F/L/H/G/WB/MP1, Teensy, SAM DUE, Mega, RP2040-based boards, Portenta_H7, etc. with W5x00, ENC28J60 Ethernet, Teensy 4.1 NativeEthernet/QNEthernet, WiFiNINA modules/shields or Portenta_H7 WiFi/Ethernet. W5x00 can use Ethernet_Generic library. ENC28J60 can use either EthernetENC or UIPEthernet Library. 6 | paragraph=You can use this library to connect your Arduino project directly to a MySQL / MariaDB server without using an intermediate computer or a web-based or cloud-based service. Having direct access to a database server means you can store data acquired from your project as well as check values stored in tables on the server. This also means you can setup your own, local MySQL / MariaDB server to store your data further removing the need for Internet connectivity. If that is not an issue, you can still connect to and store data on a MySQL / MariaDB server via your network, Internet, or even in the cloud! Now accepting server hostname, besides IPAddress. Ethernet_Generic library is used as default for W5x00 7 | category=Communication 8 | url=https://github.com/khoih-prog/MySQL_MariaDB_Generic 9 | architectures=* 10 | depends=WiFiNINA_Generic, WebServer_WT32_ETH01, Ethernet_Generic, EthernetENC, UIPEthernet, WiFiEspAT, NativeEthernet, QNEthernet 11 | includes=MySQL_Generic.h, MySQL_Generic.hpp 12 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/1.0.0/variants/sparkfun_nrf52840_mini/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #include "variant.h" 22 | #include "wiring_constants.h" 23 | #include "wiring_digital.h" 24 | #include "nrf.h" 25 | 26 | const uint32_t g_ADigitalPinMap[] = 27 | { 28 | // P0 29 | 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 30 | 8 , 9 , 10, 11, 12, 13, 14, 15, 31 | 16, 17, 18, 19, 20, 21, 22, 23, 32 | 24, 25, 26, 27, 28, 29, 30, 31, 33 | 34 | // P1 35 | 32, 33, 34, 35, 36, 37, 38, 39, 36 | 40, 41, 42, 43, 44, 45, 46, 47, 37 | 48, 49, 50, 51, 52, 53, 54, 55, 38 | 56, 57, 58, 59, 60, 61, 62, 63 39 | }; 40 | void initVariant() 41 | { 42 | // LED1 & LED2 43 | pinMode(PIN_LED1, OUTPUT); 44 | ledOff(PIN_LED1); 45 | 46 | pinMode(PIN_LED2, OUTPUT); 47 | ledOff(PIN_LED2); 48 | } 49 | 50 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/1.1.0/variants/sparkfun_nrf52840_mini/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #include "variant.h" 22 | #include "wiring_constants.h" 23 | #include "wiring_digital.h" 24 | #include "nrf.h" 25 | 26 | const uint32_t g_ADigitalPinMap[] = 27 | { 28 | // P0 29 | 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 30 | 8 , 9 , 10, 11, 12, 13, 14, 15, 31 | 16, 17, 18, 19, 20, 21, 22, 23, 32 | 24, 25, 26, 27, 28, 29, 30, 31, 33 | 34 | // P1 35 | 32, 33, 34, 35, 36, 37, 38, 39, 36 | 40, 41, 42, 43, 44, 45, 46, 47, 37 | 48, 49, 50, 51, 52, 53, 54, 55, 38 | 56, 57, 58, 59, 60, 61, 62, 63 39 | }; 40 | void initVariant() 41 | { 42 | // LED1 & LED2 43 | pinMode(PIN_LED1, OUTPUT); 44 | ledOff(PIN_LED1); 45 | 46 | pinMode(PIN_LED2, OUTPUT); 47 | ledOff(PIN_LED2); 48 | } 49 | 50 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/1.2.0/variants/sparkfun_nrf52840_mini/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #include "variant.h" 22 | #include "wiring_constants.h" 23 | #include "wiring_digital.h" 24 | #include "nrf.h" 25 | 26 | const uint32_t g_ADigitalPinMap[] = 27 | { 28 | // P0 29 | 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 30 | 8 , 9 , 10, 11, 12, 13, 14, 15, 31 | 16, 17, 18, 19, 20, 21, 22, 23, 32 | 24, 25, 26, 27, 28, 29, 30, 31, 33 | 34 | // P1 35 | 32, 33, 34, 35, 36, 37, 38, 39, 36 | 40, 41, 42, 43, 44, 45, 46, 47, 37 | 48, 49, 50, 51, 52, 53, 54, 55, 38 | 56, 57, 58, 59, 60, 61, 62, 63 39 | }; 40 | void initVariant() 41 | { 42 | // LED1 & LED2 43 | pinMode(PIN_LED1, OUTPUT); 44 | ledOff(PIN_LED1); 45 | 46 | pinMode(PIN_LED2, OUTPUT); 47 | ledOff(PIN_LED2); 48 | } 49 | 50 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/1.3.0/variants/sparkfun_nrf52840_mini/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #include "variant.h" 22 | #include "wiring_constants.h" 23 | #include "wiring_digital.h" 24 | #include "nrf.h" 25 | 26 | const uint32_t g_ADigitalPinMap[] = 27 | { 28 | // P0 29 | 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 30 | 8 , 9 , 10, 11, 12, 13, 14, 15, 31 | 16, 17, 18, 19, 20, 21, 22, 23, 32 | 24, 25, 26, 27, 28, 29, 30, 31, 33 | 34 | // P1 35 | 32, 33, 34, 35, 36, 37, 38, 39, 36 | 40, 41, 42, 43, 44, 45, 46, 47, 37 | 48, 49, 50, 51, 52, 53, 54, 55, 38 | 56, 57, 58, 59, 60, 61, 62, 63 39 | }; 40 | void initVariant() 41 | { 42 | // LED1 & LED2 43 | pinMode(PIN_LED1, OUTPUT); 44 | ledOff(PIN_LED1); 45 | 46 | pinMode(PIN_LED2, OUTPUT); 47 | ledOff(PIN_LED2); 48 | } 49 | 50 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | ### Describe the bug 11 | 12 | A clear and concise description of what the bug is. 13 | 14 | ### Steps to Reproduce 15 | 16 | Steps to reproduce the behavior. Including the [MRE](https://stackoverflow.com/help/minimal-reproducible-example) sketches 17 | 18 | ### Expected behavior 19 | 20 | A clear and concise description of what you expected to happen. 21 | 22 | ### Actual behavior 23 | 24 | A clear and concise description of what you expected to happen. 25 | 26 | ### Debug and AT-command log (if applicable) 27 | 28 | A clear and concise description of what you expected to happen. 29 | 30 | ### Screenshots 31 | 32 | If applicable, add screenshots to help explain your problem. 33 | 34 | ### Information 35 | 36 | Please ensure to specify the following: 37 | 38 | * Arduino IDE version (e.g. 1.8.13) or Platform.io version 39 | * `ESP8266`,`ESP32` or `STM32` Core Version (e.g. ESP8266 core v2.7.4, ESP32 v1.0.5 or STM32 v1.9.0) 40 | * Contextual information (e.g. what you were trying to achieve) 41 | * Simplest possible steps to reproduce 42 | * Anything that might be relevant in your opinion, such as: 43 | * Operating system (Windows, Ubuntu, etc.) and the output of `uname -a` 44 | * Network configuration 45 | 46 | ### Example 47 | 48 | ``` 49 | Arduino IDE version: 1.8.13 50 | ESP32 Core Version 1.0.5 51 | OS: Ubuntu 20.04 LTS 52 | Linux xy-Inspiron-3593 5.4.0-66-generic #74-Ubuntu SMP Wed Jan 27 22:54:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux 53 | 54 | Context: 55 | I encountered an endless loop while trying to connect to Local WiFi. 56 | 57 | Steps to reproduce: 58 | 1. ... 59 | 2. ... 60 | 3. ... 61 | 4. ... 62 | ``` 63 | 64 | ### Additional context 65 | 66 | Add any other context about the problem here. 67 | -------------------------------------------------------------------------------- /examples/Portenta_H7/WiFi/Connect_WiFi/defines.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | defines.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef defines_h 16 | #define defines_h 17 | 18 | #define MYSQL_DEBUG_PORT Serial 19 | 20 | // Debug Level from 0 to 4 21 | #define _MYSQL_LOGLEVEL_ 1 22 | 23 | #if ( defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) ) 24 | 25 | #if defined(BOARD_NAME) 26 | #undef BOARD_NAME 27 | #endif 28 | 29 | #if defined(CORE_CM7) 30 | #warning Using Portenta H7 M7 core 31 | #define BOARD_NAME "PORTENTA_H7_M7" 32 | #else 33 | #warning Using Portenta H7 M4 core 34 | #define BOARD_NAME "PORTENTA_H7_M4" 35 | #endif 36 | 37 | #define USE_WIFI_PORTENTA_H7 true 38 | 39 | #define USE_WIFI_NINA false 40 | 41 | // To use the default WiFi library here 42 | #define USE_WIFI_CUSTOM false 43 | 44 | #else 45 | #error This code is intended to run on the Portenta_H7 platform! Please check your Tools->Board setting. 46 | #endif 47 | 48 | #define SHIELD_TYPE "Portenta_H7 WiFi" 49 | 50 | #warning Using Portenta H7 WiFi 51 | 52 | #endif //defines_h 53 | -------------------------------------------------------------------------------- /examples/Portenta_H7/WiFi/Reboot_WiFi/defines.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | defines.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef defines_h 16 | #define defines_h 17 | 18 | #define MYSQL_DEBUG_PORT Serial 19 | 20 | // Debug Level from 0 to 4 21 | #define _MYSQL_LOGLEVEL_ 1 22 | 23 | #if ( defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) ) 24 | 25 | #if defined(BOARD_NAME) 26 | #undef BOARD_NAME 27 | #endif 28 | 29 | #if defined(CORE_CM7) 30 | #warning Using Portenta H7 M7 core 31 | #define BOARD_NAME "PORTENTA_H7_M7" 32 | #else 33 | #warning Using Portenta H7 M4 core 34 | #define BOARD_NAME "PORTENTA_H7_M4" 35 | #endif 36 | 37 | #define USE_WIFI_PORTENTA_H7 true 38 | 39 | #define USE_WIFI_NINA false 40 | 41 | // To use the default WiFi library here 42 | #define USE_WIFI_CUSTOM false 43 | 44 | #else 45 | #error This code is intended to run on the Portenta_H7 platform! Please check your Tools->Board setting. 46 | #endif 47 | 48 | #define SHIELD_TYPE "Portenta_H7 WiFi" 49 | 50 | #warning Using Portenta H7 WiFi 51 | 52 | #endif //defines_h 53 | -------------------------------------------------------------------------------- /examples/Portenta_H7/WiFi/Basic_Insert_WiFi/defines.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | defines.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef defines_h 16 | #define defines_h 17 | 18 | #define MYSQL_DEBUG_PORT Serial 19 | 20 | // Debug Level from 0 to 4 21 | #define _MYSQL_LOGLEVEL_ 1 22 | 23 | #if ( defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) ) 24 | 25 | #if defined(BOARD_NAME) 26 | #undef BOARD_NAME 27 | #endif 28 | 29 | #if defined(CORE_CM7) 30 | #warning Using Portenta H7 M7 core 31 | #define BOARD_NAME "PORTENTA_H7_M7" 32 | #else 33 | #warning Using Portenta H7 M4 core 34 | #define BOARD_NAME "PORTENTA_H7_M4" 35 | #endif 36 | 37 | #define USE_WIFI_PORTENTA_H7 true 38 | 39 | #define USE_WIFI_NINA false 40 | 41 | // To use the default WiFi library here 42 | #define USE_WIFI_CUSTOM false 43 | 44 | #else 45 | #error This code is intended to run on the Portenta_H7 platform! Please check your Tools->Board setting. 46 | #endif 47 | 48 | #define SHIELD_TYPE "Portenta_H7 WiFi" 49 | 50 | #warning Using Portenta H7 WiFi 51 | 52 | #endif //defines_h 53 | -------------------------------------------------------------------------------- /examples/Portenta_H7/WiFi/Basic_Select_WiFi/defines.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | defines.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef defines_h 16 | #define defines_h 17 | 18 | #define MYSQL_DEBUG_PORT Serial 19 | 20 | // Debug Level from 0 to 4 21 | #define _MYSQL_LOGLEVEL_ 1 22 | 23 | #if ( defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) ) 24 | 25 | #if defined(BOARD_NAME) 26 | #undef BOARD_NAME 27 | #endif 28 | 29 | #if defined(CORE_CM7) 30 | #warning Using Portenta H7 M7 core 31 | #define BOARD_NAME "PORTENTA_H7_M7" 32 | #else 33 | #warning Using Portenta H7 M4 core 34 | #define BOARD_NAME "PORTENTA_H7_M4" 35 | #endif 36 | 37 | #define USE_WIFI_PORTENTA_H7 true 38 | 39 | #define USE_WIFI_NINA false 40 | 41 | // To use the default WiFi library here 42 | #define USE_WIFI_CUSTOM false 43 | 44 | #else 45 | #error This code is intended to run on the Portenta_H7 platform! Please check your Tools->Board setting. 46 | #endif 47 | 48 | #define SHIELD_TYPE "Portenta_H7 WiFi" 49 | 50 | #warning Using Portenta H7 WiFi 51 | 52 | #endif //defines_h 53 | -------------------------------------------------------------------------------- /examples/Portenta_H7/WiFi/Complex_Insert_WiFi/defines.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | defines.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef defines_h 16 | #define defines_h 17 | 18 | #define MYSQL_DEBUG_PORT Serial 19 | 20 | // Debug Level from 0 to 4 21 | #define _MYSQL_LOGLEVEL_ 1 22 | 23 | #if ( defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) ) 24 | 25 | #if defined(BOARD_NAME) 26 | #undef BOARD_NAME 27 | #endif 28 | 29 | #if defined(CORE_CM7) 30 | #warning Using Portenta H7 M7 core 31 | #define BOARD_NAME "PORTENTA_H7_M7" 32 | #else 33 | #warning Using Portenta H7 M4 core 34 | #define BOARD_NAME "PORTENTA_H7_M4" 35 | #endif 36 | 37 | #define USE_WIFI_PORTENTA_H7 true 38 | 39 | #define USE_WIFI_NINA false 40 | 41 | // To use the default WiFi library here 42 | #define USE_WIFI_CUSTOM false 43 | 44 | #else 45 | #error This code is intended to run on the Portenta_H7 platform! Please check your Tools->Board setting. 46 | #endif 47 | 48 | #define SHIELD_TYPE "Portenta_H7 WiFi" 49 | 50 | #warning Using Portenta H7 WiFi 51 | 52 | #endif //defines_h 53 | -------------------------------------------------------------------------------- /examples/Portenta_H7/WiFi/Complex_Select_WiFi/defines.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | defines.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef defines_h 16 | #define defines_h 17 | 18 | #define MYSQL_DEBUG_PORT Serial 19 | 20 | // Debug Level from 0 to 4 21 | #define _MYSQL_LOGLEVEL_ 1 22 | 23 | #if ( defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) ) 24 | 25 | #if defined(BOARD_NAME) 26 | #undef BOARD_NAME 27 | #endif 28 | 29 | #if defined(CORE_CM7) 30 | #warning Using Portenta H7 M7 core 31 | #define BOARD_NAME "PORTENTA_H7_M7" 32 | #else 33 | #warning Using Portenta H7 M4 core 34 | #define BOARD_NAME "PORTENTA_H7_M4" 35 | #endif 36 | 37 | #define USE_WIFI_PORTENTA_H7 true 38 | 39 | #define USE_WIFI_NINA false 40 | 41 | // To use the default WiFi library here 42 | #define USE_WIFI_CUSTOM false 43 | 44 | #else 45 | #error This code is intended to run on the Portenta_H7 platform! Please check your Tools->Board setting. 46 | #endif 47 | 48 | #define SHIELD_TYPE "Portenta_H7 WiFi" 49 | 50 | #warning Using Portenta H7 WiFi 51 | 52 | #endif //defines_h 53 | -------------------------------------------------------------------------------- /examples/Portenta_H7/WiFi/Connect_Disconnect_WiFi/defines.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | defines.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef defines_h 16 | #define defines_h 17 | 18 | #define MYSQL_DEBUG_PORT Serial 19 | 20 | // Debug Level from 0 to 4 21 | #define _MYSQL_LOGLEVEL_ 1 22 | 23 | #if ( defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) ) 24 | 25 | #if defined(BOARD_NAME) 26 | #undef BOARD_NAME 27 | #endif 28 | 29 | #if defined(CORE_CM7) 30 | #warning Using Portenta H7 M7 core 31 | #define BOARD_NAME "PORTENTA_H7_M7" 32 | #else 33 | #warning Using Portenta H7 M4 core 34 | #define BOARD_NAME "PORTENTA_H7_M4" 35 | #endif 36 | 37 | #define USE_WIFI_PORTENTA_H7 true 38 | 39 | #define USE_WIFI_NINA false 40 | 41 | // To use the default WiFi library here 42 | #define USE_WIFI_CUSTOM false 43 | 44 | #else 45 | #error This code is intended to run on the Portenta_H7 platform! Please check your Tools->Board setting. 46 | #endif 47 | 48 | #define SHIELD_TYPE "Portenta_H7 WiFi" 49 | 50 | #warning Using Portenta H7 WiFi 51 | 52 | #endif //defines_h 53 | -------------------------------------------------------------------------------- /examples/Portenta_H7/WiFi/Connect_Default_Database_WiFi/defines.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | defines.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef defines_h 16 | #define defines_h 17 | 18 | #define MYSQL_DEBUG_PORT Serial 19 | 20 | // Debug Level from 0 to 4 21 | #define _MYSQL_LOGLEVEL_ 1 22 | 23 | #if ( defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) ) 24 | 25 | #if defined(BOARD_NAME) 26 | #undef BOARD_NAME 27 | #endif 28 | 29 | #if defined(CORE_CM7) 30 | #warning Using Portenta H7 M7 core 31 | #define BOARD_NAME "PORTENTA_H7_M7" 32 | #else 33 | #warning Using Portenta H7 M4 core 34 | #define BOARD_NAME "PORTENTA_H7_M4" 35 | #endif 36 | 37 | #define USE_WIFI_PORTENTA_H7 true 38 | 39 | #define USE_WIFI_NINA false 40 | 41 | // To use the default WiFi library here 42 | #define USE_WIFI_CUSTOM false 43 | 44 | #else 45 | #error This code is intended to run on the Portenta_H7 platform! Please check your Tools->Board setting. 46 | #endif 47 | 48 | #define SHIELD_TYPE "Portenta_H7 WiFi" 49 | 50 | #warning Using Portenta H7 WiFi 51 | 52 | #endif //defines_h 53 | -------------------------------------------------------------------------------- /examples/Portenta_H7/WiFi/multiFileProject_Portenta_H7_WiFi/defines.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | defines.h 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | **********************************************************************************************************************************/ 14 | 15 | #ifndef defines_h 16 | #define defines_h 17 | 18 | #define MYSQL_DEBUG_PORT Serial 19 | 20 | // Debug Level from 0 to 4 21 | #define _MYSQL_LOGLEVEL_ 1 22 | 23 | #if ( defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) ) 24 | 25 | #if defined(BOARD_NAME) 26 | #undef BOARD_NAME 27 | #endif 28 | 29 | #if defined(CORE_CM7) 30 | #warning Using Portenta H7 M7 core 31 | #define BOARD_NAME "PORTENTA_H7_M7" 32 | #else 33 | #warning Using Portenta H7 M4 core 34 | #define BOARD_NAME "PORTENTA_H7_M4" 35 | #endif 36 | 37 | #define USE_WIFI_PORTENTA_H7 true 38 | 39 | #define USE_WIFI_NINA false 40 | 41 | // To use the default WiFi library here 42 | #define USE_WIFI_CUSTOM false 43 | 44 | #else 45 | #error This code is intended to run on the Portenta_H7 platform! Please check your Tools->Board setting. 46 | #endif 47 | 48 | #define SHIELD_TYPE "Portenta_H7 WiFi" 49 | 50 | #warning Using Portenta H7 WiFi 51 | 52 | #endif //defines_h 53 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## Contributing to MySQL_MariaDB_Generic 2 | 3 | ### Reporting Bugs 4 | 5 | Please report bugs in MySQL_MariaDB_Generic if you find them. 6 | 7 | However, before reporting a bug please check through the following: 8 | 9 | * [Existing Open Issues](https://github.com/khoih-prog/MySQL_MariaDB_Generic/issues) - someone might have already encountered this. 10 | 11 | If you don't find anything, please [open a new issue](https://github.com/khoih-prog/MySQL_MariaDB_Generic/issues/new). 12 | 13 | ### How to submit a bug report 14 | 15 | Please ensure to specify the following: 16 | 17 | * Arduino IDE version (e.g. 1.8.19) or Platform.io version 18 | * Board Core Version (e.g. Arduino SAMDUE core v1.6.12, ESP32 core v2.0.2, ESP8266 core v3.0.2, ArduinoCore-mbed v3.0.1, etc.) 19 | * Contextual information (e.g. what you were trying to achieve) 20 | * Simplest possible steps to reproduce 21 | * Anything that might be relevant in your opinion, such as: 22 | * Operating system (Windows, Ubuntu, etc.) and the output of `uname -a` 23 | * Network configuration 24 | 25 | 26 | ### Example 27 | 28 | ``` 29 | Arduino IDE version: 1.8.19 30 | MBED RASPBERRY_PI_PICO board 31 | ArduinoCore-mbed v3.0.1 32 | OS: Ubuntu 20.04 LTS 33 | Linux xy-Inspiron-3593 5.13.0-39-generic #44~20.04.1-Ubuntu SMP Thu Mar 24 16:43:35 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux 34 | 35 | Context: 36 | I encountered a crash while trying to use the Timer Interrupt. 37 | 38 | Steps to reproduce: 39 | 1. ... 40 | 2. ... 41 | 3. ... 42 | 4. ... 43 | ``` 44 | 45 | ### Sending Feature Requests 46 | 47 | Feel free to post feature requests. It's helpful if you can explain exactly why the feature would be useful. 48 | 49 | There are usually some outstanding feature requests in the [existing issues list](https://github.com/khoih-prog/MySQL_MariaDB_Generic/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement), feel free to add comments to them. 50 | 51 | ### Sending Pull Requests 52 | 53 | Pull Requests with changes and fixes are also welcome! 54 | 55 | -------------------------------------------------------------------------------- /examples/QNEthernet/multiFileProject_QNEthernet/multiFileProject_QNEthernet.ino: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | multiFileProject_QNEthernet.ino 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | *****************************************************************************************************************************/ 14 | 15 | // To demo how to include files in multi-file Projects 16 | 17 | #include "defines.h" 18 | 19 | #define MYSQL_MARIADB_GENERIC_VERSION_MIN_TARGET "MySQL_MariaDB_Generic v1.7.0" 20 | #define MYSQL_MARIADB_GENERIC_VERSION_MIN 1007000 21 | 22 | #include "multiFileProject.h" 23 | 24 | // To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error 25 | #include "MySQL_Generic.h" 26 | 27 | void setup() 28 | { 29 | Serial.begin(115200); 30 | while (!Serial && millis() < 5000); // wait for serial port to connect 31 | 32 | Serial.println("\nStart multiFileProject_QNEthernet"); 33 | Serial.println(MYSQL_MARIADB_GENERIC_VERSION); 34 | 35 | #if defined(MYSQL_MARIADB_GENERIC_VERSION_MIN) 36 | if (MYSQL_MARIADB_GENERIC_VERSION_INT < MYSQL_MARIADB_GENERIC_VERSION_MIN) 37 | { 38 | Serial.print("Warning. Must use this example on Version equal or later than : "); 39 | Serial.println(MYSQL_MARIADB_GENERIC_VERSION_MIN_TARGET); 40 | } 41 | #endif 42 | } 43 | 44 | void loop() 45 | { 46 | // put your main code here, to run repeatedly: 47 | } 48 | -------------------------------------------------------------------------------- /examples/WiFi/multiFileProject_WiFi/multiFileProject_WiFi.ino: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | multiFileProject_WiFi.ino 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | *****************************************************************************************************************************/ 14 | 15 | // To demo how to include files in multi-file Projects 16 | 17 | #include "defines.h" 18 | #include "Credentials.h" 19 | 20 | #define MYSQL_MARIADB_GENERIC_VERSION_MIN_TARGET "MySQL_MariaDB_Generic v1.7.0" 21 | #define MYSQL_MARIADB_GENERIC_VERSION_MIN 1007000 22 | 23 | #include "multiFileProject.h" 24 | 25 | // To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error 26 | #include "MySQL_Generic.h" 27 | 28 | void setup() 29 | { 30 | Serial.begin(115200); 31 | while (!Serial && millis() < 5000); // wait for serial port to connect 32 | 33 | Serial.println("\nStart multiFileProject_WiFi"); 34 | Serial.println(MYSQL_MARIADB_GENERIC_VERSION); 35 | 36 | #if defined(MYSQL_MARIADB_GENERIC_VERSION_MIN) 37 | if (MYSQL_MARIADB_GENERIC_VERSION_INT < MYSQL_MARIADB_GENERIC_VERSION_MIN) 38 | { 39 | Serial.print("Warning. Must use this example on Version equal or later than : "); 40 | Serial.println(MYSQL_MARIADB_GENERIC_VERSION_MIN_TARGET); 41 | } 42 | #endif 43 | } 44 | 45 | void loop() 46 | { 47 | // put your main code here, to run repeatedly: 48 | } 49 | -------------------------------------------------------------------------------- /examples/NativeEthernet/multiFileProject_NativeEthernet/multiFileProject_NativeEthernet.ino: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | multiFileProject_NativeEthernet.ino 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | *****************************************************************************************************************************/ 14 | 15 | // To demo how to include files in multi-file Projects 16 | 17 | #include "defines.h" 18 | 19 | #define MYSQL_MARIADB_GENERIC_VERSION_MIN_TARGET "MySQL_MariaDB_Generic v1.7.0" 20 | #define MYSQL_MARIADB_GENERIC_VERSION_MIN 1007000 21 | 22 | #include "multiFileProject.h" 23 | 24 | // To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error 25 | #include "MySQL_Generic.h" 26 | 27 | void setup() 28 | { 29 | Serial.begin(115200); 30 | while (!Serial && millis() < 5000); // wait for serial port to connect 31 | 32 | Serial.println("\nStart multiFileProject_NativeEthernet"); 33 | Serial.println(MYSQL_MARIADB_GENERIC_VERSION); 34 | 35 | #if defined(MYSQL_MARIADB_GENERIC_VERSION_MIN) 36 | if (MYSQL_MARIADB_GENERIC_VERSION_INT < MYSQL_MARIADB_GENERIC_VERSION_MIN) 37 | { 38 | Serial.print("Warning. Must use this example on Version equal or later than : "); 39 | Serial.println(MYSQL_MARIADB_GENERIC_VERSION_MIN_TARGET); 40 | } 41 | #endif 42 | } 43 | 44 | void loop() 45 | { 46 | // put your main code here, to run repeatedly: 47 | } 48 | -------------------------------------------------------------------------------- /examples/WiFiNINA/multiFileProject_WiFiNINA/multiFileProject_WiFiNINA.ino: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | multiFileProject_WiFiNINA.ino 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | *****************************************************************************************************************************/ 14 | 15 | // To demo how to include files in multi-file Projects 16 | 17 | #include "defines.h" 18 | #include "Credentials.h" 19 | 20 | #define MYSQL_MARIADB_GENERIC_VERSION_MIN_TARGET "MySQL_MariaDB_Generic v1.7.0" 21 | #define MYSQL_MARIADB_GENERIC_VERSION_MIN 1007000 22 | 23 | #include "multiFileProject.h" 24 | 25 | // To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error 26 | #include "MySQL_Generic.h" 27 | 28 | void setup() 29 | { 30 | Serial.begin(115200); 31 | while (!Serial && millis() < 5000); // wait for serial port to connect 32 | 33 | Serial.println("\nStart multiFileProject_WiFiNINA"); 34 | Serial.println(MYSQL_MARIADB_GENERIC_VERSION); 35 | 36 | #if defined(MYSQL_MARIADB_GENERIC_VERSION_MIN) 37 | if (MYSQL_MARIADB_GENERIC_VERSION_INT < MYSQL_MARIADB_GENERIC_VERSION_MIN) 38 | { 39 | Serial.print("Warning. Must use this example on Version equal or later than : "); 40 | Serial.println(MYSQL_MARIADB_GENERIC_VERSION_MIN_TARGET); 41 | } 42 | #endif 43 | } 44 | 45 | void loop() 46 | { 47 | // put your main code here, to run repeatedly: 48 | } 49 | -------------------------------------------------------------------------------- /examples/Portenta_H7/Ethernet/multiFileProject_Portenta_H7_Ethernet/multiFileProject_Portenta_H7_Ethernet.ino: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | multiFileProject_Portenta_H7_Ethernet.ino 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | *****************************************************************************************************************************/ 14 | 15 | // To demo how to include files in multi-file Projects 16 | 17 | #include "defines.h" 18 | 19 | #define MYSQL_MARIADB_GENERIC_VERSION_MIN_TARGET "MySQL_MariaDB_Generic v1.7.0" 20 | #define MYSQL_MARIADB_GENERIC_VERSION_MIN 1007000 21 | 22 | #include "multiFileProject.h" 23 | 24 | // To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error 25 | #include "MySQL_Generic.h" 26 | 27 | void setup() 28 | { 29 | Serial.begin(115200); 30 | while (!Serial && millis() < 5000); // wait for serial port to connect 31 | 32 | Serial.println("\nStart multiFileProject_Portenta_H7_Ethernet"); 33 | Serial.println(MYSQL_MARIADB_GENERIC_VERSION); 34 | 35 | #if defined(MYSQL_MARIADB_GENERIC_VERSION_MIN) 36 | if (MYSQL_MARIADB_GENERIC_VERSION_INT < MYSQL_MARIADB_GENERIC_VERSION_MIN) 37 | { 38 | Serial.print("Warning. Must use this example on Version equal or later than : "); 39 | Serial.println(MYSQL_MARIADB_GENERIC_VERSION_MIN_TARGET); 40 | } 41 | #endif 42 | } 43 | 44 | void loop() 45 | { 46 | // put your main code here, to run repeatedly: 47 | } 48 | -------------------------------------------------------------------------------- /examples/Portenta_H7/WiFi/multiFileProject_Portenta_H7_WiFi/multiFileProject_Portenta_H7_WiFi.ino: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | multiFileProject_Portenta_H7_WiFi.ino 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | *****************************************************************************************************************************/ 14 | 15 | // To demo how to include files in multi-file Projects 16 | 17 | #include "defines.h" 18 | #include "Credentials.h" 19 | 20 | #define MYSQL_MARIADB_GENERIC_VERSION_MIN_TARGET "MySQL_MariaDB_Generic v1.7.0" 21 | #define MYSQL_MARIADB_GENERIC_VERSION_MIN 1007000 22 | 23 | #include "multiFileProject.h" 24 | 25 | // To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error 26 | #include "MySQL_Generic.h" 27 | 28 | void setup() 29 | { 30 | Serial.begin(115200); 31 | while (!Serial && millis() < 5000); // wait for serial port to connect 32 | 33 | Serial.println("\nStart multiFileProject_Portenta_H7_WiFi"); 34 | Serial.println(MYSQL_MARIADB_GENERIC_VERSION); 35 | 36 | #if defined(MYSQL_MARIADB_GENERIC_VERSION_MIN) 37 | if (MYSQL_MARIADB_GENERIC_VERSION_INT < MYSQL_MARIADB_GENERIC_VERSION_MIN) 38 | { 39 | Serial.print("Warning. Must use this example on Version equal or later than : "); 40 | Serial.println(MYSQL_MARIADB_GENERIC_VERSION_MIN_TARGET); 41 | } 42 | #endif 43 | } 44 | 45 | void loop() 46 | { 47 | // put your main code here, to run repeatedly: 48 | } 49 | -------------------------------------------------------------------------------- /Packages_Patches/Seeeduino/hardware/rp2040/1.9.3/variants/rpipico/pins_arduino.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // Pin definitions taken from: 4 | // https://datasheets.raspberrypi.org/pico/pico-datasheet.pdf 5 | 6 | //KH 7 | // Pin count 8 | // ---- 9 | #define PINS_COUNT (30u) 10 | #define NUM_DIGITAL_PINS (30u) 11 | #define NUM_ANALOG_INPUTS (4u) 12 | #define NUM_ANALOG_OUTPUTS (0u) 13 | ////// 14 | 15 | // LEDs 16 | #define PIN_LED (25u) 17 | #define PIN_LED_0 (16u) 18 | #define PIN_LED_1 (17u) 19 | #define PIN_LED_2 (18u) 20 | // Serial 21 | #define PIN_SERIAL1_TX (0u) 22 | #define PIN_SERIAL1_RX (1u) 23 | 24 | #define PIN_SERIAL2_TX (31u) 25 | #define PIN_SERIAL2_RX (31u) 26 | 27 | 28 | // SPI 29 | #define PIN_SPI0_MISO (4u) 30 | #define PIN_SPI0_MOSI (3u) 31 | #define PIN_SPI0_SCK (2u) 32 | #define PIN_SPI0_SS (5u) 33 | 34 | // static const int SS = PIN_SPI0_SS; // SPI Slave SS not used. Set here only for reference. 35 | // static const int MOSI = PIN_SPI0_MOSI; 36 | // static const int MISO = PIN_SPI0_MISO; 37 | // static const int SCK = PIN_SPI0_SCK; 38 | 39 | #define PIN_SPI1_MISO (12u) 40 | #define PIN_SPI1_MOSI (31u) 41 | #define PIN_SPI1_SCK (31u) 42 | #define PIN_SPI1_SS (31u) 43 | // static const int MISO_1 = PIN_SPI1_MISO; 44 | 45 | #define PIN_A0 (26u) 46 | #define PIN_A1 (27u) 47 | #define PIN_A2 (28u) 48 | #define PIN_A3 (29u) 49 | 50 | static const int A0 = PIN_A0; 51 | static const int A1 = PIN_A1; 52 | static const int A2 = PIN_A2; 53 | static const int A3 = PIN_A3; 54 | 55 | // D0 - D10 56 | #define D26 (26u) 57 | #define D1 (27u) 58 | #define D2 (28u) 59 | #define D3 (29u) 60 | #define D4 (6u) 61 | #define D5 (7u) 62 | #define D0 (0u) 63 | #define D7 (1u) 64 | #define D8 (2u) 65 | #define D9 (4u) 66 | #define D10 (3u) 67 | 68 | // static const int 0 = D0; 69 | 70 | // Wire 71 | #define PIN_WIRE0_SDA (6u) 72 | #define PIN_WIRE0_SCL (7u) 73 | 74 | #define PIN_WIRE1_SDA (26u) 75 | #define PIN_WIRE1_SCL (27u) 76 | 77 | // #define SERIAL_HOWMANY (3u) 78 | // #define SPI_HOWMANY (2u) 79 | // #define WIRE_HOWMANY (2u) 80 | 81 | // #include "../generic/common.h" 82 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.19.0/variants/NINA_B112_ublox/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #include "variant.h" 22 | 23 | #include "wiring_constants.h" 24 | #include "wiring_digital.h" 25 | #include "nrf.h" 26 | 27 | //https://www.u-blox.com/sites/default/files/NINA-B1_DataSheet_UBX-15019243.pdf 28 | //https://www.u-blox.com/sites/default/files/EVK-NINA-B1_UserGuide_%28UBX-15028120%29_C1-Public.pdf 29 | 30 | const uint32_t g_ADigitalPinMap[] = { 31 | // D0 .. D13 32 | 5, // D0 is P0.05 (UART RX) 33 | 6, // D1 is P0.06 (UART TX) 34 | 7, // D2 is P0.07 35 | 31, // D3 is P0.31 36 | 18, // D4 is P0.18 (LED Blue) 37 | 99, // D5 (NC) 38 | 9, // D6 is P0.09 NFC1 39 | 10, // D7 is P0.10 (Button) NFC2 40 | 99, // D8 (NC) 41 | 8, // D9 is P0.08 42 | 11, // D10 is P0.11 CS 43 | 13, // D11 is P0.13 MOSI 44 | 12, // D12 is P0.12 MISO 45 | 14, // D13 is P0.14 SCK 46 | //I2C 47 | 2, // D14 is P0.2 (SDA) 48 | 3, // D15 is P0.3 (SCL) 49 | // D16 .. D21 (aka A0 .. A5) 50 | 3, // D16 is P0.03 (A0) 51 | 2, // D17 is P0.02 (A1) 52 | 4, // D18 is P0.04 (A2) 53 | 30, // D19 is P0.30 (A3) SW2 54 | 29, // D20 is P0.29 (A4) 55 | 28, // D21 is P0.28 (A5) 56 | 9, // P0.09 NFC 57 | 10, // P0.10 NFC 58 | 16, // SW1 (LED Green) 59 | }; -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.20.1/variants/NINA_B112_ublox/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #include "variant.h" 22 | 23 | #include "wiring_constants.h" 24 | #include "wiring_digital.h" 25 | #include "nrf.h" 26 | 27 | //https://www.u-blox.com/sites/default/files/NINA-B1_DataSheet_UBX-15019243.pdf 28 | //https://www.u-blox.com/sites/default/files/EVK-NINA-B1_UserGuide_%28UBX-15028120%29_C1-Public.pdf 29 | 30 | const uint32_t g_ADigitalPinMap[] = { 31 | // D0 .. D13 32 | 5, // D0 is P0.05 (UART RX) 33 | 6, // D1 is P0.06 (UART TX) 34 | 7, // D2 is P0.07 35 | 31, // D3 is P0.31 36 | 18, // D4 is P0.18 (LED Blue) 37 | 99, // D5 (NC) 38 | 9, // D6 is P0.09 NFC1 39 | 10, // D7 is P0.10 (Button) NFC2 40 | 99, // D8 (NC) 41 | 8, // D9 is P0.08 42 | 11, // D10 is P0.11 CS 43 | 13, // D11 is P0.13 MOSI 44 | 12, // D12 is P0.12 MISO 45 | 14, // D13 is P0.14 SCK 46 | //I2C 47 | 2, // D14 is P0.2 (SDA) 48 | 3, // D15 is P0.3 (SCL) 49 | // D16 .. D21 (aka A0 .. A5) 50 | 3, // D16 is P0.03 (A0) 51 | 2, // D17 is P0.02 (A1) 52 | 4, // D18 is P0.04 (A2) 53 | 30, // D19 is P0.30 (A3) SW2 54 | 29, // D20 is P0.29 (A4) 55 | 28, // D21 is P0.28 (A5) 56 | 9, // P0.09 NFC 57 | 10, // P0.10 NFC 58 | 16, // SW1 (LED Green) 59 | }; -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.20.5/variants/NINA_B112_ublox/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #include "variant.h" 22 | 23 | #include "wiring_constants.h" 24 | #include "wiring_digital.h" 25 | #include "nrf.h" 26 | 27 | //https://www.u-blox.com/sites/default/files/NINA-B1_DataSheet_UBX-15019243.pdf 28 | //https://www.u-blox.com/sites/default/files/EVK-NINA-B1_UserGuide_%28UBX-15028120%29_C1-Public.pdf 29 | 30 | const uint32_t g_ADigitalPinMap[] = { 31 | // D0 .. D13 32 | 5, // D0 is P0.05 (UART RX) 33 | 6, // D1 is P0.06 (UART TX) 34 | 7, // D2 is P0.07 35 | 31, // D3 is P0.31 36 | 18, // D4 is P0.18 (LED Blue) 37 | 99, // D5 (NC) 38 | 9, // D6 is P0.09 NFC1 39 | 10, // D7 is P0.10 (Button) NFC2 40 | 99, // D8 (NC) 41 | 8, // D9 is P0.08 42 | 11, // D10 is P0.11 CS 43 | 13, // D11 is P0.13 MOSI 44 | 12, // D12 is P0.12 MISO 45 | 14, // D13 is P0.14 SCK 46 | //I2C 47 | 2, // D14 is P0.2 (SDA) 48 | 3, // D15 is P0.3 (SCL) 49 | // D16 .. D21 (aka A0 .. A5) 50 | 3, // D16 is P0.03 (A0) 51 | 2, // D17 is P0.02 (A1) 52 | 4, // D18 is P0.04 (A2) 53 | 30, // D19 is P0.30 (A3) SW2 54 | 29, // D20 is P0.29 (A4) 55 | 28, // D21 is P0.28 (A5) 56 | 9, // P0.09 NFC 57 | 10, // P0.10 NFC 58 | 16, // SW1 (LED Green) 59 | }; -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.21.0/variants/NINA_B112_ublox/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #include "variant.h" 22 | 23 | #include "wiring_constants.h" 24 | #include "wiring_digital.h" 25 | #include "nrf.h" 26 | 27 | //https://www.u-blox.com/sites/default/files/NINA-B1_DataSheet_UBX-15019243.pdf 28 | //https://www.u-blox.com/sites/default/files/EVK-NINA-B1_UserGuide_%28UBX-15028120%29_C1-Public.pdf 29 | 30 | const uint32_t g_ADigitalPinMap[] = { 31 | // D0 .. D13 32 | 5, // D0 is P0.05 (UART RX) 33 | 6, // D1 is P0.06 (UART TX) 34 | 7, // D2 is P0.07 35 | 31, // D3 is P0.31 36 | 18, // D4 is P0.18 (LED Blue) 37 | 99, // D5 (NC) 38 | 9, // D6 is P0.09 NFC1 39 | 10, // D7 is P0.10 (Button) NFC2 40 | 99, // D8 (NC) 41 | 8, // D9 is P0.08 42 | 11, // D10 is P0.11 CS 43 | 13, // D11 is P0.13 MOSI 44 | 12, // D12 is P0.12 MISO 45 | 14, // D13 is P0.14 SCK 46 | //I2C 47 | 2, // D14 is P0.2 (SDA) 48 | 3, // D15 is P0.3 (SCL) 49 | // D16 .. D21 (aka A0 .. A5) 50 | 3, // D16 is P0.03 (A0) 51 | 2, // D17 is P0.02 (A1) 52 | 4, // D18 is P0.04 (A2) 53 | 30, // D19 is P0.30 (A3) SW2 54 | 29, // D20 is P0.29 (A4) 55 | 28, // D21 is P0.28 (A5) 56 | 9, // P0.09 NFC 57 | 10, // P0.10 NFC 58 | 16, // SW1 (LED Green) 59 | }; -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.22.0/variants/NINA_B112_ublox/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #include "variant.h" 22 | 23 | #include "wiring_constants.h" 24 | #include "wiring_digital.h" 25 | #include "nrf.h" 26 | 27 | //https://www.u-blox.com/sites/default/files/NINA-B1_DataSheet_UBX-15019243.pdf 28 | //https://www.u-blox.com/sites/default/files/EVK-NINA-B1_UserGuide_%28UBX-15028120%29_C1-Public.pdf 29 | 30 | const uint32_t g_ADigitalPinMap[] = { 31 | // D0 .. D13 32 | 5, // D0 is P0.05 (UART RX) 33 | 6, // D1 is P0.06 (UART TX) 34 | 7, // D2 is P0.07 35 | 31, // D3 is P0.31 36 | 18, // D4 is P0.18 (LED Blue) 37 | 99, // D5 (NC) 38 | 9, // D6 is P0.09 NFC1 39 | 10, // D7 is P0.10 (Button) NFC2 40 | 99, // D8 (NC) 41 | 8, // D9 is P0.08 42 | 11, // D10 is P0.11 CS 43 | 13, // D11 is P0.13 MOSI 44 | 12, // D12 is P0.12 MISO 45 | 14, // D13 is P0.14 SCK 46 | //I2C 47 | 2, // D14 is P0.2 (SDA) 48 | 3, // D15 is P0.3 (SCL) 49 | // D16 .. D21 (aka A0 .. A5) 50 | 3, // D16 is P0.03 (A0) 51 | 2, // D17 is P0.02 (A1) 52 | 4, // D18 is P0.04 (A2) 53 | 30, // D19 is P0.30 (A3) SW2 54 | 29, // D20 is P0.29 (A4) 55 | 28, // D21 is P0.28 (A5) 56 | 9, // P0.09 NFC 57 | 10, // P0.10 NFC 58 | 16, // SW1 (LED Green) 59 | }; -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.22.1/variants/NINA_B112_ublox/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #include "variant.h" 22 | 23 | #include "wiring_constants.h" 24 | #include "wiring_digital.h" 25 | #include "nrf.h" 26 | 27 | //https://www.u-blox.com/sites/default/files/NINA-B1_DataSheet_UBX-15019243.pdf 28 | //https://www.u-blox.com/sites/default/files/EVK-NINA-B1_UserGuide_%28UBX-15028120%29_C1-Public.pdf 29 | 30 | const uint32_t g_ADigitalPinMap[] = { 31 | // D0 .. D13 32 | 5, // D0 is P0.05 (UART RX) 33 | 6, // D1 is P0.06 (UART TX) 34 | 7, // D2 is P0.07 35 | 31, // D3 is P0.31 36 | 18, // D4 is P0.18 (LED Blue) 37 | 99, // D5 (NC) 38 | 9, // D6 is P0.09 NFC1 39 | 10, // D7 is P0.10 (Button) NFC2 40 | 99, // D8 (NC) 41 | 8, // D9 is P0.08 42 | 11, // D10 is P0.11 CS 43 | 13, // D11 is P0.13 MOSI 44 | 12, // D12 is P0.12 MISO 45 | 14, // D13 is P0.14 SCK 46 | //I2C 47 | 2, // D14 is P0.2 (SDA) 48 | 3, // D15 is P0.3 (SCL) 49 | // D16 .. D21 (aka A0 .. A5) 50 | 3, // D16 is P0.03 (A0) 51 | 2, // D17 is P0.02 (A1) 52 | 4, // D18 is P0.04 (A2) 53 | 30, // D19 is P0.30 (A3) SW2 54 | 29, // D20 is P0.29 (A4) 55 | 28, // D21 is P0.28 (A5) 56 | 9, // P0.09 NFC 57 | 10, // P0.10 NFC 58 | 16, // SW1 (LED Green) 59 | }; -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.23.0/variants/NINA_B112_ublox/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #include "variant.h" 22 | 23 | #include "wiring_constants.h" 24 | #include "wiring_digital.h" 25 | #include "nrf.h" 26 | 27 | //https://www.u-blox.com/sites/default/files/NINA-B1_DataSheet_UBX-15019243.pdf 28 | //https://www.u-blox.com/sites/default/files/EVK-NINA-B1_UserGuide_%28UBX-15028120%29_C1-Public.pdf 29 | 30 | const uint32_t g_ADigitalPinMap[] = { 31 | // D0 .. D13 32 | 5, // D0 is P0.05 (UART RX) 33 | 6, // D1 is P0.06 (UART TX) 34 | 7, // D2 is P0.07 35 | 31, // D3 is P0.31 36 | 18, // D4 is P0.18 (LED Blue) 37 | 99, // D5 (NC) 38 | 9, // D6 is P0.09 NFC1 39 | 10, // D7 is P0.10 (Button) NFC2 40 | 99, // D8 (NC) 41 | 8, // D9 is P0.08 42 | 11, // D10 is P0.11 CS 43 | 13, // D11 is P0.13 MOSI 44 | 12, // D12 is P0.12 MISO 45 | 14, // D13 is P0.14 SCK 46 | //I2C 47 | 2, // D14 is P0.2 (SDA) 48 | 3, // D15 is P0.3 (SCL) 49 | // D16 .. D21 (aka A0 .. A5) 50 | 3, // D16 is P0.03 (A0) 51 | 2, // D17 is P0.02 (A1) 52 | 4, // D18 is P0.04 (A2) 53 | 30, // D19 is P0.30 (A3) SW2 54 | 29, // D20 is P0.29 (A4) 55 | 28, // D21 is P0.28 (A5) 56 | 9, // P0.09 NFC 57 | 10, // P0.10 NFC 58 | 16, // SW1 (LED Green) 59 | }; -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.24.0/variants/NINA_B112_ublox/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #include "variant.h" 22 | 23 | #include "wiring_constants.h" 24 | #include "wiring_digital.h" 25 | #include "nrf.h" 26 | 27 | //https://www.u-blox.com/sites/default/files/NINA-B1_DataSheet_UBX-15019243.pdf 28 | //https://www.u-blox.com/sites/default/files/EVK-NINA-B1_UserGuide_%28UBX-15028120%29_C1-Public.pdf 29 | 30 | const uint32_t g_ADigitalPinMap[] = { 31 | // D0 .. D13 32 | 5, // D0 is P0.05 (UART RX) 33 | 6, // D1 is P0.06 (UART TX) 34 | 7, // D2 is P0.07 35 | 31, // D3 is P0.31 36 | 18, // D4 is P0.18 (LED Blue) 37 | 99, // D5 (NC) 38 | 9, // D6 is P0.09 NFC1 39 | 10, // D7 is P0.10 (Button) NFC2 40 | 99, // D8 (NC) 41 | 8, // D9 is P0.08 42 | 11, // D10 is P0.11 CS 43 | 13, // D11 is P0.13 MOSI 44 | 12, // D12 is P0.12 MISO 45 | 14, // D13 is P0.14 SCK 46 | //I2C 47 | 2, // D14 is P0.2 (SDA) 48 | 3, // D15 is P0.3 (SCL) 49 | // D16 .. D21 (aka A0 .. A5) 50 | 3, // D16 is P0.03 (A0) 51 | 2, // D17 is P0.02 (A1) 52 | 4, // D18 is P0.04 (A2) 53 | 30, // D19 is P0.30 (A3) SW2 54 | 29, // D20 is P0.29 (A4) 55 | 28, // D21 is P0.28 (A5) 56 | 9, // P0.09 NFC 57 | 10, // P0.10 NFC 58 | 16, // SW1 (LED Green) 59 | }; -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/1.0.0/variants/NINA_B112_ublox/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #include "variant.h" 22 | 23 | #include "wiring_constants.h" 24 | #include "wiring_digital.h" 25 | #include "nrf.h" 26 | 27 | //https://www.u-blox.com/sites/default/files/NINA-B1_DataSheet_UBX-15019243.pdf 28 | //https://www.u-blox.com/sites/default/files/EVK-NINA-B1_UserGuide_%28UBX-15028120%29_C1-Public.pdf 29 | 30 | const uint32_t g_ADigitalPinMap[] = { 31 | // D0 .. D13 32 | 5, // D0 is P0.05 (UART RX) 33 | 6, // D1 is P0.06 (UART TX) 34 | 7, // D2 is P0.07 35 | 31, // D3 is P0.31 36 | 18, // D4 is P0.18 (LED Blue) 37 | 99, // D5 (NC) 38 | 9, // D6 is P0.09 NFC1 39 | 10, // D7 is P0.10 (Button) NFC2 40 | 99, // D8 (NC) 41 | 8, // D9 is P0.08 42 | 11, // D10 is P0.11 CS 43 | 13, // D11 is P0.13 MOSI 44 | 12, // D12 is P0.12 MISO 45 | 14, // D13 is P0.14 SCK 46 | //I2C 47 | 2, // D14 is P0.2 (SDA) 48 | 3, // D15 is P0.3 (SCL) 49 | // D16 .. D21 (aka A0 .. A5) 50 | 3, // D16 is P0.03 (A0) 51 | 2, // D17 is P0.02 (A1) 52 | 4, // D18 is P0.04 (A2) 53 | 30, // D19 is P0.30 (A3) SW2 54 | 29, // D20 is P0.29 (A4) 55 | 28, // D21 is P0.28 (A5) 56 | 9, // P0.09 NFC 57 | 10, // P0.10 NFC 58 | 16, // SW1 (LED Green) 59 | }; -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/1.1.0/variants/NINA_B112_ublox/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #include "variant.h" 22 | 23 | #include "wiring_constants.h" 24 | #include "wiring_digital.h" 25 | #include "nrf.h" 26 | 27 | //https://www.u-blox.com/sites/default/files/NINA-B1_DataSheet_UBX-15019243.pdf 28 | //https://www.u-blox.com/sites/default/files/EVK-NINA-B1_UserGuide_%28UBX-15028120%29_C1-Public.pdf 29 | 30 | const uint32_t g_ADigitalPinMap[] = { 31 | // D0 .. D13 32 | 5, // D0 is P0.05 (UART RX) 33 | 6, // D1 is P0.06 (UART TX) 34 | 7, // D2 is P0.07 35 | 31, // D3 is P0.31 36 | 18, // D4 is P0.18 (LED Blue) 37 | 99, // D5 (NC) 38 | 9, // D6 is P0.09 NFC1 39 | 10, // D7 is P0.10 (Button) NFC2 40 | 99, // D8 (NC) 41 | 8, // D9 is P0.08 42 | 11, // D10 is P0.11 CS 43 | 13, // D11 is P0.13 MOSI 44 | 12, // D12 is P0.12 MISO 45 | 14, // D13 is P0.14 SCK 46 | //I2C 47 | 2, // D14 is P0.2 (SDA) 48 | 3, // D15 is P0.3 (SCL) 49 | // D16 .. D21 (aka A0 .. A5) 50 | 3, // D16 is P0.03 (A0) 51 | 2, // D17 is P0.02 (A1) 52 | 4, // D18 is P0.04 (A2) 53 | 30, // D19 is P0.30 (A3) SW2 54 | 29, // D20 is P0.29 (A4) 55 | 28, // D21 is P0.28 (A5) 56 | 9, // P0.09 NFC 57 | 10, // P0.10 NFC 58 | 16, // SW1 (LED Green) 59 | }; -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/1.2.0/variants/NINA_B112_ublox/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #include "variant.h" 22 | 23 | #include "wiring_constants.h" 24 | #include "wiring_digital.h" 25 | #include "nrf.h" 26 | 27 | //https://www.u-blox.com/sites/default/files/NINA-B1_DataSheet_UBX-15019243.pdf 28 | //https://www.u-blox.com/sites/default/files/EVK-NINA-B1_UserGuide_%28UBX-15028120%29_C1-Public.pdf 29 | 30 | const uint32_t g_ADigitalPinMap[] = { 31 | // D0 .. D13 32 | 5, // D0 is P0.05 (UART RX) 33 | 6, // D1 is P0.06 (UART TX) 34 | 7, // D2 is P0.07 35 | 31, // D3 is P0.31 36 | 18, // D4 is P0.18 (LED Blue) 37 | 99, // D5 (NC) 38 | 9, // D6 is P0.09 NFC1 39 | 10, // D7 is P0.10 (Button) NFC2 40 | 99, // D8 (NC) 41 | 8, // D9 is P0.08 42 | 11, // D10 is P0.11 CS 43 | 13, // D11 is P0.13 MOSI 44 | 12, // D12 is P0.12 MISO 45 | 14, // D13 is P0.14 SCK 46 | //I2C 47 | 2, // D14 is P0.2 (SDA) 48 | 3, // D15 is P0.3 (SCL) 49 | // D16 .. D21 (aka A0 .. A5) 50 | 3, // D16 is P0.03 (A0) 51 | 2, // D17 is P0.02 (A1) 52 | 4, // D18 is P0.04 (A2) 53 | 30, // D19 is P0.30 (A3) SW2 54 | 29, // D20 is P0.29 (A4) 55 | 28, // D21 is P0.28 (A5) 56 | 9, // P0.09 NFC 57 | 10, // P0.10 NFC 58 | 16, // SW1 (LED Green) 59 | }; -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/1.3.0/variants/NINA_B112_ublox/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #include "variant.h" 22 | 23 | #include "wiring_constants.h" 24 | #include "wiring_digital.h" 25 | #include "nrf.h" 26 | 27 | //https://www.u-blox.com/sites/default/files/NINA-B1_DataSheet_UBX-15019243.pdf 28 | //https://www.u-blox.com/sites/default/files/EVK-NINA-B1_UserGuide_%28UBX-15028120%29_C1-Public.pdf 29 | 30 | const uint32_t g_ADigitalPinMap[] = { 31 | // D0 .. D13 32 | 5, // D0 is P0.05 (UART RX) 33 | 6, // D1 is P0.06 (UART TX) 34 | 7, // D2 is P0.07 35 | 31, // D3 is P0.31 36 | 18, // D4 is P0.18 (LED Blue) 37 | 99, // D5 (NC) 38 | 9, // D6 is P0.09 NFC1 39 | 10, // D7 is P0.10 (Button) NFC2 40 | 99, // D8 (NC) 41 | 8, // D9 is P0.08 42 | 11, // D10 is P0.11 CS 43 | 13, // D11 is P0.13 MOSI 44 | 12, // D12 is P0.12 MISO 45 | 14, // D13 is P0.14 SCK 46 | //I2C 47 | 2, // D14 is P0.2 (SDA) 48 | 3, // D15 is P0.3 (SCL) 49 | // D16 .. D21 (aka A0 .. A5) 50 | 3, // D16 is P0.03 (A0) 51 | 2, // D17 is P0.02 (A1) 52 | 4, // D18 is P0.04 (A2) 53 | 30, // D19 is P0.30 (A3) SW2 54 | 29, // D20 is P0.29 (A4) 55 | 28, // D21 is P0.28 (A5) 56 | 9, // P0.09 NFC 57 | 10, // P0.10 NFC 58 | 16, // SW1 (LED Green) 59 | }; -------------------------------------------------------------------------------- /examples/WT32_ETH01/multiFileProject_WT32_ETH01/multiFileProject_WT32_ETH01.ino: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | multiFileProject_WT32_ETH01.ino 3 | Library for communicating with a MySQL or MariaDB Server 4 | 5 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 6 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, etc. boards using W5x00, ENC28J60, LAM8742A Ethernet, 7 | WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi. 8 | 9 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 10 | 11 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 12 | Licensed under MIT license 13 | *****************************************************************************************************************************/ 14 | 15 | // To demo how to include files in multi-file Projects 16 | 17 | #if !(defined(ESP32)) 18 | #error This code is intended to run on the WT32 boards and ESP32 platform ! Please check your Tools->Board setting. 19 | #endif 20 | 21 | #define MYSQL_DEBUG_PORT Serial 22 | 23 | // Debug Level from 0 to 4 24 | #define _MYSQL_LOGLEVEL_ 1 25 | 26 | #include 27 | 28 | #define MYSQL_MARIADB_GENERIC_VERSION_MIN_TARGET "MySQL_MariaDB_Generic v1.7.0" 29 | #define MYSQL_MARIADB_GENERIC_VERSION_MIN 1007000 30 | 31 | #include "multiFileProject.h" 32 | 33 | // To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error 34 | #include "MySQL_Generic.h" 35 | 36 | void setup() 37 | { 38 | Serial.begin(115200); 39 | while (!Serial && millis() < 5000); // wait for serial port to connect 40 | 41 | Serial.println("\nStart multiFileProject_WT32_ETH01"); 42 | Serial.println(MYSQL_MARIADB_GENERIC_VERSION); 43 | 44 | #if defined(MYSQL_MARIADB_GENERIC_VERSION_MIN) 45 | if (MYSQL_MARIADB_GENERIC_VERSION_INT < MYSQL_MARIADB_GENERIC_VERSION_MIN) 46 | { 47 | Serial.print("Warning. Must use this example on Version equal or later than : "); 48 | Serial.println(MYSQL_MARIADB_GENERIC_VERSION_MIN_TARGET); 49 | } 50 | #endif 51 | } 52 | 53 | void loop() 54 | { 55 | // put your main code here, to run repeatedly: 56 | } 57 | -------------------------------------------------------------------------------- /src/MySQL_Generic.hpp: -------------------------------------------------------------------------------- 1 | /********************************************************************************************************************************* 2 | MySQL_Generic.hpp 3 | 4 | Library for communicating with a MySQL or MariaDB Server 5 | 6 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 7 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, WT32_ETH01, Teensy, Portenta_H7, etc. boards 8 | using W5x00, ENC28J60, LAM8742A Ethernet, WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi, Portenta Ethernet/WiFi 9 | 10 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 11 | 12 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 13 | Licensed under MIT license 14 | 15 | Version: 1.7.2 16 | 17 | Version Modified By Date Comments 18 | ------- ----------- ---------- ----------- 19 | 1.0.0 K Hoang 13/08/2020 Initial coding/porting to support nRF52, SAM DUE and SAMD21/SAMD51 boards using W5x00 Ethernet 20 | (Ethernet, EthernetLarge, Ethernet2, Ethernet3 library), WiFiNINA and ESP8266/ESP32-AT shields 21 | ... 22 | 1.4.0 K Hoang 05/09/2021 Add support to Teensy 4.1 using QNEthernet 23 | 1.5.0 K Hoang 17/09/2021 Add support to Portenta_H7, using either WiFi or Vision-shield Ethernet 24 | 1.5.1 K Hoang 10/10/2021 Update `platform.ini` and `library.json` 25 | 1.5.2 K Hoang 01/12/2021 Auto detect ESP32 core for LittleFS. Fix bug in examples for WT32_ETH01 26 | 1.6.0 K Hoang 10/03/2022 Fix memory leak bug. Optimize code 27 | 1.6.1 K Hoang 12/03/2022 Fix memory management bug 28 | 1.7.0 K Hoang 12/03/2022 Convert to `h-only` style library 29 | 1.7.1 K Hoang 10/04/2022 Use Ethernet_Generic library as default. Support SPI1/SPI2 for RP2040/ESP32 30 | 1.7.2 K Hoang 11/04/2022 Fix missing paragraph in `library.properties` 31 | **********************************************************************************************************************************/ 32 | 33 | #pragma once 34 | 35 | #ifndef MYSQL_GENERIC_HPP 36 | #define MYSQL_GENERIC_HPP 37 | 38 | #define MYSQL_GENERIC_VERSION "1.7.2" 39 | 40 | #ifndef MYSQL_MARIADB_GENERIC_VERSION 41 | #define MYSQL_MARIADB_GENERIC_VERSION ("MySQL_MariaDB_Generic v" MYSQL_GENERIC_VERSION) 42 | 43 | #define MYSQL_MARIADB_GENERIC_VERSION_MAJOR 1 44 | #define MYSQL_MARIADB_GENERIC_VERSION_MINOR 7 45 | #define MYSQL_MARIADB_GENERIC_VERSION_PATCH 2 46 | 47 | #define MYSQL_MARIADB_GENERIC_VERSION_INT 1007002 48 | #endif 49 | 50 | #include 51 | #include 52 | #include 53 | #include 54 | 55 | #endif //MYSQL_GENERIC_HPP 56 | -------------------------------------------------------------------------------- /src/MySQL_Generic_WiFiNINA.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************************************************************** 2 | MySQL_Generic_WiFiNINA.h 3 | 4 | Library for communicating with a MySQL or MariaDB Server 5 | 6 | Based on and modified from Dr. Charles A. Bell's MySQL_Connector_Arduino Library https://github.com/ChuckBell/MySQL_Connector_Arduino 7 | to support nRF52, SAMD21/SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, ESP8266, ESP32, WT32_ETH01, Teensy, Portenta_H7, etc. boards 8 | using W5x00, ENC28J60, LAM8742A Ethernet, WiFiNINA, ESP-AT, built-in ESP8266/ESP32 WiFi, Portenta Ethernet/WiFi 9 | 10 | The library provides simple and easy Client interface to MySQL or MariaDB Server. 11 | 12 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic 13 | Licensed under MIT license 14 | 15 | Version: 1.7.2 16 | 17 | Version Modified By Date Comments 18 | ------- ----------- ---------- ----------- 19 | 1.0.0 K Hoang 13/08/2020 Initial coding/porting to support nRF52, SAM DUE and SAMD21/SAMD51 boards using W5x00 Ethernet 20 | (Ethernet, EthernetLarge, Ethernet2, Ethernet3 library), WiFiNINA and ESP8266/ESP32-AT shields 21 | ... 22 | 1.4.0 K Hoang 05/09/2021 Add support to Teensy 4.1 using QNEthernet 23 | 1.5.0 K Hoang 17/09/2021 Add support to Portenta_H7, using either WiFi or Vision-shield Ethernet 24 | 1.5.1 K Hoang 10/10/2021 Update `platform.ini` and `library.json` 25 | 1.5.2 K Hoang 01/12/2021 Auto detect ESP32 core for LittleFS. Fix bug in examples for WT32_ETH01 26 | 1.6.0 K Hoang 10/03/2022 Fix memory leak bug. Optimize code 27 | 1.6.1 K Hoang 12/03/2022 Fix memory management bug 28 | 1.7.0 K Hoang 12/03/2022 Convert to `h-only` style library 29 | 1.7.1 K Hoang 10/04/2022 Use Ethernet_Generic library as default. Support SPI1/SPI2 for RP2040/ESP32 30 | 1.7.2 K Hoang 11/04/2022 Fix missing paragraph in `library.properties` 31 | **********************************************************************************************************************************/ 32 | 33 | #pragma once 34 | 35 | #ifndef MYSQL_GENERIC_WIFININA_H 36 | #define MYSQL_GENERIC_WIFININA_H 37 | 38 | #if (ESP8266 || ESP32) 39 | #error This code is not intended to run on the ESP8266/ESP32 platform! Please check your Tools->Board setting 40 | #endif 41 | 42 | #if (USING_WIFININA_GENERIC) 43 | #warning Using WiFiNINA_Generic Library 44 | #include "WiFiNINA_Generic.h" 45 | #include "WiFiClient_Generic.h" 46 | WiFiClient client; // Use this for WiFi instead of EthernetClient 47 | #elif (USING_WIFININA) 48 | #warning Using WiFiNINA Library 49 | #include "WiFiNINA.h" 50 | #include "WiFiClient.h" 51 | WiFiClient client; // Use this for WiFi instead of EthernetClient 52 | #else 53 | #error Must pick a Library 54 | #endif 55 | 56 | #endif //MYSQL_GENERIC_WIFININA_H 57 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.19.0/variants/NINA_B302_ublox/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | // Thanks to great work of [Miguel Alexandre Wisintainer](https://github.com/tcpipchip). 21 | // See [u-blox nina b](https://github.com/khoih-prog/WiFiNINA_Generic/issues/1) 22 | 23 | #include "variant.h" 24 | #include "wiring_constants.h" 25 | #include "wiring_digital.h" 26 | #include "nrf.h" 27 | 28 | const uint32_t g_ADigitalPinMap[] = 29 | { 30 | // D0 .. D13 31 | 29, // D0 is P0.29 (UART RX) 32 | 45, // D1 is P1.13 (UART TX) 33 | 44, // D2 is P1.12 (NFC2) 34 | 31, // D3 is P0.31 (LED1) 35 | 13, // D4 is P0.13 (LED2) 36 | 11, // D5 is P0.11 37 | 9, // D6 is P0.09 38 | 10, // D7 is P0.10 (Button) 39 | 41, // D8 is P1.09 40 | 12, // D9 is P0.12 41 | 14, // D10 is P0.14 42 | 15, // D11 is P0.15 43 | 32, // D12 is P1.00 44 | 7, // D13 is P0.07 45 | 46 | // D14 .. D21 (aka A0 .. A5) 47 | 4, // D14 is P0.04 (A0) 48 | 30, // D15 is P0.30 (A1) 49 | 5, // D16 is P0.05 (A2) 50 | 2, // D17 is P0.02 (A3) 51 | 28, // D18 is P0.28 (A4) 52 | 3, // D19 is P0.03 (A5) 53 | 54 | // D20 .. D21 (aka I2C pins) 55 | 16, // D20 is P0.16 (SDA) 56 | 24, // D21 is P0.24 (SCL) 57 | 58 | // QSPI pins (not exposed via any header / test point) 59 | 19, // D22 is P0.19 (QSPI CLK) 60 | 17, // D23 is P0.17 (QSPI CS) 61 | 20, // D24 is P0.20 (QSPI Data 0) 62 | 21, // D25 is P0.21 (QSPI Data 1) 63 | 22, // D26 is P0.22 (QSPI Data 2) 64 | 26, // D27 is P0.23 (QSPI Data 3) 65 | 66 | 40, // D28 is P1.08 - IO34 67 | 41, // D29 is P1.01 - IO35 68 | 44, // D30 is P1.02 - IO36 69 | 45, // D31 is P1.03 - IO37 70 | 42, // D32 is P1.10 - IO38 71 | 43, // D33 is P1.11 - IO39 72 | 47, // D34 is P1.15 - IO40 73 | 46, // D35 is P1.14 - IO41 74 | 26, // D36 is P0.26 - IO42 75 | 6, // D37 is P0.6 - IO43 76 | 27, // D38 is P0.27 - IO44 77 | }; 78 | 79 | void initVariant() 80 | { 81 | // LED1 & LED2 82 | pinMode(PIN_LED1, OUTPUT); 83 | ledOff(PIN_LED1); 84 | 85 | pinMode(PIN_LED2, OUTPUT); 86 | ledOff(PIN_LED2); 87 | } 88 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.20.1/variants/NINA_B302_ublox/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | // Thanks to great work of [Miguel Alexandre Wisintainer](https://github.com/tcpipchip). 21 | // See [u-blox nina b](https://github.com/khoih-prog/WiFiNINA_Generic/issues/1) 22 | 23 | #include "variant.h" 24 | #include "wiring_constants.h" 25 | #include "wiring_digital.h" 26 | #include "nrf.h" 27 | 28 | const uint32_t g_ADigitalPinMap[] = 29 | { 30 | // D0 .. D13 31 | 29, // D0 is P0.29 (UART RX) 32 | 45, // D1 is P1.13 (UART TX) 33 | 44, // D2 is P1.12 (NFC2) 34 | 31, // D3 is P0.31 (LED1) 35 | 13, // D4 is P0.13 (LED2) 36 | 11, // D5 is P0.11 37 | 9, // D6 is P0.09 38 | 10, // D7 is P0.10 (Button) 39 | 41, // D8 is P1.09 40 | 12, // D9 is P0.12 41 | 14, // D10 is P0.14 42 | 15, // D11 is P0.15 43 | 32, // D12 is P1.00 44 | 7, // D13 is P0.07 45 | 46 | // D14 .. D21 (aka A0 .. A5) 47 | 4, // D14 is P0.04 (A0) 48 | 30, // D15 is P0.30 (A1) 49 | 5, // D16 is P0.05 (A2) 50 | 2, // D17 is P0.02 (A3) 51 | 28, // D18 is P0.28 (A4) 52 | 3, // D19 is P0.03 (A5) 53 | 54 | // D20 .. D21 (aka I2C pins) 55 | 16, // D20 is P0.16 (SDA) 56 | 24, // D21 is P0.24 (SCL) 57 | 58 | // QSPI pins (not exposed via any header / test point) 59 | 19, // D22 is P0.19 (QSPI CLK) 60 | 17, // D23 is P0.17 (QSPI CS) 61 | 20, // D24 is P0.20 (QSPI Data 0) 62 | 21, // D25 is P0.21 (QSPI Data 1) 63 | 22, // D26 is P0.22 (QSPI Data 2) 64 | 26, // D27 is P0.23 (QSPI Data 3) 65 | 66 | 40, // D28 is P1.08 - IO34 67 | 41, // D29 is P1.01 - IO35 68 | 44, // D30 is P1.02 - IO36 69 | 45, // D31 is P1.03 - IO37 70 | 42, // D32 is P1.10 - IO38 71 | 43, // D33 is P1.11 - IO39 72 | 47, // D34 is P1.15 - IO40 73 | 46, // D35 is P1.14 - IO41 74 | 26, // D36 is P0.26 - IO42 75 | 6, // D37 is P0.6 - IO43 76 | 27, // D38 is P0.27 - IO44 77 | }; 78 | 79 | void initVariant() 80 | { 81 | // LED1 & LED2 82 | pinMode(PIN_LED1, OUTPUT); 83 | ledOff(PIN_LED1); 84 | 85 | pinMode(PIN_LED2, OUTPUT); 86 | ledOff(PIN_LED2); 87 | } 88 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.20.5/variants/NINA_B302_ublox/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | // Thanks to great work of [Miguel Alexandre Wisintainer](https://github.com/tcpipchip). 21 | // See [u-blox nina b](https://github.com/khoih-prog/WiFiNINA_Generic/issues/1) 22 | 23 | #include "variant.h" 24 | #include "wiring_constants.h" 25 | #include "wiring_digital.h" 26 | #include "nrf.h" 27 | 28 | const uint32_t g_ADigitalPinMap[] = 29 | { 30 | // D0 .. D13 31 | 29, // D0 is P0.29 (UART RX) 32 | 45, // D1 is P1.13 (UART TX) 33 | 44, // D2 is P1.12 (NFC2) 34 | 31, // D3 is P0.31 (LED1) 35 | 13, // D4 is P0.13 (LED2) 36 | 11, // D5 is P0.11 37 | 9, // D6 is P0.09 38 | 10, // D7 is P0.10 (Button) 39 | 41, // D8 is P1.09 40 | 12, // D9 is P0.12 41 | 14, // D10 is P0.14 42 | 15, // D11 is P0.15 43 | 32, // D12 is P1.00 44 | 7, // D13 is P0.07 45 | 46 | // D14 .. D21 (aka A0 .. A5) 47 | 4, // D14 is P0.04 (A0) 48 | 30, // D15 is P0.30 (A1) 49 | 5, // D16 is P0.05 (A2) 50 | 2, // D17 is P0.02 (A3) 51 | 28, // D18 is P0.28 (A4) 52 | 3, // D19 is P0.03 (A5) 53 | 54 | // D20 .. D21 (aka I2C pins) 55 | 16, // D20 is P0.16 (SDA) 56 | 24, // D21 is P0.24 (SCL) 57 | 58 | // QSPI pins (not exposed via any header / test point) 59 | 19, // D22 is P0.19 (QSPI CLK) 60 | 17, // D23 is P0.17 (QSPI CS) 61 | 20, // D24 is P0.20 (QSPI Data 0) 62 | 21, // D25 is P0.21 (QSPI Data 1) 63 | 22, // D26 is P0.22 (QSPI Data 2) 64 | 26, // D27 is P0.23 (QSPI Data 3) 65 | 66 | 40, // D28 is P1.08 - IO34 67 | 41, // D29 is P1.01 - IO35 68 | 44, // D30 is P1.02 - IO36 69 | 45, // D31 is P1.03 - IO37 70 | 42, // D32 is P1.10 - IO38 71 | 43, // D33 is P1.11 - IO39 72 | 47, // D34 is P1.15 - IO40 73 | 46, // D35 is P1.14 - IO41 74 | 26, // D36 is P0.26 - IO42 75 | 6, // D37 is P0.6 - IO43 76 | 27, // D38 is P0.27 - IO44 77 | }; 78 | 79 | void initVariant() 80 | { 81 | // LED1 & LED2 82 | pinMode(PIN_LED1, OUTPUT); 83 | ledOff(PIN_LED1); 84 | 85 | pinMode(PIN_LED2, OUTPUT); 86 | ledOff(PIN_LED2); 87 | } 88 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.21.0/variants/NINA_B302_ublox/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | // Thanks to great work of [Miguel Alexandre Wisintainer](https://github.com/tcpipchip). 21 | // See [u-blox nina b](https://github.com/khoih-prog/WiFiNINA_Generic/issues/1) 22 | 23 | #include "variant.h" 24 | #include "wiring_constants.h" 25 | #include "wiring_digital.h" 26 | #include "nrf.h" 27 | 28 | const uint32_t g_ADigitalPinMap[] = 29 | { 30 | // D0 .. D13 31 | 29, // D0 is P0.29 (UART RX) 32 | 45, // D1 is P1.13 (UART TX) 33 | 44, // D2 is P1.12 (NFC2) 34 | 31, // D3 is P0.31 (LED1) 35 | 13, // D4 is P0.13 (LED2) 36 | 11, // D5 is P0.11 37 | 9, // D6 is P0.09 38 | 10, // D7 is P0.10 (Button) 39 | 41, // D8 is P1.09 40 | 12, // D9 is P0.12 41 | 14, // D10 is P0.14 42 | 15, // D11 is P0.15 43 | 32, // D12 is P1.00 44 | 7, // D13 is P0.07 45 | 46 | // D14 .. D21 (aka A0 .. A5) 47 | 4, // D14 is P0.04 (A0) 48 | 30, // D15 is P0.30 (A1) 49 | 5, // D16 is P0.05 (A2) 50 | 2, // D17 is P0.02 (A3) 51 | 28, // D18 is P0.28 (A4) 52 | 3, // D19 is P0.03 (A5) 53 | 54 | // D20 .. D21 (aka I2C pins) 55 | 16, // D20 is P0.16 (SDA) 56 | 24, // D21 is P0.24 (SCL) 57 | 58 | // QSPI pins (not exposed via any header / test point) 59 | 19, // D22 is P0.19 (QSPI CLK) 60 | 17, // D23 is P0.17 (QSPI CS) 61 | 20, // D24 is P0.20 (QSPI Data 0) 62 | 21, // D25 is P0.21 (QSPI Data 1) 63 | 22, // D26 is P0.22 (QSPI Data 2) 64 | 26, // D27 is P0.23 (QSPI Data 3) 65 | 66 | 40, // D28 is P1.08 - IO34 67 | 41, // D29 is P1.01 - IO35 68 | 44, // D30 is P1.02 - IO36 69 | 45, // D31 is P1.03 - IO37 70 | 42, // D32 is P1.10 - IO38 71 | 43, // D33 is P1.11 - IO39 72 | 47, // D34 is P1.15 - IO40 73 | 46, // D35 is P1.14 - IO41 74 | 26, // D36 is P0.26 - IO42 75 | 6, // D37 is P0.6 - IO43 76 | 27, // D38 is P0.27 - IO44 77 | }; 78 | 79 | void initVariant() 80 | { 81 | // LED1 & LED2 82 | pinMode(PIN_LED1, OUTPUT); 83 | ledOff(PIN_LED1); 84 | 85 | pinMode(PIN_LED2, OUTPUT); 86 | ledOff(PIN_LED2); 87 | } 88 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.22.0/variants/NINA_B302_ublox/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | // Thanks to great work of [Miguel Alexandre Wisintainer](https://github.com/tcpipchip). 21 | // See [u-blox nina b](https://github.com/khoih-prog/WiFiNINA_Generic/issues/1) 22 | 23 | #include "variant.h" 24 | #include "wiring_constants.h" 25 | #include "wiring_digital.h" 26 | #include "nrf.h" 27 | 28 | const uint32_t g_ADigitalPinMap[] = 29 | { 30 | // D0 .. D13 31 | 29, // D0 is P0.29 (UART RX) 32 | 45, // D1 is P1.13 (UART TX) 33 | 44, // D2 is P1.12 (NFC2) 34 | 31, // D3 is P0.31 (LED1) 35 | 13, // D4 is P0.13 (LED2) 36 | 11, // D5 is P0.11 37 | 9, // D6 is P0.09 38 | 10, // D7 is P0.10 (Button) 39 | 41, // D8 is P1.09 40 | 12, // D9 is P0.12 41 | 14, // D10 is P0.14 42 | 15, // D11 is P0.15 43 | 32, // D12 is P1.00 44 | 7, // D13 is P0.07 45 | 46 | // D14 .. D21 (aka A0 .. A5) 47 | 4, // D14 is P0.04 (A0) 48 | 30, // D15 is P0.30 (A1) 49 | 5, // D16 is P0.05 (A2) 50 | 2, // D17 is P0.02 (A3) 51 | 28, // D18 is P0.28 (A4) 52 | 3, // D19 is P0.03 (A5) 53 | 54 | // D20 .. D21 (aka I2C pins) 55 | 16, // D20 is P0.16 (SDA) 56 | 24, // D21 is P0.24 (SCL) 57 | 58 | // QSPI pins (not exposed via any header / test point) 59 | 19, // D22 is P0.19 (QSPI CLK) 60 | 17, // D23 is P0.17 (QSPI CS) 61 | 20, // D24 is P0.20 (QSPI Data 0) 62 | 21, // D25 is P0.21 (QSPI Data 1) 63 | 22, // D26 is P0.22 (QSPI Data 2) 64 | 26, // D27 is P0.23 (QSPI Data 3) 65 | 66 | 40, // D28 is P1.08 - IO34 67 | 41, // D29 is P1.01 - IO35 68 | 44, // D30 is P1.02 - IO36 69 | 45, // D31 is P1.03 - IO37 70 | 42, // D32 is P1.10 - IO38 71 | 43, // D33 is P1.11 - IO39 72 | 47, // D34 is P1.15 - IO40 73 | 46, // D35 is P1.14 - IO41 74 | 26, // D36 is P0.26 - IO42 75 | 6, // D37 is P0.6 - IO43 76 | 27, // D38 is P0.27 - IO44 77 | }; 78 | 79 | void initVariant() 80 | { 81 | // LED1 & LED2 82 | pinMode(PIN_LED1, OUTPUT); 83 | ledOff(PIN_LED1); 84 | 85 | pinMode(PIN_LED2, OUTPUT); 86 | ledOff(PIN_LED2); 87 | } 88 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.22.1/variants/NINA_B302_ublox/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | // Thanks to great work of [Miguel Alexandre Wisintainer](https://github.com/tcpipchip). 21 | // See [u-blox nina b](https://github.com/khoih-prog/WiFiNINA_Generic/issues/1) 22 | 23 | #include "variant.h" 24 | #include "wiring_constants.h" 25 | #include "wiring_digital.h" 26 | #include "nrf.h" 27 | 28 | const uint32_t g_ADigitalPinMap[] = 29 | { 30 | // D0 .. D13 31 | 29, // D0 is P0.29 (UART RX) 32 | 45, // D1 is P1.13 (UART TX) 33 | 44, // D2 is P1.12 (NFC2) 34 | 31, // D3 is P0.31 (LED1) 35 | 13, // D4 is P0.13 (LED2) 36 | 11, // D5 is P0.11 37 | 9, // D6 is P0.09 38 | 10, // D7 is P0.10 (Button) 39 | 41, // D8 is P1.09 40 | 12, // D9 is P0.12 41 | 14, // D10 is P0.14 42 | 15, // D11 is P0.15 43 | 32, // D12 is P1.00 44 | 7, // D13 is P0.07 45 | 46 | // D14 .. D21 (aka A0 .. A5) 47 | 4, // D14 is P0.04 (A0) 48 | 30, // D15 is P0.30 (A1) 49 | 5, // D16 is P0.05 (A2) 50 | 2, // D17 is P0.02 (A3) 51 | 28, // D18 is P0.28 (A4) 52 | 3, // D19 is P0.03 (A5) 53 | 54 | // D20 .. D21 (aka I2C pins) 55 | 16, // D20 is P0.16 (SDA) 56 | 24, // D21 is P0.24 (SCL) 57 | 58 | // QSPI pins (not exposed via any header / test point) 59 | 19, // D22 is P0.19 (QSPI CLK) 60 | 17, // D23 is P0.17 (QSPI CS) 61 | 20, // D24 is P0.20 (QSPI Data 0) 62 | 21, // D25 is P0.21 (QSPI Data 1) 63 | 22, // D26 is P0.22 (QSPI Data 2) 64 | 26, // D27 is P0.23 (QSPI Data 3) 65 | 66 | 40, // D28 is P1.08 - IO34 67 | 41, // D29 is P1.01 - IO35 68 | 44, // D30 is P1.02 - IO36 69 | 45, // D31 is P1.03 - IO37 70 | 42, // D32 is P1.10 - IO38 71 | 43, // D33 is P1.11 - IO39 72 | 47, // D34 is P1.15 - IO40 73 | 46, // D35 is P1.14 - IO41 74 | 26, // D36 is P0.26 - IO42 75 | 6, // D37 is P0.6 - IO43 76 | 27, // D38 is P0.27 - IO44 77 | }; 78 | 79 | void initVariant() 80 | { 81 | // LED1 & LED2 82 | pinMode(PIN_LED1, OUTPUT); 83 | ledOff(PIN_LED1); 84 | 85 | pinMode(PIN_LED2, OUTPUT); 86 | ledOff(PIN_LED2); 87 | } 88 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.23.0/variants/NINA_B302_ublox/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | // Thanks to great work of [Miguel Alexandre Wisintainer](https://github.com/tcpipchip). 21 | // See [u-blox nina b](https://github.com/khoih-prog/WiFiNINA_Generic/issues/1) 22 | 23 | #include "variant.h" 24 | #include "wiring_constants.h" 25 | #include "wiring_digital.h" 26 | #include "nrf.h" 27 | 28 | const uint32_t g_ADigitalPinMap[] = 29 | { 30 | // D0 .. D13 31 | 29, // D0 is P0.29 (UART RX) 32 | 45, // D1 is P1.13 (UART TX) 33 | 44, // D2 is P1.12 (NFC2) 34 | 31, // D3 is P0.31 (LED1) 35 | 13, // D4 is P0.13 (LED2) 36 | 11, // D5 is P0.11 37 | 9, // D6 is P0.09 38 | 10, // D7 is P0.10 (Button) 39 | 41, // D8 is P1.09 40 | 12, // D9 is P0.12 41 | 14, // D10 is P0.14 42 | 15, // D11 is P0.15 43 | 32, // D12 is P1.00 44 | 7, // D13 is P0.07 45 | 46 | // D14 .. D21 (aka A0 .. A5) 47 | 4, // D14 is P0.04 (A0) 48 | 30, // D15 is P0.30 (A1) 49 | 5, // D16 is P0.05 (A2) 50 | 2, // D17 is P0.02 (A3) 51 | 28, // D18 is P0.28 (A4) 52 | 3, // D19 is P0.03 (A5) 53 | 54 | // D20 .. D21 (aka I2C pins) 55 | 16, // D20 is P0.16 (SDA) 56 | 24, // D21 is P0.24 (SCL) 57 | 58 | // QSPI pins (not exposed via any header / test point) 59 | 19, // D22 is P0.19 (QSPI CLK) 60 | 17, // D23 is P0.17 (QSPI CS) 61 | 20, // D24 is P0.20 (QSPI Data 0) 62 | 21, // D25 is P0.21 (QSPI Data 1) 63 | 22, // D26 is P0.22 (QSPI Data 2) 64 | 26, // D27 is P0.23 (QSPI Data 3) 65 | 66 | 40, // D28 is P1.08 - IO34 67 | 41, // D29 is P1.01 - IO35 68 | 44, // D30 is P1.02 - IO36 69 | 45, // D31 is P1.03 - IO37 70 | 42, // D32 is P1.10 - IO38 71 | 43, // D33 is P1.11 - IO39 72 | 47, // D34 is P1.15 - IO40 73 | 46, // D35 is P1.14 - IO41 74 | 26, // D36 is P0.26 - IO42 75 | 6, // D37 is P0.6 - IO43 76 | 27, // D38 is P0.27 - IO44 77 | }; 78 | 79 | void initVariant() 80 | { 81 | // LED1 & LED2 82 | pinMode(PIN_LED1, OUTPUT); 83 | ledOff(PIN_LED1); 84 | 85 | pinMode(PIN_LED2, OUTPUT); 86 | ledOff(PIN_LED2); 87 | } 88 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/0.24.0/variants/NINA_B302_ublox/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | // Thanks to great work of [Miguel Alexandre Wisintainer](https://github.com/tcpipchip). 21 | // See [u-blox nina b](https://github.com/khoih-prog/WiFiNINA_Generic/issues/1) 22 | 23 | #include "variant.h" 24 | #include "wiring_constants.h" 25 | #include "wiring_digital.h" 26 | #include "nrf.h" 27 | 28 | const uint32_t g_ADigitalPinMap[] = 29 | { 30 | // D0 .. D13 31 | 29, // D0 is P0.29 (UART RX) 32 | 45, // D1 is P1.13 (UART TX) 33 | 44, // D2 is P1.12 (NFC2) 34 | 31, // D3 is P0.31 (LED1) 35 | 13, // D4 is P0.13 (LED2) 36 | 11, // D5 is P0.11 37 | 9, // D6 is P0.09 38 | 10, // D7 is P0.10 (Button) 39 | 41, // D8 is P1.09 40 | 12, // D9 is P0.12 41 | 14, // D10 is P0.14 42 | 15, // D11 is P0.15 43 | 32, // D12 is P1.00 44 | 7, // D13 is P0.07 45 | 46 | // D14 .. D21 (aka A0 .. A5) 47 | 4, // D14 is P0.04 (A0) 48 | 30, // D15 is P0.30 (A1) 49 | 5, // D16 is P0.05 (A2) 50 | 2, // D17 is P0.02 (A3) 51 | 28, // D18 is P0.28 (A4) 52 | 3, // D19 is P0.03 (A5) 53 | 54 | // D20 .. D21 (aka I2C pins) 55 | 16, // D20 is P0.16 (SDA) 56 | 24, // D21 is P0.24 (SCL) 57 | 58 | // QSPI pins (not exposed via any header / test point) 59 | 19, // D22 is P0.19 (QSPI CLK) 60 | 17, // D23 is P0.17 (QSPI CS) 61 | 20, // D24 is P0.20 (QSPI Data 0) 62 | 21, // D25 is P0.21 (QSPI Data 1) 63 | 22, // D26 is P0.22 (QSPI Data 2) 64 | 26, // D27 is P0.23 (QSPI Data 3) 65 | 66 | 40, // D28 is P1.08 - IO34 67 | 41, // D29 is P1.01 - IO35 68 | 44, // D30 is P1.02 - IO36 69 | 45, // D31 is P1.03 - IO37 70 | 42, // D32 is P1.10 - IO38 71 | 43, // D33 is P1.11 - IO39 72 | 47, // D34 is P1.15 - IO40 73 | 46, // D35 is P1.14 - IO41 74 | 26, // D36 is P0.26 - IO42 75 | 6, // D37 is P0.6 - IO43 76 | 27, // D38 is P0.27 - IO44 77 | }; 78 | 79 | void initVariant() 80 | { 81 | // LED1 & LED2 82 | pinMode(PIN_LED1, OUTPUT); 83 | ledOff(PIN_LED1); 84 | 85 | pinMode(PIN_LED2, OUTPUT); 86 | ledOff(PIN_LED2); 87 | } 88 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/1.0.0/variants/NINA_B302_ublox/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | // Thanks to great work of [Miguel Alexandre Wisintainer](https://github.com/tcpipchip). 21 | // See [u-blox nina b](https://github.com/khoih-prog/WiFiNINA_Generic/issues/1) 22 | 23 | #include "variant.h" 24 | #include "wiring_constants.h" 25 | #include "wiring_digital.h" 26 | #include "nrf.h" 27 | 28 | const uint32_t g_ADigitalPinMap[] = 29 | { 30 | // D0 .. D13 31 | 29, // D0 is P0.29 (UART RX) 32 | 45, // D1 is P1.13 (UART TX) 33 | 44, // D2 is P1.12 (NFC2) 34 | 31, // D3 is P0.31 (LED1) 35 | 13, // D4 is P0.13 (LED2) 36 | 11, // D5 is P0.11 37 | 9, // D6 is P0.09 38 | 10, // D7 is P0.10 (Button) 39 | 41, // D8 is P1.09 40 | 12, // D9 is P0.12 41 | 14, // D10 is P0.14 42 | 15, // D11 is P0.15 43 | 32, // D12 is P1.00 44 | 7, // D13 is P0.07 45 | 46 | // D14 .. D21 (aka A0 .. A5) 47 | 4, // D14 is P0.04 (A0) 48 | 30, // D15 is P0.30 (A1) 49 | 5, // D16 is P0.05 (A2) 50 | 2, // D17 is P0.02 (A3) 51 | 28, // D18 is P0.28 (A4) 52 | 3, // D19 is P0.03 (A5) 53 | 54 | // D20 .. D21 (aka I2C pins) 55 | 16, // D20 is P0.16 (SDA) 56 | 24, // D21 is P0.24 (SCL) 57 | 58 | // QSPI pins (not exposed via any header / test point) 59 | 19, // D22 is P0.19 (QSPI CLK) 60 | 17, // D23 is P0.17 (QSPI CS) 61 | 20, // D24 is P0.20 (QSPI Data 0) 62 | 21, // D25 is P0.21 (QSPI Data 1) 63 | 22, // D26 is P0.22 (QSPI Data 2) 64 | 26, // D27 is P0.23 (QSPI Data 3) 65 | 66 | 40, // D28 is P1.08 - IO34 67 | 41, // D29 is P1.01 - IO35 68 | 44, // D30 is P1.02 - IO36 69 | 45, // D31 is P1.03 - IO37 70 | 42, // D32 is P1.10 - IO38 71 | 43, // D33 is P1.11 - IO39 72 | 47, // D34 is P1.15 - IO40 73 | 46, // D35 is P1.14 - IO41 74 | 26, // D36 is P0.26 - IO42 75 | 6, // D37 is P0.6 - IO43 76 | 27, // D38 is P0.27 - IO44 77 | }; 78 | 79 | void initVariant() 80 | { 81 | // LED1 & LED2 82 | pinMode(PIN_LED1, OUTPUT); 83 | ledOff(PIN_LED1); 84 | 85 | pinMode(PIN_LED2, OUTPUT); 86 | ledOff(PIN_LED2); 87 | } 88 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/1.1.0/variants/NINA_B302_ublox/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | // Thanks to great work of [Miguel Alexandre Wisintainer](https://github.com/tcpipchip). 21 | // See [u-blox nina b](https://github.com/khoih-prog/WiFiNINA_Generic/issues/1) 22 | 23 | #include "variant.h" 24 | #include "wiring_constants.h" 25 | #include "wiring_digital.h" 26 | #include "nrf.h" 27 | 28 | const uint32_t g_ADigitalPinMap[] = 29 | { 30 | // D0 .. D13 31 | 29, // D0 is P0.29 (UART RX) 32 | 45, // D1 is P1.13 (UART TX) 33 | 44, // D2 is P1.12 (NFC2) 34 | 31, // D3 is P0.31 (LED1) 35 | 13, // D4 is P0.13 (LED2) 36 | 11, // D5 is P0.11 37 | 9, // D6 is P0.09 38 | 10, // D7 is P0.10 (Button) 39 | 41, // D8 is P1.09 40 | 12, // D9 is P0.12 41 | 14, // D10 is P0.14 42 | 15, // D11 is P0.15 43 | 32, // D12 is P1.00 44 | 7, // D13 is P0.07 45 | 46 | // D14 .. D21 (aka A0 .. A5) 47 | 4, // D14 is P0.04 (A0) 48 | 30, // D15 is P0.30 (A1) 49 | 5, // D16 is P0.05 (A2) 50 | 2, // D17 is P0.02 (A3) 51 | 28, // D18 is P0.28 (A4) 52 | 3, // D19 is P0.03 (A5) 53 | 54 | // D20 .. D21 (aka I2C pins) 55 | 16, // D20 is P0.16 (SDA) 56 | 24, // D21 is P0.24 (SCL) 57 | 58 | // QSPI pins (not exposed via any header / test point) 59 | 19, // D22 is P0.19 (QSPI CLK) 60 | 17, // D23 is P0.17 (QSPI CS) 61 | 20, // D24 is P0.20 (QSPI Data 0) 62 | 21, // D25 is P0.21 (QSPI Data 1) 63 | 22, // D26 is P0.22 (QSPI Data 2) 64 | 26, // D27 is P0.23 (QSPI Data 3) 65 | 66 | 40, // D28 is P1.08 - IO34 67 | 41, // D29 is P1.01 - IO35 68 | 44, // D30 is P1.02 - IO36 69 | 45, // D31 is P1.03 - IO37 70 | 42, // D32 is P1.10 - IO38 71 | 43, // D33 is P1.11 - IO39 72 | 47, // D34 is P1.15 - IO40 73 | 46, // D35 is P1.14 - IO41 74 | 26, // D36 is P0.26 - IO42 75 | 6, // D37 is P0.6 - IO43 76 | 27, // D38 is P0.27 - IO44 77 | }; 78 | 79 | void initVariant() 80 | { 81 | // LED1 & LED2 82 | pinMode(PIN_LED1, OUTPUT); 83 | ledOff(PIN_LED1); 84 | 85 | pinMode(PIN_LED2, OUTPUT); 86 | ledOff(PIN_LED2); 87 | } 88 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/1.2.0/variants/NINA_B302_ublox/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | // Thanks to great work of [Miguel Alexandre Wisintainer](https://github.com/tcpipchip). 21 | // See [u-blox nina b](https://github.com/khoih-prog/WiFiNINA_Generic/issues/1) 22 | 23 | #include "variant.h" 24 | #include "wiring_constants.h" 25 | #include "wiring_digital.h" 26 | #include "nrf.h" 27 | 28 | const uint32_t g_ADigitalPinMap[] = 29 | { 30 | // D0 .. D13 31 | 29, // D0 is P0.29 (UART RX) 32 | 45, // D1 is P1.13 (UART TX) 33 | 44, // D2 is P1.12 (NFC2) 34 | 31, // D3 is P0.31 (LED1) 35 | 13, // D4 is P0.13 (LED2) 36 | 11, // D5 is P0.11 37 | 9, // D6 is P0.09 38 | 10, // D7 is P0.10 (Button) 39 | 41, // D8 is P1.09 40 | 12, // D9 is P0.12 41 | 14, // D10 is P0.14 42 | 15, // D11 is P0.15 43 | 32, // D12 is P1.00 44 | 7, // D13 is P0.07 45 | 46 | // D14 .. D21 (aka A0 .. A5) 47 | 4, // D14 is P0.04 (A0) 48 | 30, // D15 is P0.30 (A1) 49 | 5, // D16 is P0.05 (A2) 50 | 2, // D17 is P0.02 (A3) 51 | 28, // D18 is P0.28 (A4) 52 | 3, // D19 is P0.03 (A5) 53 | 54 | // D20 .. D21 (aka I2C pins) 55 | 16, // D20 is P0.16 (SDA) 56 | 24, // D21 is P0.24 (SCL) 57 | 58 | // QSPI pins (not exposed via any header / test point) 59 | 19, // D22 is P0.19 (QSPI CLK) 60 | 17, // D23 is P0.17 (QSPI CS) 61 | 20, // D24 is P0.20 (QSPI Data 0) 62 | 21, // D25 is P0.21 (QSPI Data 1) 63 | 22, // D26 is P0.22 (QSPI Data 2) 64 | 26, // D27 is P0.23 (QSPI Data 3) 65 | 66 | 40, // D28 is P1.08 - IO34 67 | 41, // D29 is P1.01 - IO35 68 | 44, // D30 is P1.02 - IO36 69 | 45, // D31 is P1.03 - IO37 70 | 42, // D32 is P1.10 - IO38 71 | 43, // D33 is P1.11 - IO39 72 | 47, // D34 is P1.15 - IO40 73 | 46, // D35 is P1.14 - IO41 74 | 26, // D36 is P0.26 - IO42 75 | 6, // D37 is P0.6 - IO43 76 | 27, // D38 is P0.27 - IO44 77 | }; 78 | 79 | void initVariant() 80 | { 81 | // LED1 & LED2 82 | pinMode(PIN_LED1, OUTPUT); 83 | ledOff(PIN_LED1); 84 | 85 | pinMode(PIN_LED2, OUTPUT); 86 | ledOff(PIN_LED2); 87 | } 88 | -------------------------------------------------------------------------------- /Packages_Patches/adafruit/hardware/nrf52/1.3.0/variants/NINA_B302_ublox/variant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2014-2015 Arduino LLC. All right reserved. 3 | Copyright (c) 2016 Sandeep Mistry All right reserved. 4 | Copyright (c) 2018, Adafruit Industries (adafruit.com) 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | See the GNU Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | // Thanks to great work of [Miguel Alexandre Wisintainer](https://github.com/tcpipchip). 21 | // See [u-blox nina b](https://github.com/khoih-prog/WiFiNINA_Generic/issues/1) 22 | 23 | #include "variant.h" 24 | #include "wiring_constants.h" 25 | #include "wiring_digital.h" 26 | #include "nrf.h" 27 | 28 | const uint32_t g_ADigitalPinMap[] = 29 | { 30 | // D0 .. D13 31 | 29, // D0 is P0.29 (UART RX) 32 | 45, // D1 is P1.13 (UART TX) 33 | 44, // D2 is P1.12 (NFC2) 34 | 31, // D3 is P0.31 (LED1) 35 | 13, // D4 is P0.13 (LED2) 36 | 11, // D5 is P0.11 37 | 9, // D6 is P0.09 38 | 10, // D7 is P0.10 (Button) 39 | 41, // D8 is P1.09 40 | 12, // D9 is P0.12 41 | 14, // D10 is P0.14 42 | 15, // D11 is P0.15 43 | 32, // D12 is P1.00 44 | 7, // D13 is P0.07 45 | 46 | // D14 .. D21 (aka A0 .. A5) 47 | 4, // D14 is P0.04 (A0) 48 | 30, // D15 is P0.30 (A1) 49 | 5, // D16 is P0.05 (A2) 50 | 2, // D17 is P0.02 (A3) 51 | 28, // D18 is P0.28 (A4) 52 | 3, // D19 is P0.03 (A5) 53 | 54 | // D20 .. D21 (aka I2C pins) 55 | 16, // D20 is P0.16 (SDA) 56 | 24, // D21 is P0.24 (SCL) 57 | 58 | // QSPI pins (not exposed via any header / test point) 59 | 19, // D22 is P0.19 (QSPI CLK) 60 | 17, // D23 is P0.17 (QSPI CS) 61 | 20, // D24 is P0.20 (QSPI Data 0) 62 | 21, // D25 is P0.21 (QSPI Data 1) 63 | 22, // D26 is P0.22 (QSPI Data 2) 64 | 26, // D27 is P0.23 (QSPI Data 3) 65 | 66 | 40, // D28 is P1.08 - IO34 67 | 41, // D29 is P1.01 - IO35 68 | 44, // D30 is P1.02 - IO36 69 | 45, // D31 is P1.03 - IO37 70 | 42, // D32 is P1.10 - IO38 71 | 43, // D33 is P1.11 - IO39 72 | 47, // D34 is P1.15 - IO40 73 | 46, // D35 is P1.14 - IO41 74 | 26, // D36 is P0.26 - IO42 75 | 6, // D37 is P0.6 - IO43 76 | 27, // D38 is P0.27 - IO44 77 | }; 78 | 79 | void initVariant() 80 | { 81 | // LED1 & LED2 82 | pinMode(PIN_LED1, OUTPUT); 83 | ledOff(PIN_LED1); 84 | 85 | pinMode(PIN_LED2, OUTPUT); 86 | ledOff(PIN_LED2); 87 | } 88 | --------------------------------------------------------------------------------