Skip to content

JaiShiv05/LetMeCreate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

234 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LetMeCreate library

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.

Interface supported:

  • I²C
  • SPI
  • UART
  • LED's
  • Switch
  • GPIO (Mikrobus and Raspberry Pi interfaces)
  • PWM
  • ADC

MikroClick board supported:

  • Thermo3
  • Proximity
  • Motion
  • Relay
  • Relay2
  • Joystick
  • Air quality
  • Accel (SPI only)
  • 8x8R (Led Matrix)
  • Alcohol
  • IR eclipse

Examples are installed in /usr/bin/letmecreate_examples. Tests are installed in /usr/bin/letmecreate_tests.

Integration in Openwrt

To add new packages, Openwrt relies on feeds: a collection of packages.

Installation steps

Clone the library and openwrt somewhere on you computer:

$ mkdir ci-40
$ cd ci-40
$ git clone https://github.com/CreatorDev/openwrt.git
$ mkdir -p custom/letmecreate
$ cd custom/letmecreate

Stable release

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.

Development configuration

If you are interested in modifying the library, getting the lastest changes, then clone it:

$ git clone https://github.com/francois-berder/LetMeCreate.git

Copy the Makefile and the Config.in to the right location:

$ cp LetMeCreate/miscellaneous/Makefile.devel Makefile
$ cp LetMeCreate/miscellaneous/Config.in.devel Config.in

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.

Register the library in Openwrt

To register the feed in openwrt, go back in openwrt folder and open feeds.conf.default. Add this line:

src-link custom /change/this/path/to/the/location/of/ci-40/custom/directory/

Update and install all feeds:

$ ./scripts/feeds update -a
$ ./scripts/feeds install -a

In make menuconfig, select Libraries, you should see an entry for letmecreate library:

Libraries menu

Select the letmecreate library in make menuconfig, and compile Openwrt:

$ make -j1 V=s

In the image (a tarball in bin/pistachio), you should see the examples in /usr/bin/letmecreate_examples.

To compile only the library (only possible once you built Openwrt once):

$ make package/letmecreate/{clean,compile} -j1 V=s

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 92.2%
  • C++ 4.7%
  • CMake 3.1%