Somfy_Remote_Lib icon indicating copy to clipboard operation
Somfy_Remote_Lib copied to clipboard

SendLow/High methods Architecture dependency/limits - STM32 platform

Open bittmanv opened this issue 2 months ago • 1 comments

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

bittmanv avatar Nov 29 '25 15:11 bittmanv

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

Legion2 avatar Dec 08 '25 22:12 Legion2