MansOS Apps examples

From DiLab
Revision as of 10:42, 4 November 2010 by Girts (talk | contribs)
Jump to: navigation, search

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.