esp32:direct_pin_data_copy
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| esp32:direct_pin_data_copy [2019/09/27 07:26] – aistis | esp32:direct_pin_data_copy [2019/09/27 07:34] (current) – aistis | ||
|---|---|---|---|
| Line 26: | Line 26: | ||
| } | } | ||
| } | } | ||
| + | </ | ||
| + | |||
| + | |||
| + | speed is like 3.5 times faster | ||
| + | |||
| + | * 07: | ||
| + | * 07: | ||
| + | |||
| + | < | ||
| + | auto t1 = micros(); | ||
| + | int v1; | ||
| + | for (int i=0; | ||
| + | v1 = (GPIO_REG_READ(GPIO_IN_REG) & BIT(25)); | ||
| + | auto t2 = micros(); | ||
| + | auto t3 = micros(); | ||
| + | for (int i=0; | ||
| + | v1 = digitalRead(25); | ||
| + | auto t4 = micros(); | ||
| + | Serial.printf(" | ||
| + | Serial.printf(" | ||
| </ | </ | ||
esp32/direct_pin_data_copy.1569558380.txt.gz · Last modified: by aistis
