Giter VIP home page Giter VIP logo

Comments (4)

ladyada avatar ladyada commented on August 23, 2024

oof
not really because we dont know what pins are being used for Wire...

from adafruit_busio.

caternuson avatar caternuson commented on August 23, 2024

:( good point....so probably not much that can be done, other than "if code locks up, check wiring".

This relates to this for more context:
adafruit/Adafruit_ADS1X15#64

And just to illustrate the issue more lower level. Here's same thing just using Wire directly:

#include <Wire.h>

#define ADDRESS 0x42

void setup() {
  Serial.begin(9600);
  while(!Serial);
  Serial.println("I2C TEST");

  Serial.println("Create.");
  TwoWire *theWire = &Wire;

  Serial.println("Begin.");
  theWire->begin();

  Serial.println("Write.");
  uint8_t buffer[1];
  buffer[0] = ADDRESS;
  theWire->beginTransmission(ADDRESS);
  theWire->write(buffer, 1);
  theWire->endTransmission();

  Serial.println("Done.");
}

void loop() {
}

With pull ups:
Screenshot from 2021-04-01 14-21-47

Without pull ups:
Screenshot from 2021-04-01 14-22-09

from adafruit_busio.

ladyada avatar ladyada commented on August 23, 2024

yeah basically - its part of why we added it to Circuit Python. in Arduino there's just no access to that information

from adafruit_busio.

caternuson avatar caternuson commented on August 23, 2024

ok, gonna close this then. good to at least have something to point to for when this comes up.

from adafruit_busio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.