Quantcast
Viewing all articles
Browse latest Browse all 10211

Re: RAMPS for Due!

Quote
T3P3
The additional libraries for the RepRap Firmware are here:

Hey. Thank you for this information, I'll give it another shot.

As far as pins are concerned, in my firmware I use some advanced C++ template metaprogramming to get nice and efficient code; link. Don't mind the Context, Position and other boilerplate. Though this isn't exactly easy to integrate. It would require more template usage, such as type lists to make and work with a list of pins (using StepPins=MakeTypeList< FooPin, BarPin, BazPin > ) and to implement a helper function setStepPin(int index, bool value), index only being known at runtime.

On the other hand, why don't you just include all pins in your SamNonDuePin.cpp - preferably with the same numbers as Arduino, and add extra numbers for those that were missing? I don't think it's a good idea to require (mostly) duplicating this code for every possible board. You can still define board-specific aliases for pins, of course.

Viewing all articles
Browse latest Browse all 10211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>