Giter Site home page Giter Site logo

USIWire compile error about usiwire HOT 4 CLOSED

puuu avatar puuu commented on June 2, 2024
USIWire compile error

from usiwire.

Comments (4)

puuu avatar puuu commented on June 2, 2024

Please show a minimal example and describe the settings and the version you are using (ATTiny Core).

I cannot reproduce that. The examples TestMaster and TestSlave compile for me. Tested with:

  • Arduino: 1.8.12
  • ATTinyCore: 1.3.3
  • Board: ATtiny25/45/85
  • Chip: ATtiny85

from usiwire.

jbaumann avatar jbaumann commented on June 2, 2024

[copied from original issue]
Ok, I'm not sure how this happens, but if you use "Sketch - Include Library - Add .ZIP Library", then the file contains only the following: "../USI_TWI_Slave/usi_io.h". This is clearly wrong and two possible explanations are on the top of my mind:

  • The original author uses a symbolic link that is interpreted wrongly by the Arduino IDE when unpacking the files
  • The Zip-Archive knows that both files are the same and saves only a reference, which again is interpreted wrongly by the Arduino IDE
    In both case I would see the problem in the Arduino IDE.

Two simple possible fixes:

  • Copy the file from the TWI_Slave over to the TWI_Master
  • Remove the directory, unpack the library manually and copy it to your libraries folder

I suggest the second way as the general way to install libraries. This ensures that everything that goes wrong comes from your own errors.

from usiwire.

adrianmihalko avatar adrianmihalko commented on June 2, 2024

Release 0.2.0 solved the issue.

from usiwire.

puuu avatar puuu commented on June 2, 2024

Thank you for reporting and pointing the issue. Version 0.2.0 was released, which no longer contains symbolic links.

According to the Library Manager FAQ, symlinks are no longer allowed, this was documented in February 2018. This is probably also the reason why USIWrire disappeared from the Arduino Library Manager.

from usiwire.

Related Issues (13)

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.