| 101 | } |
| 102 | |
| 103 | void CFastLED::init() { |
| 104 | // Call platform-specific initialization once |
| 105 | // Uses the trampoline pattern: platforms/init.h dispatches to platform-specific headers |
| 106 | // FL_RUN_ONCE ensures this is only called once, even if init() is called multiple times |
| 107 | FL_RUN_ONCE(fl::platforms::init()); |
| 108 | } |
| 109 | |
| 110 | int CFastLED::size() { |
| 111 | return (*this)[0].size(); |