Skip to content

Commit

Permalink
fix wrong I2C port usage, use default instance
Browse files Browse the repository at this point in the history
  • Loading branch information
stevstrong committed Dec 2, 2018
1 parent 3b90db4 commit 9829eaf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion CameraOV7670Registers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "CameraOV7670Registers.h"
#include <Wire.h>

HardWire mWire(2);

void CameraOV7670Registers::init()
{
Expand Down
2 changes: 2 additions & 0 deletions CameraOV7670Registers.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@

#include "Arduino.h"
#include "CameraOV7670RegisterDefinitions.h"
#include <Wire.h>


class CameraOV7670Registers
{
private:
const uint8_t i2cAddress = 0x21;
TwoWire &mWire = Wire;

public:
CameraOV7670Registers() {}
Expand Down
2 changes: 1 addition & 1 deletion examples/LiveOV7670stm32/LiveOV7670stm32.ino
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ void setup()
// enable the timer and corresponding DMA request
DMA_Setup();
TIMER_Setup();
SPI.setDataSize(DATA_SIZE_8BIT); // set to 8 bit mode
SPI.setDataSize(SPI_DATA_SIZE_8BIT); // set to 8 bit mode
}
//-----------------------------------------------------------------------------
void blink(uint8_t br)
Expand Down

0 comments on commit 9829eaf

Please sign in to comment.