sonyhome / FAB_LED

Fast Arduino Bitbang LED library supports programmable LEDs (WS2812B, APA102...), color palettes for Arduino AVR
GNU General Public License v2.0
126 stars 16 forks source link

Add support for ARDUINO_ARCH_MEGAAVR #35

Closed SpenceKonde closed 3 years ago

SpenceKonde commented 3 years ago

This supports the new-ish tinyAVR 0/1/2-series (supported on Arduino by my megaTinyCore), megaAVR 0-series (official Uno Wifi Rev. 2, Nano Every, and the whole product line supported for Arduino by MCUdude's MegaCoreX) and the latest and greatest, the AVR Dx-line (supported on Arduino by my DxCore).

It looks like my editor also auto-trimmed some trailing whitespace that was present on a few scattered lines (I have that set because my cores have formatting CI that complains if I have trailing whitespace on any line.)

It was tested on tinyAVR 1-series parts, and the port handling and sbi/cbi timing is the same on the rest of them.