-
Sun 2021.09.12
Hi @lshk it appears you may be the first with this specific device functionality.
There seems to be an apparent mis-understanding of how Javascript timer events work in comparrison with Arduino delays.
While Arduino code continually loops and toggles a pin with a delay, the timeout L57-L61 that triggers the L58 shot() function, will run after the timeout interval has elapsed.
This will take a bit of finagling, but first check out with it's live online 'Try It' windows
-
Mon 2021.09.13
Hi @lshk and thank you for the links post #5 to the overall project idea. I now have a better idea as to what functionality is required.
re post #1: 'It works great, but I need to implement the same on esp32.'
I note from your post #1 that you have existing 'C' source for Arduino. As I re-read the above requirement, it dawned on me a very basic question. Why not use the same code and just flash to the ESP32 from within the Arduino IDE?
I could be missing something very basic, but this stood right out as I read back through the posts.
Maybe you are in the process of creating an Instructable or tutorial to share here, done in Javascript instead? I'm curious, but it seems that is the easiest way to skin this cat!
Hi!
I have an IR intervalometer for a Sony a7 camera on an Arduino Nano. It works great, but I need to implement the same on esp32.
Arduino simplified code:
This is JS for Espruino, just for one shot:
And this code doesn't work... Where did I go wrong?