Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Дмитрий Решетей
/
OREGON
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 31ba33e6
authored
4 years ago
by
Дмитрий Решетей
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lost update from Jun 2020
1 parent
8cda0041
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
libraries/Oregon_NR-master/Oregon_NR_MY.cpp
libraries/Oregon_NR-master/Oregon_NR_MY.h
libraries/Oregon_NR-master/Oregon_TM.cpp
wifi_reciver/wifi_reciver.ino
libraries/Oregon_NR-master/Oregon_NR_MY.cpp
View file @
31ba33e
...
@@ -111,9 +111,10 @@ Oregon_NR::Oregon_NR(byte MHZ, byte MHZ_INT)
...
@@ -111,9 +111,10 @@ Oregon_NR::Oregon_NR(byte MHZ, byte MHZ_INT)
INT_NO
=
MHZ_INT
;
INT_NO
=
MHZ_INT
;
RECEIVER_PIN
=
MHZ
;
RECEIVER_PIN
=
MHZ
;
pinMode
(
MHZ
,
INPUT
);
// Вывод, на который подключён приёмник
pinMode
(
MHZ
,
INPUT
);
// Вывод, на который подключён приёмник
//digitalWrite(MHZ,
HIGH
); // ДОБАВЛЕННО mr.Tech ВРЕМЕННО ТОЛЬКО ДЛЯ ОТЛАДКИ. нЕОБХОДИМО УДАЛИТЬ!
//digitalWrite(MHZ,
LOW
); // ДОБАВЛЕННО mr.Tech ВРЕМЕННО ТОЛЬКО ДЛЯ ОТЛАДКИ. нЕОБХОДИМО УДАЛИТЬ!
}
}
Oregon_NR
::
Oregon_NR
(
byte
MHZ
,
byte
MHZ_INT
,
byte
led
,
bool
pull_up
)
Oregon_NR
::
Oregon_NR
(
byte
MHZ
,
byte
MHZ_INT
,
byte
led
,
bool
pull_up
)
{
{
INT_NO
=
MHZ_INT
;
INT_NO
=
MHZ_INT
;
...
@@ -122,7 +123,7 @@ Oregon_NR::Oregon_NR(byte MHZ, byte MHZ_INT, byte led, bool pull_up)
...
@@ -122,7 +123,7 @@ Oregon_NR::Oregon_NR(byte MHZ, byte MHZ_INT, byte led, bool pull_up)
RECEIVER_PIN
=
MHZ
;
RECEIVER_PIN
=
MHZ
;
pinMode
(
MHZ
,
INPUT
);
// Вывод, на который подключён приёмник
pinMode
(
MHZ
,
INPUT
);
// Вывод, на который подключён приёмник
pinMode
(
LED
,
OUTPUT
);
// Вывод светодиода
pinMode
(
LED
,
OUTPUT
);
// Вывод светодиода
//digitalWrite(MHZ,
HIGH
); // ДОБАВЛЕННО mr.Tech ВРЕМЕННО ТОЛЬКО ДЛЯ ОТЛАДКИ. нЕОБХОДИМО УДАЛИТЬ!
//digitalWrite(MHZ,
LOW
); // ДОБАВЛЕННО mr.Tech ВРЕМЕННО ТОЛЬКО ДЛЯ ОТЛАДКИ. нЕОБХОДИМО УДАЛИТЬ!
}
}
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
...
...
This diff is collapsed.
Click to expand it.
libraries/Oregon_NR-master/Oregon_NR_MY.h
View file @
31ba33e
#include <Arduino.h>
#include <Arduino.h>
#ifndef Oregon_NR_h
_AIR
#ifndef Oregon_NR_h
#define Oregon_NR_h
_AIR
#define Oregon_NR_h
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// This Arduino code is for receive and transmit data using Oregon Scientific RF protocol version 2.1 and 3.0.
// This Arduino code is for receive and transmit data using Oregon Scientific RF protocol version 2.1 and 3.0.
...
...
This diff is collapsed.
Click to expand it.
libraries/Oregon_NR-master/Oregon_TM.cpp
View file @
31ba33e
...
@@ -635,11 +635,11 @@ bool Oregon_TM::transmit()
...
@@ -635,11 +635,11 @@ bool Oregon_TM::transmit()
if
(
millis
()
>=
time_marker_send
&&
send_time
)
if
(
millis
()
>=
time_marker_send
&&
send_time
)
{
{
digitalWrite
(
7
,
LOW
);
// Включение режима TX на 7-й ноге. Добавлено mr.Tech 09.03.2020
digitalWrite
(
7
,
LOW
);
// Включение режима TX на 7-й ноге
- начало TX
. Добавлено mr.Tech 09.03.2020
delay
(
500
);
delay
(
500
);
// задержка перед началом преамбулы. mr.Tech
SendPacket
();
SendPacket
();
time_marker_send
=
millis
()
+
send_time
;
time_marker_send
=
millis
()
+
send_time
;
digitalWrite
(
7
,
HIGH
);
// Отключение режима TX на 7-й ноге. Добавлено mr.Tech 09.03.2020
digitalWrite
(
7
,
HIGH
);
// Отключение режима TX на 7-й ноге
- конец TX
. Добавлено mr.Tech 09.03.2020
return
true
;
return
true
;
}
}
...
...
This diff is collapsed.
Click to expand it.
wifi_reciver/wifi_reciver.ino
View file @
31ba33e
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment