-
Notifications
You must be signed in to change notification settings - Fork 1
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
Compiler error: 'HardWire' does not name a type #1
Comments
Fixed by changing HardWire mWire(2); to TwoWire mWire(2); Now I get error 4 (other error) at mWire.endTransmission() in setRegister function. mWire.write reports 1 byte written for both addr and val. |
Please post the complete error messages. |
It now compiles without error, I get the error 4 value at runtime by printing it to serial - I put logging in CameraOV7670Registers.cpp in bool CameraOV7670Registers::setRegister(uint8_t addr, uint8_t val) function. mWire.endTransmission() simply returns 4 instead of 0. I guess this is an I2C problem. I am not sure if my camera is not dead, but I have 2 of them and both giving the same error. I think I connected everything correctly, additionally tried on camera the RESET pin to 3.3V and PWDN to ground, did not help. I have a little different camera module than is usual - my camera is similar to the image on the left here, while the camera from the various videos is usually the one on the right: https://forum.arduino.cc/index.php?topic=535819.0 Exact photos of my camera: |
I will check this soon. |
9829eaf should fix it. |
Hi there, the project will not compile for me. I get following error on STM32F103C8T6 (blue pill):
Can you help me please? I tried downloading and including some a HardWire library but then had an unmet dependency which I did not pursue yet.
Tried to use this: http://downloads.arduino.cc/libraries/github.com/thexeno/HardWire-1.0.2.zip
The text was updated successfully, but these errors were encountered: