This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Support for Arduino Uno Wifi R4
#3
At first sight, it looks that the new Unos operate exactly like the IoTs. The following patch makes it work for the time being (the libraries are stored in the sketchbook folder):
Code:
diff -dur phyphox_BLE.std/library.properties phyphox_BLE/library.properties
--- phyphox_BLE.std/library.properties
+++ phyphox_BLE/library.properties
@@ -6,5 +6,5 @@
paragraph=The purpose of this library is to use the open source phyphox app (see https://phyphox.org) to plot sensor data on your phone. phyphox is much more than only 'plotting your data'. You can also perform data analysis with it or access your phones sensors to use in your Arduino project.
category=Other
url=https://phyphox.org/arduino
-architectures=mbed,esp32,samd,mbed_nano
+architectures=mbed,esp32,samd,mbed_nano,renesas_uno
includes=phyphoxBle.h
diff -dur phyphox_BLE.std/src/phyphoxBLE_NanoIOT.cpp phyphox_BLE/src/phyphoxBLE_NanoIOT.cpp
--- phyphox_BLE.std/src/phyphoxBLE_NanoIOT.cpp
+++ phyphox_BLE/src/phyphoxBLE_NanoIOT.cpp
@@ -1,4 +1,4 @@
-#ifdef ARDUINO_SAMD_NANO_33_IOT
+#if defined(ARDUINO_SAMD_NANO_33_IOT) || defined(ARDUINO_UNOR4_WIFI)

#include "phyphoxBLE_NanoIOT.h"
#include "Arduino.h"
diff -dur --minimal phyphox_BLE.std/src/phyphoxBle.h phyphox_BLE/src/phyphoxBle.h
--- phyphox_BLE.std/src/phyphoxBle.h
+++ phyphox_BLE/src/phyphoxBle.h
@@ -23,7 +23,7 @@

#elif defined(ESP32)
     #include "phyphoxBLE_ESP32.h"
-#elif defined(ARDUINO_SAMD_NANO_33_IOT)
+#elif defined(ARDUINO_SAMD_NANO_33_IOT) || defined(ARDUINO_UNOR4_WIFI)
     #include <ArduinoBLE.h>
     #include "phyphoxBLE_NanoIOT.h"
#else

Please note that you also need to add “PhyphoxBLE::poll();” to the “loop()” function and you must provide a name in “PhyphoxBLE::start("<name>");” (likely a bug in our BLE driver for the IoT)…
Reply


Messages In This Thread
Support for Arduino Uno Wifi R4 - by kaddigat - 09-11-2023, 10:44 AM
RE: Support for Arduino Uno Wifi R4 - by Jens Noriʇzsɔɥ - 09-13-2023, 02:31 PM
RE: Support for Arduino Uno Wifi R4 - by HannoK - 09-14-2023, 12:52 PM
RE: Support for Arduino Uno Wifi R4 - by HannoK - 09-15-2023, 09:10 AM
RE: Support for Arduino Uno Wifi R4 - by Ekfereth - 11-19-2023, 08:38 AM

Forum Jump: