You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library is a collection of small wrappers for some interfaces of the Ci40. It aims at making easier to develop on this platform. Also, it provides some wrappers for a few clicks. Notice that you cannot compile the library on Ci40 because cmake cannot run on it.
15
-
16
-
Interface supported:
17
-
- I²C
18
-
- SPI
19
-
- UART
20
-
- LED's
21
-
- Switch
22
-
- GPIO (Mikrobus and Raspberry Pi interfaces)
23
-
- PWM
24
-
- ADC
25
-
26
-
MikroClick board supported:
27
-
- 7Seg
28
-
- 8x8R (Led Matrix)
29
-
- Accel
30
-
- ADC
31
-
- Air quality
32
-
- Alcohol
33
-
- Alphanum
34
-
- Bargraph
35
-
- CO
36
-
- Color
37
-
- Color2
38
-
- EVE
39
-
- Fan
40
-
- GYRO
41
-
- IR distance
42
-
- IR eclipse
43
-
- Joystick
44
-
- Light
45
-
- Motion
46
-
- OLED
47
-
- Opto
48
-
- Proximity
49
-
- Relay (partial support)
50
-
- Relay2
51
-
- Relay4 (partial support)
52
-
- RTC
53
-
- Thermo3
54
-
- Weather
15
+
This library is a collection of small wrappers for some interfaces of the Ci40. It aims at making easier to develop on this platform. Also, it provides some wrappers for a few clicks. Notice that you cannot compile the library on Ci40 because cmake cannot run on it. There exists a Python binding of this library called [PyLetMeCreate](https://github.com/francois-berder/PyLetMeCreate).
16
+
17
+
Supported interfaces:
18
+
19
+
|Interface|-|
20
+
|:------------| :-------------------|
21
+
|I²C|SPI|
22
+
|UART|LED's|
23
+
|Switch|GPIO (Mikrobus and Raspberry Pi interfaces)|
The Raspberry PI sense Hat is supported by the library, except the EEPROM because the pins are not connected on the I2C bus. The atmel chip is confusing the I2C driver of the Ci40 which makes it sometimes impossible to communicate with the hat. Inserting the hat after the board finished booting often solves the issue (assuming it does not cause a reset of the Ci40 because of a brown-out reset).
57
42
@@ -74,66 +59,61 @@ Keep examples very simple and avoid parsing arguments. Examples are there to sho
74
59
75
60
## Integration in Openwrt
76
61
77
-
To add new packages, Openwrt relies on feeds: a collection of packages.
78
-
79
-
### Installation steps
80
-
81
-
Clone the library and openwrt somewhere on you computer:
62
+
The library is already part of Imagination Technologies' OpenWrt.
63
+
To compile the library (only possible once you built Openwrt once):
$ make package/letmecreate/{clean,compile} -j1 V=s
89
67
```
90
68
91
-
#### Stable release
92
-
93
-
If you are only interested in getting the latest release of LetMeCreate library, then download a copy of Makefile.stable and Config.in.stable located in miscellaneous folder. Copy these files inside the letmecreate folder you have just created and rename it to Makefile and Config.in respectively.
94
-
95
-
#### Development configuration
69
+
### Installation steps
96
70
97
-
If you are interested in modifying the library, getting the lastest changes, then clone it:
71
+
You can install LetMeCreate package on OpenWRT executing:
This project uses two branches. The dev branch contains all the latest changes and should not be considered as stable. The dev branch is sometimes merged to master once new features are considered stable.
83
+
### Usage example
84
+
```c
85
+
/**
86
+
* This example shows how to use the Thermo3 Click wrapper of the LetMeCreate
87
+
* library.
88
+
*
89
+
* It reads the temperature from the sensor and exits.
90
+
*
91
+
* The Thermo3 Click must be inserted in Mikrobus 1 before running this program.
92
+
*/
110
93
111
-
#### Register the library in Openwrt
94
+
#include<stdio.h>
95
+
#include<letmecreate/letmecreate.h>
112
96
113
-
To register the feed in openwrt, go back in openwrt folder and open feeds.conf.default.
0 commit comments