Closed Alexandr010360 closed 9 months ago
Loop over the different banks and call CCAbsoluteEncoder::setValue(value, bank)
:
template <size_t NumBanks>
void initEncoder(Bankable::ManyAddresses::CCAbsoluteEncoder<NumBanks> &enc, uint16_t val) {
for (setting_t bank = 0; bank < NumBanks; ++bank)
enc.setValue(val, bank);
}
void setup() {
initEncoder(enc, 0x40);
// ...
}
Thank you very much! Everything worked out! Everything is ingeniously simple for you! And the library is just great! For all occasions! I wish you good health and creative success!