Lines Matching refs:a
1 Porting a module from Arduino {#porting}
5 The issues typically come from misunderstanding of how a non real time OS deals
9 ### Adding a new module to UPM
11 1. Choose a name for your module (see @ref naming)
12 2. Make a new folder in src/modulename
13 3. Create a CMakeLists.txt file inside src/modulename
17 By default you need a header called modulename.h and a C++ file called
32 The easiest way to do this is to have a look at a similar sensor to yours.
33 Typically create a class for your sensor with a constructor that defines the
35 required to talk to the board's IO. An I2c sensor will create a
36 mraa_i2c_context, keep it as a private member and require a bus number and slave
39 Typically in sensors a simple object->read() function is preferred, depending on
41 UPM APIs have a simple set of functions.
53 To build your module just follow @ref building. By creating a folder and the
59 The last step is when you're happy with your module and it works send us a pull
62 If you don't like github you can also send mihai.tudor.panu@intel.com a git
64 https://help.github.com/articles/creating-a-pull-request