initial commit
This commit is contained in:
38
libraries/ConfigurableFirmata/src/AnalogOutputFirmata.h
Normal file
38
libraries/ConfigurableFirmata/src/AnalogOutputFirmata.h
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
AnalogFirmata.h - Firmata library
|
||||
Copyright (C) 2006-2008 Hans-Christoph Steiner. All rights reserved.
|
||||
Copyright (C) 2010-2011 Paul Stoffregen. All rights reserved.
|
||||
Copyright (C) 2009 Shigeru Kobayashi. All rights reserved.
|
||||
Copyright (C) 2013 Norbert Truchsess. All rights reserved.
|
||||
Copyright (C) 2009-2015 Jeff Hoefs. All rights reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
See file LICENSE.txt for further informations on licensing terms.
|
||||
*/
|
||||
|
||||
#ifndef AnalogOutputFirmata_h
|
||||
#define AnalogOutputFirmata_h
|
||||
|
||||
#include <ConfigurableFirmata.h>
|
||||
#include "FirmataFeature.h"
|
||||
|
||||
// analogWriteCallback is defined in AnalogWrite.h but must also be declared here in order
|
||||
// for AnalogOutputFirmata to compile
|
||||
void analogWriteCallback(byte pin, int value);
|
||||
|
||||
class AnalogOutputFirmata: public FirmataFeature
|
||||
{
|
||||
public:
|
||||
AnalogOutputFirmata();
|
||||
void handleCapability(byte pin);
|
||||
boolean handlePinMode(byte pin, int mode);
|
||||
boolean handleSysex(byte command, byte argc, byte* argv);
|
||||
void reset();
|
||||
private:
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user