-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
271 additions
and
12 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/** | ||
* The MySensors Arduino library handles the wireless radio link and protocol | ||
* between your home built sensors/actuators and HA controller of choice. | ||
* The sensors forms a self healing radio network with optional repeaters. Each | ||
* repeater and gateway builds a routing tables in EEPROM which keeps track of the | ||
* network topology allowing messages to be routed to nodes. | ||
* | ||
* Created by Henrik Ekblad <[email protected]> | ||
* Copyright (C) 2013-2015 Sensnology AB | ||
* Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors | ||
* | ||
* Documentation: http://www.mysensors.org | ||
* Support Forum: http://forum.mysensors.org | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* version 2 as published by the Free Software Foundation. | ||
* | ||
******************************* | ||
* | ||
* REVISION HISTORY | ||
* Version 1.0 - Henrik Ekblad | ||
* | ||
* DESCRIPTION | ||
* Example sketch showing how to create a node thay repeates messages | ||
* from nodes far from gateway back to gateway. | ||
* It is important that nodes that has enabled repeater mode calls | ||
* process() frequently. Repeaters should never sleep. | ||
*/ | ||
|
||
// Enable debug prints to serial monitor | ||
#define MY_DEBUG | ||
|
||
// Enable and select radio type attached | ||
#define MY_RADIO_NRF24 | ||
//#define MY_RADIO_RFM69 | ||
|
||
// Enabled repeater feature for this node | ||
#define MY_REPEATER_FEATURE | ||
|
||
#include <SPI.h> | ||
#include <MySensor.h> | ||
|
||
void setup() { | ||
|
||
} | ||
|
||
void presentation() | ||
{ | ||
//Send the sensor node sketch version information to the gateway | ||
sendSketchInfo("Repeater Node", "1.0"); | ||
} | ||
|
||
void loop() | ||
{ | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/** | ||
* The MySensors Arduino library handles the wireless radio link and protocol | ||
* between your home built sensors/actuators and HA controller of choice. | ||
* The sensors forms a self healing radio network with optional repeaters. Each | ||
* repeater and gateway builds a routing tables in EEPROM which keeps track of the | ||
* network topology allowing messages to be routed to nodes. | ||
* | ||
* Created by Henrik Ekblad <[email protected]> | ||
* Copyright (C) 2013-2015 Sensnology AB | ||
* Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors | ||
* | ||
* Documentation: http://www.mysensors.org | ||
* Support Forum: http://forum.mysensors.org | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* version 2 as published by the Free Software Foundation. | ||
* | ||
******************************* | ||
* | ||
* REVISION HISTORY | ||
* Version 1.0 - Henrik Ekblad | ||
* | ||
* DESCRIPTION | ||
* Example sketch showing how to create a node thay repeates messages | ||
* from nodes far from gateway back to gateway. | ||
* It is important that nodes that has enabled repeater mode calls | ||
* process() frequently. Repeaters should never sleep. | ||
*/ | ||
|
||
// Enable debug prints to serial monitor | ||
#define MY_DEBUG | ||
|
||
// Enable and select radio type attached | ||
#define MY_RADIO_NRF24 | ||
//#define MY_RADIO_RFM69 | ||
|
||
// Enabled repeater feature for this node | ||
#define MY_REPEATER_FEATURE | ||
|
||
#include <SPI.h> | ||
#include <MySensor.h> | ||
|
||
void setup() { | ||
|
||
} | ||
|
||
void presentation() | ||
{ | ||
//Send the sensor node sketch version information to the gateway | ||
sendSketchInfo("Repeater Node", "1.0"); | ||
} | ||
|
||
void loop() | ||
{ | ||
} | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
# Arduino Make file. Refer to https://github.com/sudar/Arduino-Makefile | ||
BOARD_TAG = nano | ||
BOARD_SUB = atmega328 | ||
ARDUINO_DIR = /usr/share/arduino | ||
ARDMK_DIR = /usr/share/arduino | ||
AVR_TOOLS_DIR = /usr | ||
ARDUINO_CORE_PATH = /usr/share/arduino/hardware/arduino/avr/cores/arduino | ||
BOARDS_TXT = /usr/share/arduino/hardware/arduino/avr/boards.txt | ||
ARDUINO_VAR_PATH = /usr/share/arduino/hardware/arduino/avr/variants | ||
BOOTLOADER_PARENT = /usr/share/arduino/hardware/arduino/avr/bootloaders | ||
include /usr/share/arduino/Arduino.mk | ||
|
||
#include ../../Arduino.mk | ||
# ARDUINO_LIBS = Average Arduino-PID-Library Adafruit_GFX_Library Adafruit_ST7735_Library SPI Wire Time | ||
# ARDUINO_LIBS = Average Adafruit_GFX Arduino-PID-Library SPI Wire Time Adafruit_SSD1306 | ||
ARDUINO_LIBS = Average Arduino-PID-Library SPI Wire Time | ||
MONITOR_PORT = /dev/ttyACM0 | ||
MONITOR_BAUDRATE = 115200 | ||
#BOARD_TAG = mega | ||
#BOARD_SUB = atmega2560 | ||
#ARDUINO_PORT = /dev/ttyACM0 | ||
#ARCHITECTURE = avr | ||
#BOARD_TAG = nano328 | ||
#ARDUINO_DIR = /usr/share/arduino | ||
#ARDMK_DIR = /usr/share/arduino | ||
#ARDMK_PATH = /usr/bin | ||
|
||
# --- leonardo (or pro micro w/leo bootloader) | ||
#BOARD_TAG = leonardo | ||
#MONITOR_PORT = /dev/ttyACM0 | ||
#include /usr/share/arduino/Arduino.mk | ||
|
||
# --- mega2560 ide 1.0 | ||
#BOARD_TAG = mega2560 | ||
#ARDUINO_PORT = /dev/ttyACM0 | ||
#include /usr/share/arduino/Arduino.mk | ||
|
||
# --- mega2560 ide 1.6 | ||
#BOARD_TAG = mega | ||
#BOARD_SUB = atmega2560 | ||
#MONITOR_PORT = /dev/ttyACM0 | ||
#ARDUINO_DIR = /where/you/installed/arduino-1.6.5 | ||
#include /usr/share/arduino/Arduino.mk | ||
|
||
# --- nano ide 1.0 | ||
#BOARD_TAG = nano328 | ||
#MONITOR_PORT = /dev/ttyUSB0 | ||
#include /usr/share/arduino/Arduino.mk | ||
|
||
# --- nano ide 1.6 | ||
#BOARD_TAG = nano | ||
#BOARD_SUB = atmega328 | ||
#ARDUINO_DIR = /where/you/installed/arduino-1.6.5 | ||
#include /usr/share/arduino/Arduino.mk | ||
|
||
# --- pro mini | ||
#BOARD_TAG = pro5v328 | ||
#MONITOR_PORT = /dev/ttyUSB0 | ||
#include /usr/share/arduino/Arduino.mk | ||
|
||
# --- sparkfun pro micro | ||
#BOARD_TAG = promicro16 | ||
#ALTERNATE_CORE = promicro | ||
#BOARDS_TXT = $(HOME)/arduino/hardware/promicro/boards.txt | ||
#BOOTLOADER_PARENT = $(HOME)/arduino/hardware/promicro/bootloaders | ||
#BOOTLOADER_PATH = caterina | ||
#BOOTLOADER_FILE = Caterina-promicro16.hex | ||
#ISP_PROG = usbasp | ||
#AVRDUDE_OPTS = -v | ||
#include /usr/share/arduino/Arduino.mk | ||
|
||
# --- chipkit | ||
#BOARD_TAG = mega_pic32 | ||
#MPIDE_DIR = /where/you/installed/mpide-0023-linux64-20130817-test | ||
#include /usr/share/arduino/chipKIT.mk | ||
|
||
# --- pinoccio | ||
#BOARD_TAG = pinoccio256 | ||
#ALTERNATE_CORE = pinoccio | ||
#BOOTLOADER_PARENT = $(HOME)/arduino/hardware/pinoccio/bootloaders | ||
#BOOTLOADER_PATH = STK500RFR2/release_0.51 | ||
#BOOTLOADER_FILE = boot_pinoccio.hex | ||
#CFLAGS_STD = -std=gnu99 | ||
#CXXFLAGS_STD = -std=gnu++11 | ||
#include /usr/share/arduino/Arduino.mk | ||
|
||
# --- fio | ||
#BOARD_TAG = fio | ||
#include /usr/share/arduino/Arduino.mk | ||
|
||
# --- atmega-ng ide 1.6 | ||
#BOARD_TAG = atmegang | ||
#BOARD_SUB = atmega168 | ||
#MONITOR_PORT = /dev/ttyACM0 | ||
#ARDUINO_DIR = /where/you/installed/arduino-1.6.5 | ||
#include /usr/share/arduino/Arduino.mk | ||
|
||
# --- arduino-tiny ide 1.0 | ||
#ISP_PROG = usbasp | ||
#BOARD_TAG = attiny85at8 | ||
#ALTERNATE_CORE = tiny | ||
#ARDUINO_VAR_PATH = $(HOME)/arduino/hardware/tiny/cores/tiny | ||
#ARDUINO_CORE_PATH = $(HOME)/arduino/hardware/tiny/cores/tiny | ||
#AVRDUDE_OPTS = -v | ||
#include /usr/share/arduino/Arduino.mk | ||
|
||
# --- arduino-tiny ide 1.6 | ||
#ISP_PROG = usbasp | ||
#BOARD_TAG = attiny85at8 | ||
#ALTERNATE_CORE = tiny | ||
#ARDUINO_DIR = /where/you/installed/arduino-1.6.5 | ||
#include /usr/share/arduino/Arduino.mk | ||
|
||
# --- damellis attiny ide 1.0 | ||
#ISP_PROG = usbasp | ||
#BOARD_TAG = attiny85 | ||
#ALTERNATE_CORE = attiny-master | ||
#AVRDUDE_OPTS = -v | ||
#include /usr/share/arduino/Arduino.mk | ||
|
||
# --- damellis attiny ide 1.6 | ||
#ISP_PROG = usbasp | ||
#BOARD_TAG = attiny | ||
#BOARD_SUB = attiny85 | ||
#ALTERNATE_CORE = attiny | ||
#F_CPU = 16000000L | ||
#ARDUINO_DIR = /where/you/installed/arduino-1.6.5 | ||
#include /usr/share/arduino/Arduino.mk | ||
|
||
# --- teensy3 | ||
#BOARD_TAG = teensy31 | ||
#ARDUINO_DIR = /where/you/installed/the/patched/teensy/arduino-1.0.6 | ||
#include /usr/share/arduino/Teensy.mk | ||
|
||
# --- mighty 1284p | ||
#BOARD_TAG = mighty_opt | ||
#BOARDS_TXT = $(HOME)/arduino/hardware/mighty-1284p/boards.txt | ||
#BOOTLOADER_PARENT = $(HOME)/arduino/hardware/mighty-1284p/bootloaders | ||
#BOOTLOADER_PATH = optiboot | ||
#BOOTLOADER_FILE = optiboot_atmega1284p.hex | ||
#ISP_PROG = usbasp | ||
#AVRDUDE_OPTS = -v | ||
#include /usr/share/arduino/Arduino.mk | ||
|
||
# --- atmega328p on breadboard | ||
#BOARD_TAG = atmega328bb | ||
#ISP_PROG = usbasp | ||
#AVRDUDE_OPTS = -v | ||
#BOARDS_TXT = $(HOME)/arduino/hardware/breadboard/boards.txt | ||
#include /usr/share/arduino/Arduino.mk |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.