Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Hugues KADI
laser_game
Commits
20c01553
Commit
20c01553
authored
Aug 09, 2018
by
attssystem
Browse files
Updated README
parent
8b9f52c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
LIR_prgm/src/LIR_prgm.ino
View file @
20c01553
...
...
@@ -132,9 +132,14 @@ void setup() {
// Loop code
void
loop
()
{
//play();
/*while (1==1){
const byte dataBytes[5] PROGMEM = {0xA1, 0xF1, ID, 0xAA, 0xAA};
Serial.write(dataBytes, sizeof(dataBytes));
delay(500);
}*/
play
();
//returnStart();
ending
();
//
ending();
}
void
play
()
{
...
...
@@ -143,7 +148,6 @@ void play() {
// Playing during the game time
while
(
timeVal
<
60000
*
gameTime
)
{
//Serial.println(timeVal);
timeVal
=
millis
()
-
timeStart
;
updateTime
();
...
...
@@ -154,8 +158,8 @@ void play() {
if
(
receivedID
!=
ID
&&
receivedID
<=
weaponNb
+
1
)
{
data
=
44
;
addT
=
receivedID
-
1
;
radio
.
openWritingPipe
(
addresses
[
addT
]);
radio
.
stopListening
();
radio
.
openWritingPipe
(
addresses
[
addT
]);
radio
.
write
(
&
data
,
sizeof
(
data
));
delay
(
100
);
radio
.
startListening
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment