Skip to content

Commit

Permalink
added Arduino-lint.yml and library.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis-ard authored and ArduCAM committed Jul 31, 2023
1 parent e6d36a4 commit cc44815
Show file tree
Hide file tree
Showing 11 changed files with 47 additions and 11 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/arduino-lint-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Arduino Lint
run-name: ${{ github.actor }} is running Arduino LINT
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: arduino/arduino-lint-action@v1
with:
library-manager: submit
compliance: strict
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright 2021 Arducam Technology co., Ltd. All Rights Reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# 📹 Library for Arduino Supported Cameras

[![Arduino Lint](https://github.com/ArduCAM/Arducam_dvp/actions/workflows/arduino-lint-action.yml/badge.svg)](https://github.com/ArduCAM/Arducam_dvp/actions/workflows/arduino-lint-action.yml)

The Arduino camera library captures pixels from supported cameras on Arduino boards and stores them in a buffer for continuous retrieval and processing.

📖 For more information about this library please read the documentation [here](./docs/).
4 changes: 2 additions & 2 deletions examples/CameraCaptureRawBytes/CameraCaptureRawBytes.ino
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "arducam_dvp_camera.h"
#include "arducam_dvp.h"

#define ARDUCAM_CAMERA_HM01B0

Expand Down Expand Up @@ -48,7 +48,7 @@ void setup()
blinkLED();
}
blinkLED(5);
Serial.begin(115200);
Serial.begin(921600);
}

void loop()
Expand Down
7 changes: 4 additions & 3 deletions library.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name=arducam_dvp
version=1.0
version=1.0.0
author=Arducam
maintainer=Arducam <supports@arducam.com>
maintainer=Arducam <support@arducam.com>
sentence=Library to capture pixels from supported cameras on Arduino boards.
paragraph=The Arduino camera library is a C++ library designed to capture frames from cameras on supported Arduino products. It is currently compatible with three camera models, namely OV7670, Himax HM0360, Himax HM01B0, and GC2145. This library captures pixels and stores them in a frame buffer. The frames can then be retrieved continuously for processing.
category=Device Control
url=https://github.com/arduino/ArduinoCore-mbed/tree/master/libraries/Camera
url=https://www.arducam.com/camera-for-arduino-giga/
architectures=mbed,mbed_portenta,mbed_nicla,mbed_giga
includes=arducam_dvp.h
2 changes: 1 addition & 1 deletion src/GC2145/gc2145.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#ifndef __GC2145_H
#define __GC2145_H

#include "arducam_dvp_camera.h"
#include "arducam_dvp.h"

class GC2145: public ImageSensor {
private:
Expand Down
2 changes: 1 addition & 1 deletion src/Himax_HM01B0/himax.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#ifndef __HIMAX_H
#define __HIMAX_H

#include "arducam_dvp_camera.h"
#include "arducam_dvp.h"
#include "drivers/InterruptIn.h"

class HM01B0: public ImageSensor {
Expand Down
2 changes: 1 addition & 1 deletion src/Himax_HM0360/hm0360.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#ifndef __HIMAX_H
#define __HIMAX_H

#include "arducam_dvp_camera.h"
#include "arducam_dvp.h"
#include "drivers/InterruptIn.h"

class HM0360: public ImageSensor {
Expand Down
2 changes: 1 addition & 1 deletion src/OV7670/ov767x.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#ifndef __OV767X_H
#define __OV767X_H

#include "arducam_dvp_camera.h"
#include "arducam_dvp.h"


#ifndef OMV_OV7670_CLKRC
Expand Down
2 changes: 1 addition & 1 deletion src/arducam_dvp_camera.cpp → src/arducam_dvp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Camera driver.
*/
#include "Arduino.h"
#include "arducam_dvp_camera.h"
#include "arducam_dvp.h"
#include "Wire.h"
#include "stm32h7xx_hal_dcmi.h"

Expand Down
2 changes: 1 addition & 1 deletion src/arducam_dvp_camera.h → src/arducam_dvp.h
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ class Camera {

};

#endif // __ARDUCAM_DVP_CAMERA_H
#endif // __arducam_dvp_H

/// The I2C bus used to communicate with the camera
extern arduino::MbedI2C CameraWire;

0 comments on commit cc44815

Please sign in to comment.