diff --git a/src/OV767X_TinyMLx.h b/src/OV767X_TinyMLx.h index 51108e5..f1f0e86 100644 --- a/src/OV767X_TinyMLx.h +++ b/src/OV767X_TinyMLx.h @@ -8,19 +8,7 @@ #define _OV767X_H_ #include - -#define OV7670_VSYNC 8 -#define OV7670_HREF A1 -#define OV7670_PLK A0 -#define OV7670_XCLK 9 -#define OV7670_D0 10 -#define OV7670_D1 1 -#define OV7670_D2 0 -#define OV7670_D3 2 -#define OV7670_D4 3 -#define OV7670_D5 5 -#define OV7670_D6 6 -#define OV7670_D7 4 +#include "TinyMLx_board.h" enum { diff --git a/src/TinyMLShield.h b/src/TinyMLShield.h index 7b9dc41..5fb2435 100644 --- a/src/TinyMLShield.h +++ b/src/TinyMLShield.h @@ -1,5 +1,5 @@ #include "Arduino_OV767X_TinyMLx.h" -#define BUTTON_PIN 13 +#include "TinyMLx_board.h" // Custom shield button pin setting void nrf_gpio_cfg_out_with_input(uint32_t pin_number) { diff --git a/src/TinyMLx_board.h b/src/TinyMLx_board.h new file mode 100644 index 0000000..baa30fc --- /dev/null +++ b/src/TinyMLx_board.h @@ -0,0 +1,23 @@ + +#pragma once + +#ifdef USE_TinyMLx_custom_board +#include "TinyMLx_custom_board.h" +#else + +#define OV7670_VSYNC 8 +#define OV7670_HREF A1 +#define OV7670_PLK A0 +#define OV7670_XCLK 9 +#define OV7670_D0 10 +#define OV7670_D1 1 +#define OV7670_D2 0 +#define OV7670_D3 2 +#define OV7670_D4 3 +#define OV7670_D5 5 +#define OV7670_D6 6 +#define OV7670_D7 4 + +#define BUTTON_PIN 13 + +#endif \ No newline at end of file