Paul expressed his concerns:
I have three areas of concern about this 1.5 library spec.
1: Impact on end user feedback & community participation
2: Backwards compatibility with existing libraries
3: Effectiveness in describing required architecture
to solve this problem he propose:
Replace "architectures=" and "core-dependencies="
with "board-feature-required=" and "core-feature-required=".
Add feature lines in boards.txt and add features.txt in the core folder.
Paul may you elaborate a bit on your idea?
Why "features" doesn't lead to the same problem?
C
Cristian,
I'm not Paul, but I see this as allowing cores and boards to 'publish' what features they offer, and libraries to list which features they 'require' - thus allowing the IDE to dynamically show/hide/use libraries based on boards/cores fulfilling library requirements.
Just my two cents :)
Pete
--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.
The Variant="328p" and Variant ="32u4" might both say "I'm AVR", "I have TIMER", "I have DigitalPins" and "I have AnalogPins"The Uno Board would say"I'm a '328P" as well as "Digital on pins 1-18", "PWM is supported on 3,5,6,9,10,11, "Analog pins are 14,15,16,17,18,19" and "InputCompare is on pin 8",The Leonardo would say "I'm a '32u4" as well as "Digital on pins 1-18", "PWM is supported on 3,5,6,9,10,11,12,13" "Analog pins are 4,6,8,9,10,11,14,15,16,17,18,19" and "InputCompare is on pin 4My library would say "I need AVR", "I can use Uno", "I can use Leonardo", "I need InputCompare", "I need DigitalOutput" and "I need TIMER"
- We should focus on making a library specify on which boards it
_might_ work (instead of trying to define on which boards it will
certainly work). Any boards which aren't specified as "might work"
are automatically marked as "will not work".
- The current architectures= property is fine to specify the
architectures on which the library "might work".
- We could add an explicit list of board names