GithubHelp home page GithubHelp logo

Teensy 3.2 not compiling about pcf8574_library HOT 6 CLOSED

xreef avatar xreef commented on June 16, 2024
Teensy 3.2 not compiling

from pcf8574_library.

Comments (6)

xreef avatar xreef commented on June 16, 2024

Hi,
I don't have a teensy, but
what kind of error do you have?
Bye

from pcf8574_library.

dimitre avatar dimitre commented on June 16, 2024

I can try to compile here installing teensyduino and selecting the board, even without the boards.
trying to compile any example I got this errors

/Users/z/Documents/Arduino/libraries/PCF8574_library/PCF8574.cpp: In member function 'void PCF8574::begin()':
/Users/z/Documents/Arduino/libraries/PCF8574_library/PCF8574.cpp:160:26: error: no matching function for call to 'TwoWire::begin(uint8_t&, uint8_t&)'
   _wire->begin(_sda, _scl);
                          ^
In file included from /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Wire/Wire.h:29:0,
                 from /Users/z/Documents/Arduino/libraries/PCF8574_library/PCF8574.h:31,
                 from /Users/z/Documents/Arduino/libraries/PCF8574_library/PCF8574.cpp:28:
/Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Wire/WireKinetis.h:97:7: note: candidate: void TwoWire::begin()
  void begin();
       ^
/Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Wire/WireKinetis.h:97:7: note:   candidate expects 0 arguments, 2 provided
/Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Wire/WireKinetis.h:98:7: note: candidate: void TwoWire::begin(uint8_t)
  void begin(uint8_t address);
       ^
/Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Wire/WireKinetis.h:98:7: note:   candidate expects 1 argument, 2 provided
/Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Wire/WireKinetis.h:99:7: note: candidate: void TwoWire::begin(int)
  void begin(int address) {
       ^
/Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Wire/WireKinetis.h:99:7: note:   candidate expects 1 argument, 2 provided
Error compiling for board Teensy 3.2 / 3.1.

Thank you!

from pcf8574_library.

xreef avatar xreef commented on June 16, 2024

Hi,
I add a fix,
but I use TEENSYDUINO key and I test It in Teensyduino
Please test this fix if It's correct.
Bye Renzo

from pcf8574_library.

dimitre avatar dimitre commented on June 16, 2024

@xreef thanks for the quick fix. I can compile and upload to Teensy.
For some reason (probably my fault) I can't make it work with a simple setup I'm testing here (push button handling, with or without interrupt).
I have a protoboard and everything is working with Wire.h
Let me know if you want some additional testing

from pcf8574_library.

xreef avatar xreef commented on June 16, 2024

Please, send me your working code with wire.
Thanks

from pcf8574_library.

xreef avatar xreef commented on June 16, 2024

Close for inactivity

from pcf8574_library.

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.