This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Unverified | |
#elif defined(AVR_NANO_EVERY) | |
#define TOTAL_ANALOG_PINS 8 | |
#define TOTAL_PINS 24 // 14 digital + 8 analog + 2 i2c | |
#define IS_PIN_DIGITAL(p) ((p) >= 2 && (p) <= 21) // TBD if pins 0 and 1 are usable | |
#define IS_PIN_ANALOG(p) ((p) >= 14 && (p) < 14 + TOTAL_ANALOG_PINS) | |
#define IS_PIN_PWM(p) digitalPinHasPWM(p) | |
#define IS_PIN_SERVO(p) (IS_PIN_DIGITAL(p) && (p) < MAX_SERVOS) // deprecated since v2.4 | |
#define IS_PIN_I2C(p) ((p) == PIN_WIRE_SDA || (p) == PIN_WIRE_SCL) // SDA = 22, SCL = 23 | |
#define IS_PIN_SPI(p) ((p) == SS || (p) == MOSI || (p) == MISO || (p) == SCK) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Firmata is a generic protocol for communicating with microcontrollers | |
from software on a host computer. It is intended to work with | |
any host computer software package. | |
To download a host software package, please click on the following link | |
to open the list of Firmata client libraries in your default browser. | |
https://github.com/firmata/arduino#firmata-client-libraries |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Firmata is a generic protocol for communicating with microcontrollers | |
from software on a host computer. It is intended to work with | |
any host computer software package. | |
To download a host software package, please click on the following link | |
to open the list of Firmata client libraries in your default browser. | |
https://github.com/firmata/arduino#firmata-client-libraries |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
I2CFirmata.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-2016 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
OneWireFirmata.cpp - Firmata library | |
Copyright (C) 2012-2013 Norbert Truchsess. All rights reserved. | |
Copyright (C) 2016 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ConfigurableFirmata.h> | |
#include <DigitalInputFirmata.h> | |
DigitalInputFirmata digitalInput; | |
#include <DigitalOutputFirmata.h> | |
DigitalOutputFirmata digitalOutput; | |
#include <AnalogInputFirmata.h> | |
AnalogInputFirmata analogInput; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Firmata is a generic protocol for communicating with microcontrollers | |
from software on a host computer. It is intended to work with | |
any host computer software package. | |
To download a host software package, please clink on the following link | |
to open the list of Firmata client libraries your default browser. | |
https://github.com/firmata/arduino#firmata-client-libraries |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Update line 18 below to the ESP8266 board address | |
* | |
* Enable Serial debugging by uncommenting //#defin SERIAL_DEBUG in StandardFirmataWiFi | |
* (save a copy of StandardFirmataWiFi first) | |
* | |
* On startup (you may have to reset the ESP board because it starts up really fast | |
* view the Serial output to see the assigned IP address (if using DHCP) | |
* Or if you want to give the board a static IP (not use DHCP) then uncomment the | |
* following lines in wifiConfig.h and update to your chosen IP address: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*============================================================================== | |
* NETWORK CONFIGURATION | |
* | |
* You must configure your particular hardware. Follow the steps below. | |
* | |
* Currently StandardFirmataEthernet is configured as a client. An option to | |
* configure as a server may be added in the future. | |
*============================================================================*/ | |
// STEP 1 [REQUIRED] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Firmata is a generic protocol for communicating with microcontrollers | |
from software on a host computer. It is intended to work with | |
any host computer software package. | |
To download a host software package, please clink on the following link | |
to open the list of Firmata client libraries your default browser. | |
https://github.com/firmata/arduino#firmata-client-libraries |
NewerOlder