Using the inputs and outputs (multiple at once)
Posted: Sun Oct 01, 2017 4:19 pm
Hello,
I have just received my first ESP12 and have started to play around with it. My goal is to rapidly send a byte of data to a number of receivers (4 to 8). Today I have managed to create and send an UDP broadcast message., which I expect to be the fastest way to send the same message to multiple receivers (if there are any better ways I would love to hear about them).
The next step for me is to get the byte of data, this value has to be loaded from the GPIO pins. I did find some examples for manipulating a single pin (mostly switching an LED on), but could not find a clear example for reading multiple pins.
In the Arduino Uno it is possible to load 8 GPIO pins that belong to the same bank at once. In the ESP12 I don't see that kind GPIO clusters, but internally I would expect them to be clustered and that would mean that a similar IO-reading method should also be available.
My question therefor is, what is the most effective way to read 8 GPIO pins? And can I determine which pins will be used (I would prefer to keep the serial monitor available if possible)?
Kind regards, Nico
I have just received my first ESP12 and have started to play around with it. My goal is to rapidly send a byte of data to a number of receivers (4 to 8). Today I have managed to create and send an UDP broadcast message., which I expect to be the fastest way to send the same message to multiple receivers (if there are any better ways I would love to hear about them).
The next step for me is to get the byte of data, this value has to be loaded from the GPIO pins. I did find some examples for manipulating a single pin (mostly switching an LED on), but could not find a clear example for reading multiple pins.
In the Arduino Uno it is possible to load 8 GPIO pins that belong to the same bank at once. In the ESP12 I don't see that kind GPIO clusters, but internally I would expect them to be clustered and that would mean that a similar IO-reading method should also be available.
My question therefor is, what is the most effective way to read 8 GPIO pins? And can I determine which pins will be used (I would prefer to keep the serial monitor available if possible)?
Kind regards, Nico