Ports
The Ports library implements "Ports" as an abstraction matching the 6-pin connectors used with JeeNodes and Plugs. In its simplest form, a port object offers a simple way to acces the pins of an ATmega. It's a very thin wrapper around the digitalRead(), digitalWrite(), analogRead(), etc functions present in the Arduino runtime support.
The Ports library also includes support for I2C communication and many pre-defined interface classes for various plugs. There are several little example sketches to help you get started.
Starting with Arduino IDE 1.0beta2, the source code and and issue tracker have moved to GitHub.
For the Arduino IDE 0022, download as ZIP archive, and put the "GLCDlib" folder inside a "libraries" folder next to your sketches.
Definitions in source:Ports/Ports.h
Port support
Remote ports (unfinished)
Plug support
- class BlinkPlug
- class DimmerPlug
- class GravityPlug
- class HeadingPlug
- class InfraredPlug
- class InputPlug
- class LuxPlug
- class MemoryPlug
- class ProximityPlug
- class UartPlug
Utility classes
Examples
- accel2125_demo sketch
- blink_demo sketch
- blink_ports sketch
- blink_recv sketch
- blink_xmit sketch
- bmp085demo sketch
- bmp085recv sketch
- button_demo sketch
- combi_demo sketch
- dcf77demo sketch
- dimmer_demo sketch
- eemem sketch
- expander sketch
- gravity_demo sketch
- h48c_demo sketch
- heading_demo sketch
- hm55b_demo sketch
- input_demo sketch
- isp_capture sketch
- isp_flash sketch
- isp_prepare sketch
- isp_repair sketch
- lcd_demo sketch
- lux_demo sketch
- memory_demo sketch
- nunchuk_demo sketch
- output_stepper sketch
- parser_demo sketch
- pir_demo sketch
- powerdown_demo sketch
- proximity_demo sketch
- qti_demo sketch
- recv433demo sketch
- relay_demo sketch
- rtc_demo sketch
- sht11demo sketch
- SMDdemo sketch
- snapNikon sketch
- thermo_demo sketch
- tsl230demo sketch
- uart_demo sketch
Credits
Ports was written from scratch by Jean-Claude Wippler at JeeLabs.