Skip to content

Pidee/libpidee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libpidee

A basic c library for using Pidee in conjuction with WiringPi:

  • A global pidee_feature struct initialised for each feature (pidee_feature_dip_1, pidee_feature_button, pidee_feature_led_red, etc). These structs contains the name of the feature, the BCM pin number and feature type.
  • A pidee_feature_setup function for initialising each feature without sudo. wiringPiSetupSys needs to be called in your code after all pidee_feature_setup functions have been called.
  • A pidee_feature_read and pidee_feature_write function.
  • A pidee_feature_enable_interupt function for use with each pidee_feature's interupt_handler. The interupt handler will be passed the relevant pidee_feature as an argument. This is the purpose of the library. WiringPi interupt functions are not passed any context.

Examples

  • flash-leds
  • print-dip
  • print-dip-table
  • watch-button
  • watch-dip

Getting Started

Clone the repo:

git clone https://github.com/Pidee/libpidee.git
cd pidee

Build test applications:

cd examples/
make -j4

Note add -j4 on the Raspberry 2 and 3 only.

Run a test application:

cd examples/bin/
./flash-leds

Rebuild all examples:

make clean
make -j4

Releases

No releases published

Packages

No packages published

Languages