Arduino functions that match with stm32 ones

Hello Dears, I hope you’re all doing well.

from arduino we have “digitalRead” function that reads the state of an entire input port. Also we have “digitalwrite” function that takes in parameter an output variable that can be put either at a lower or higher state.

Well, I want to know what are they equivalence in STM32? I mean functions that reads entire input ports and write to an entire output ports.

Thanks in advance.

1 Like

Their is no such functions in HAL. You have to write your own functions. But their a way to use Arduino framework on Stm32 boards. I am not sure though, you can use PlatformIO for the same.

1 Like

Thanks for your comment Sir. I will try to write my own function as you suggested.

1 Like