Git Product home page Git Product logo

marlin's People

Contributors

alexborro avatar banjer avatar bkubicek avatar borislandoni avatar buildrob avatar codexmas avatar cylindric avatar daid avatar dim3nsioneer avatar drf5n avatar erikzalm avatar galexander1 avatar ijackson avatar ixce avatar jcrocholl avatar jothan avatar kiyoshigawa avatar linagee avatar maikstohn avatar markfinn avatar neildarlow avatar njprossi avatar nothinman avatar scuba82 avatar setar avatar stb3 avatar thinkyhead avatar triffid avatar whosawhatsis avatar wolfmanjm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

marlin's Issues

Definition of 'analogInputToDigitalPin(p)' seems to be wrong

That definition

#define analogInputToDigitalPin(p)  ((p < NUM_ANALOG_INPUTS) ? (p) + 24 : -1)

can be found in

  • Marlin / ArduinoAddons / Arduino_1.x.x / hardware / Sanguino / variants / standard / pins_arduino.h:113
  • Marlin / ArduinoAddons / Arduino_1.x.x / hardware / Melzi / variants / standard / pins_arduino.h:113

The wrong definition prohibits setting Pin Ext A1 on the extension connector via M42 P30 Snnn. That pin is connected to Port A1, which is Analog Pin 1, Digital Pin 30. The wrong definition maps AI6 (used for the bed temp sensor) to D30 (24+6=30) which in turn rejects M42 P30. It should map AI6 to D25 (31-6=25).
Thus the definition should read

#define analogInputToDigitalPin(p)  ((p < NUM_ANALOG_INPUTS) ? 31 - (p) : -1)

since the digital port numbering is reversed on port A.

On a side note: the above files also redefine TIMER5A, TIMER5B, TIMER5C which causes some undesired warnings during compilation. It would be best to just delete these definitions since the 1284P doesn't seem to have these timers.

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.