Difference between revisions of "MansOS Apps examples"

From DiLab
Jump to: navigation, search
Line 3: Line 3:
Simple basics:
Simple basics:
* demo/Blink - simple blink of LEDs. Also works for PC platform.
* demo/Blink - simple blink of LEDs. Also works for PC platform.
* demo/CounterToLeds - displays an incrementing counter on the LEDs.


Sensing:
Sensing:
Line 8: Line 9:


Communications:
Communications:
* demo/BaseStation - application for a base station mote, which works as a bridge between serial port and radio - all data received at one end is forwarded to the other
* demo/BaseStation - application for a base station mote, which works as a bridge between UART and radio - all data received at one end is forwarded to the other.
* demo/CounterToSerial - an incrementing counter is sent over UART


Device driver demo:
Device driver demo:

Revision as of 10:42, 4 November 2010

There are several application examples located in <mansosroot>/apps directory.

Simple basics:

  • demo/Blink - simple blink of LEDs. Also works for PC platform.
  • demo/CounterToLeds - displays an incrementing counter on the LEDs.

Sensing:

  • test/AdcTest - a simple program that scans all ADC channels and prints the values using the debugging mechanism macros PRINT, PRINNTLN and PRINTF.

Communications:

  • demo/BaseStation - application for a base station mote, which works as a bridge between UART and radio - all data received at one end is forwarded to the other.
  • demo/CounterToSerial - an incrementing counter is sent over UART

Device driver demo:

  • demo/dev/BlinkDev - blink using the LEDs as a device.
  • demo/dev/AdcDev - ADC as a device.