Your ROOT_URL in app.ini is https://source.parasitstudio.de:63000/ but you are visiting https://source.parasitstudio.de/wirtz/MicroDexed/src/commit/70a53fded39c305aa7805d8811ea286f038175f3/third-party/TeensyTimerTool/examples/03_Applications/DoubleExposure/DoubleExposure.ino You should set ROOT_URL correctly, otherwise the web may not work correctly.

38 lines
1.1 KiB

#include "ResponsiveAnalogRead.h"
#include "SystemController.h"
constexpr unsigned potPin = A0;
ResponsiveAnalogRead pot(potPin, false);
SystemController sysControl;
void setup()
{
sysControl.begin();
sysControl.setExposureDelay(250); // set exposure delay (time between two exposures) to 250 µs
sysControl.shoot(); // do a manual exposure
delay(10);
sysControl.setExposureDelay(500); // same with 500µs delay between exposures
sysControl.shoot();
sysControl.continousMode(true); // start continously shooting
delay(1000);
sysControl.continousMode(false); // stop after one second
delay(500);
sysControl.continousMode(true); // start again
}
void loop()
{
// --> Uncomment if you have a control voltage on the pot pin <--
// pot.update();
// if (pot.hasChanged())
// {
// unsigned expDelay = map(pot.getValue(), 0, 1023, 100, 500); // 0-3.3V analog value, maps to 100-500
// controller.setExposureDelay(expDelay);
// Serial.printf("Exposure Delay: %u µs\n", expDelay);
// }
}