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
/* | |
* modified from code | |
* by Mathias Leroy | |
* | |
*/ | |
#include <stdio.h> | |
#include <Servo.h> | |
Servo servoH; | |
Servo servoV; |
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 <Wire.h> | |
byte _interval = 0; | |
void setup() { | |
Serial.begin(9600); | |
Wire.begin(); // join i2c bus (address optional for master) | |
delay(3000); | |
Serial.println("Sending started"); | |
SendCmd('G', 1); // get the expected pat interval |
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 "TinyWireS.h" //SDA/SCL PB0/PB2 5/7 //tws_delay(ms) | |
#include <EEPROM.h> | |
#define PIN_BITE 3 | |
#define PIN_LED 1 | |
#define BLINK_SHORT 250 | |
#define BLINK_LONG 1000 | |
#define EEPROM_VERSION 0 |
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
// during wake prints 3 lines to console only | |
// then sleep 10 seconds, then repeat... | |
const int sleepSeconds = 10; | |
void setup() { | |
Serial.begin(115200); | |
Serial.println("\n\nWake up"); | |
// Connect D0 to RST to wake up | |
pinMode(D0, WAKEUP_PULLUP); |
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 <Wire.h> | |
void setup() { | |
Wire.begin(); // join i2c bus (address optional for master) | |
} | |
void loop() { | |
Wire.beginTransmission(8); // transmit to device #8 | |
Wire.write('P'); // sends a char | |
Wire.write(0); // sends one byte |
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 <Wire.h> | |
const byte _numChars = 32; | |
char _receivedChars[_numChars]; // an array to store the received data | |
boolean _newData = false; | |
void setup() { | |
Serial.begin(9600); | |
Wire.begin(); // join i2c bus (address optional for master) |
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
/****************************************************************************************************************************\ | |
* Arduino project "ESP Easy" Copyright www.esp8266.nu | |
* | |
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License | |
* as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | |
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty | |
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
* You received a copy of the GNU General Public License along with this program in file 'License.txt'. | |
* | |
* IDE download : https://www.arduino.cc/en/Main/Software |
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 <Wire.h> | |
#define I2C_MSG_IN_SIZE 4 | |
#define I2C_MSG_OUT_SIZE 4 | |
#define CMD_DIGITAL_WRITE 1 | |
#define CMD_DIGITAL_READ 2 | |
#define CMD_ANALOG_WRITE 3 | |
#define CMD_ANALOG_READ 4 |
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
/* | |
* modified from code | |
* by Mathias Leroy | |
* | |
* V0.2 MODIFICATIONS | |
** I2C SET GET | |
** EEPROM SET GET | |
** REMOVE SERIAL OUTPUT - AFFECTED I2C | |
** ENABLE/DISABLE TRACKING | |
** MOVE SERVOS TO LIMITS VIA I2C |
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 <Wire.h> | |
#define I2C_MSG_IN_SIZE 2 | |
#define I2C_MSG_OUT_SIZE 3 | |
#define I2C_SLAVE_ADDRESS 10 | |
boolean _newData = false; | |
const byte _numChars = 32; | |
char _receivedChars[_numChars]; // an array to store the received data |
OlderNewer