Search found 4 matches

by olney_one
Thu Sep 19, 2024 9:06 am
Forum: General Discussion
Topic: Problem accessing environment variable in code
Replies: 0
Views: 263

Problem accessing environment variable in code

I have read a few threads here and elsewhere on how to do this. This is what I have come up with so far: 1. Define the environment variable in my shell start-up. I can confirm this is working by doing: # echo $SECRET too secret to be in the repo # 2. Create a build-flag in platformio.ini: ... build_...
by olney_one
Mon Sep 16, 2024 9:52 pm
Forum: General Discussion
Topic: What is the most accurate way of determining the time between two interrupt events?
Replies: 3
Views: 621

What is the most accurate way of determining the time between two interrupt events?

I am new to ESP32s. I have an application that generates two interrupts on separate GPIO lines. Accessing timestamps for real time seems to be an integer. Would using this in conjunction with a CPU clock tick count be the most accurate way of measuring the interval? Or is there a better way?