User Tools

Site Tools


dmx-simple-h

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

dmx-simple-h [2014/02/05 12:51] (current)
zoza created
Line 1: Line 1:
 +====== DmxSimple.h ======
  
 +<code java>
 +
 +/**
 + * DmxSimple - A simple interface to DMX.
 + *
 + * Copyright (c) 2008-2009 Peter Knight, Tinker.it! All rights reserved.
 + */
 +
 +#ifndef DmxSimple_h
 +#define DmxSimple_h
 +
 +#include <​inttypes.h>​
 +
 +#if RAMEND <= 0x4FF
 +#define DMX_SIZE 128
 +#else
 +#define DMX_SIZE 512
 +#endif
 +
 +class DmxSimpleClass
 +{
 +  public:
 +    void maxChannel(int);​
 +    uint8_t write(int, uint8_t);
 +    void usePin(uint8_t);​
 +    uint8_t modulate(int,​ int);
 +    uint8_t getValue(int);​
 +};
 +extern DmxSimpleClass DmxSimple;
 +
 +#endif
 +
 +</​code>​
dmx-simple-h.txt ยท Last modified: 2014/02/05 12:51 by zoza