Somfy_Remote_Lib
Somfy_Remote_Lib copied to clipboard
SendLow/High methods Architecture dependency/limits - STM32 platform
Hi,
Thank for your library....
I'm using your library on my MQTT to 868/433 gateway based on STM32.
During porting to my code I have lost almost 3 hours, until I found, that methods SendLow/SendHigh support only ESP or ATMega platforms whic are explicitly listed in #ifdefs , but both platforms are using same statements
As is there any plan to implement some fast writes for AVR platofm , maybe will be better/more open construct will be
#ifdef ARDUINO_ARCH_AVR
// MAYBE SOME FASTER METHODS FOR AVR
digitalWrite(emitterPin, HIGH);
delayMicroseconds(durationInMicroseconds);
#else
// will cover most of fast/modern chips
digitalWrite(emitterPin, HIGH);
delayMicroseconds(durationInMicroseconds);
#endif
Regards, Vaclav
Hi Vaclav, Thanks for the proposed improvements, I'm not actively working on this library anymore, but feel free to open an PR with improvements and I'm happy to review and merge.
Best regards, Leon