adafruit / Adafruit_ILI9341

Library for Adafruit ILI9341 displays
415 stars 283 forks source link

tamplates based design #69

Closed ag88 closed 3 years ago

ag88 commented 3 years ago

hi would Adafruit consider making a c++ template based design for this? a reason is that as the 'platforms' get more varied it adds more code bloat as each 'platform' (mcu/boards) is added e.g. platforms that supports hardware SPI probably won't need software SPI and that code is simply unused but built and compiled into the binaries.

common codes (e.g. the public, protected (callback) api parts) can go into the template, so that each different 'platform' (hard spi, soft spi, mcu, board etc) is perhaps a different class

ladyada commented 3 years ago

we already do, its called Adafruit_GFX uncalled code is not compiled in - your compiler does all these things for you