Hi again ajb2k3,
I am not sure why but it does not seem to work with my set up.
Here is the code I am using for the stickC to trigger camera. Where would I put the code you suggested? Thanks in advance!
#include <M5StickC.h>
#include <BlueMagic32.h>
#define LED_PIN 10
#define TRIGGER G0
void setup()
{
M5.begin();
Serial.begin(115200);
pinMode(LED_PIN, OUTPUT);
digitalWrite(LED_PIN, HIGH);
BMDConnection.begin("BlueMagic32");
BMDControl = BMDConnection.connect();
M5.Lcd.setTextColor(TFT_WHITE);
M5.Lcd.setTextSize(2);
M5.Lcd.setRotation(3);
M5.Lcd.fillScreen(TFT_BLUE);
}
void loop()
{
// read data
int value = digitalRead(36);// read the pin(0: not detectd 1: detected)
M5.update();
if (M5.BtnB.wasPressed())
{
ESP.restart();
}
if (BMDConnection.available())
{
}
if (M5.BtnA.wasPressed())
{
BMDControl->toggleRecording();
}
}