Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom board support #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions src/OV767X_TinyMLx.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,7 @@
#define _OV767X_H_

#include <Arduino.h>

#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
{
Expand Down
2 changes: 1 addition & 1 deletion src/TinyMLShield.h
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
23 changes: 23 additions & 0 deletions src/TinyMLx_board.h
Original file line number Diff line number Diff line change
@@ -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