Skip to content

Commit 79bcad5

Browse files
author
Ruben Sluiman
committed
Basic library files
1 parent a9581e4 commit 79bcad5

File tree

8 files changed

+117
-0
lines changed

8 files changed

+117
-0
lines changed

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.gitignore

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Compiled Object files
2+
*.slo
3+
*.lo
4+
*.o
5+
*.obj
6+
7+
# Precompiled Headers
8+
*.gch
9+
*.pch
10+
11+
# Compiled Dynamic libraries
12+
*.so
13+
*.dylib
14+
*.dll
15+
16+
# Fortran module files
17+
*.mod
18+
*.smod
19+
20+
# Compiled Static libraries
21+
*.lai
22+
*.la
23+
*.a
24+
*.lib
25+
26+
# Executables
27+
*.exe
28+
*.out
29+
*.app
30+
31+
# Compiled binaries
32+
*.hex
33+
*.bin
34+
35+
# VS code
36+
.vscode/
37+
.development
38+
39+
build/*

examples/LP50XX_API_test/LP50XX_API_test.ino

Whitespace-only changes.

extras/lp5012.pdf

2.25 MB
Binary file not shown.

keywords.txt

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#######################################
2+
# Syntax Coloring Map For the
3+
# LP50XX library
4+
#######################################
5+
6+
#######################################
7+
# Datatypes (KEYWORD1)
8+
#######################################
9+
10+
LP50XX KEYWORD1
11+
12+
#######################################
13+
# Methods and Functions (KEYWORD2)
14+
#######################################
15+
16+
Begin KEYWORD2
17+
18+
#######################################
19+
# Structures (KEYWORD3)
20+
#######################################
21+
22+
23+
#######################################
24+
# Constants (LITERAL1)
25+
#######################################
26+

library.properties

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name=LP50XX driver
2+
version=1.0.0
3+
author=Ruben Neurink-Sluiman
4+
maintainer=Ruben Neurink-Sluiman <ruben.neurink@gmail.com>
5+
sentence=Library for interaction with the LP5009 and LP5012 LED driver
6+
paragraph=This library is for the interaction with the LP5009 and LP5012 LED driver from Texas Instruments
7+
category=Display
8+
url=https://github.com/rneurink/LP50XX
9+
architectures=*
10+
includes=LP50XX.h

src/LP50XX.cpp

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
#include "LP50XX.h"
3+
4+
/**
5+
* @brief This function instantiates the class object
6+
*/
7+
LP50XX::LP50XX() {
8+
9+
}
10+
11+
/**
12+
* @brief
13+
*/
14+
void VL53L1X_ULD::Begin(uint8_t i2cAddress) {
15+
_i2c_address = i2cAddress;
16+
}

src/LP50XX.h

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#ifndef __LP50XX_H
2+
#define __LP50XX_H
3+
4+
5+
/**
6+
* @brief Class to communicate with the LP5009 or LP5012
7+
*/
8+
class LP50XX
9+
{
10+
public:
11+
LP50XX(); // Constructor
12+
13+
/**
14+
* Initialisation functions
15+
*/
16+
void Begin(uint8_t i2c_address = 0x52); //
17+
18+
protected:
19+
20+
private:
21+
uint8_t _i2c_address = 0x52;
22+
};
23+
24+
#endif

0 commit comments

Comments
 (0)