Skip to content

Libraries not compatible with the New Arduino UNO Q #18

@mauringo

Description

@mauringo

Hello,

Running on the new arduino uno Q and installing the libraries inside takes arduino uno to stop answering back!

bmv080.init();

Breaks the system

#include "SparkFun_BMV080_Arduino_Library.h" // CTRL+Click here to get the library: http://librarymanager/All#SparkFun_BMV080
#include <Wire.h>
#include <Arduino_RouterBridge.h>

SparkFunBMV080 bmv080; // Create an instance of the BMV080 class
#define BMV080_ADDR 0x57  // SparkFun BMV080 Breakout defaults to 0x57

// Some Dev boards have their QWIIC connector on Wire or Wire1
// This #ifdef will help this sketch work across more products


#define wirePort Wire1
int myinit = 0;
void setup()
{
    Monitor.begin();

    while (!Monitor)
        delay(10); // Wait for Monitor to become available.
    // Necessary for boards with native USB (like the SAMD51 Thing+).
    // For a final version of a project that does not need Monitor debug (or a USB cable plugged in),
    // Comment out this while loop, or it will prevent the remaining code from running.

    Monitor.println();
    Monitor.println("BMV080 Example 1 - Basic Readings");

    wirePort.begin();

   

    // wirePort.setClock(400000); //Increase I2C data rate to 400kHz

    /* Initialize the Sensor (read driver, open, reset, id etc.)*/
  
}

void loop()
{
  myinit ++;
 if (bmv080.begin(BMV080_ADDR, wirePort) == false)
    {
        Monitor.println(
            "BMV080 not detected at default I2C address. Check your jumpers and the hookup guide. Freezing...");
        while (1)
            ;
    }
  
   Monitor.println("BMV080 found!");
    if(myinit==10){
        Monitor.println(
            "ini...");
    /* Initialize the Sensor (read driver, open, reset, id etc.)*/
       bmv080.init();
    }
    delay(100);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions