Commit 027a2674 authored by launchy's avatar launchy

Mise au propre

Ajout des libs
Corrections orthographiques
parent ae41a492
.vscode/arduino.json
.vscode/c_cpp_properties.json
{
"board": "arduino:avr:uno",
"port": "COM3",
"sketch": "Khomi-auto-4.ino"
}
\ No newline at end of file
{
"configurations": [
{
"name": "Win32",
"includePath": [
"C:\\Program Files (x86)\\Arduino\\tools\\**",
"C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\**"
],
"forcedInclude": [
"C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\Arduino.h"
],
"intelliSenseMode": "msvc-x64"
}
],
"version": 4
}
\ No newline at end of file
......@@ -7,11 +7,13 @@
#include <Wire.h>
#include "RTClib.h"
#include <LCD.h>
#include <LiquidCrystal.h>
#include <LiquidCrystal_I2C.h>
#include <SoftwareSerial.h>
SoftwareSerial * gsm;
RTC_DS1307 rtc;
// Definition des pins des capteurs et actionneurs
#define capteur_hum_sol A1 //capteur humidite sol a connecter sur le A0
#define pin_hum_sol 2 //connecter le + du capteur humidite sol
......@@ -32,7 +34,6 @@ byte etat = 0;
bool etat_switch = false;
RTC_DS1307 rtc;
char daysOfTheWeek[7][12] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
LiquidCrystal_I2C lcd(0x3F, 2, 1, 0, 4, 5, 6, 7); // 0x27 is the I2C bus address for an unmodified backpack
......@@ -101,11 +102,11 @@ void setup ()
if (! rtc.isrunning())
{
//Serial.print("RTC is NOT running!");
Serial.print("RTC is NOT running!");
}
rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));//auto update from computer time
//rtc.adjust(DateTime(2014, 1, 21, 3, 0, 0));// configurer manuellement l'heure
rtc.adjust(DateTime(2014, 1, 21, 3, 0, 0));// configurer manuellement l'heure
////////////////////////////////////////////////////////////////////////////////////////////////////////
}
......@@ -116,7 +117,7 @@ void loop ()
DateTime now = rtc.now();
//on lance le debug pour verifier si il ya pas de probleme
// Debug();
Debug();
control();
affiche_lcd();
......@@ -204,17 +205,17 @@ void arroser () {
}
}
while ((valeur_hum_sol > 500 ) && (reservoir_test() == true)); // tant que le sol est sec on arrose
while ((valeur_hum_sol > 500 ) && (reservoir_test() == true)); // tant que le sol est sec, on arrose
sms("Arrosage terminer avec succes");
sms("Arrosage terminé avec succès");
}
if ((valeur_hum_sol < 500 ) || (reservoir_test() == false)) // si le sol est mouille
if ((valeur_hum_sol < 500 ) || (reservoir_test() == false)) // si le sol est mouillé
{
digitalWrite(electrovanne, LOW); // on eteind l'electrovanne
digitalWrite(pompe, LOW); // on eteind la pompe
digitalWrite(pin_hum_sol, LOW); // on eteind le capteur
digitalWrite(electrovanne, LOW); // on éteint l'electrovanne
digitalWrite(pompe, LOW); // on éteint la pompe
digitalWrite(pin_hum_sol, LOW); // on éteint le capteur
}
......@@ -356,4 +357,3 @@ void Debug()
delay(1000);
}
15b98509b065b6630c997662c1b5816276a00de9 213
714b1c6c35a1dc4507e6548185fafe30574ccd7e c 1wire
03bb450754353f6b46e6c323a012ec6be3d6756e c V 1.2.0 preparation
e2217964d397e3413a374affc22a45924c243972 o attiny85
d6123d225ca2af9f7c0a8be3e7fe3ab768149bb6 o default
15b98509b065b6630c997662c1b5816276a00de9 o default
8d7b663c3bf3b5306cfc9d63b61347e3495a70ae c fastIO
397a6f70352b85d1c85d64d6984f1c8e6dca1942 251
714b1c6c35a1dc4507e6548185fafe30574ccd7e c 1wire
03bb450754353f6b46e6c323a012ec6be3d6756e c V 1.2.0 preparation
e2217964d397e3413a374affc22a45924c243972 o attiny85
2e5fa69795e5cda21a055b6a03a384ff768ae940 c default
1c6123e9ee8b8eb29bd080738b69e9c0a0e54dff c default
377c6fb6374fe01a4fb791fa5b03a481bb041536 o esp32_support
8d7b663c3bf3b5306cfc9d63b61347e3495a70ae c fastIO
53cc92a7baa17c8153ef159ef9151055055729f6 o gpl_v3
a82c858a30ea917a4d8f661e0e49d3cf3a146846 o integration
397a6f70352b85d1c85d64d6984f1c8e6dca1942 o release
checklink-target
\ No newline at end of file
{f<cZMjZSo/݊Gph leEQ~Kؘ]Lw2fmqKl+kH ARx A,,כa#+kH ARx(u0gt.D.?r.rĥ(xBE^Ygm]i*͐;QcLfb|nt 1 i*͐;QcLfb|nt 1Np19g8>8vhφ9a-x<=6VϨr_CFSkJsa-x<=6VϨr_CFS-a-x<=6VϨr_CFS,a-x<=6VϨr_CFS/.a-x<=6VϨr_CFS9zop2[^CaUF
\ No newline at end of file
243 5d9bf39daee07949f55b7ededc6b46093ca8d059
2d9f7ad2f01edb29979f30b78add486b66b4112d 1.4.1
66821a8054ea8dfacdad6c19397dbf93f6bd7fa5 V 1.0.2_RC1
2ec4883f118bb66655dbb4012df70df0a4f75b9b V 1.0.7_RC1
350358815c25656fde83ab5c636511e16f2d1b93 V 1.1.2
350358815c25656fde83ab5c636511e16f2d1b93 V 1.1.2
3afcaba7f807357817b0deedec59a6dc0452d291 V 1.1.3
3afcaba7f807357817b0deedec59a6dc0452d291 V 1.1.3
c57fe4cf1b3544f590ffb1cce38a1af03148cd89 V 1.1.3
b0a1d4a24de12d4a323b3a8f7564ae282f1f9209 V 1.1.4
070f1d90be5f7bd513a4c5663f429c39077c06ab V 1.1.5
cb271438ac1fa67906296cd2c821da61814be2ea V 1.1.6
cb271438ac1fa67906296cd2c821da61814be2ea V 1.1.6
82f18d4b8ebca14c59e0f8fc2fef075abb9a5d50 V 1.1.6
981e5559fab2205d613d3c192a322e16f9a20fb2 V 1.1.7
df4563d57b5cb8a6f534564f10a5d65935d8ef71 V 1.1.7
1cf625ca9242d298a480c655d38ad964cd61ae61 V 1.2.0
e1485608a8fcda9e6d3a52380e558005283e2619 V 1.2.0_RC1
2ec4883f118bb66655dbb4012df70df0a4f75b9b V 1.2.0_RC1
e1485608a8fcda9e6d3a52380e558005283e2619 V 1.2.0_RC1
9a1bd27980a539427b876c5bc9cf76a6e679df25 V 1.2.0_RC1
e1485608a8fcda9e6d3a52380e558005283e2619 V 1.2.0_RC1
cdf9b4eb0556635c20da8273dfc1f3204864c0a0 V 1.2.0_RC1
eac3d34ed9dd1bd80f57098ee563f57fa5df1586 V 1.2.1
5dc9d6595d270ea757ef0ea9eae017b8f89732f3 V 1.2.1_RC1
2299ac1b335bb99702ee345ea82f9fe8cbd809ef V 1.2.1_RC1
5dc9d6595d270ea757ef0ea9eae017b8f89732f3 V 1.2.1_RC1
2bbd1aad67c3ee1bda2fb8637618514100f49c7c V 1.2.1_RC1
f3f7c8436a62c7f3d50ba8f7d5790cd4ede94210 V 1.2.1_RC2
c5879ff3f2e5e0d2a0755022781406bc8045567a V 1.2.1_RC2
488875877f5714d1e286d9a331e40abe57103efe V 1.2.1_RC3
a4eb104f6dffbe58fc3fd96a5ef9736be5bd07a4 V 1.2.1_RC3
83bc88dc5c5637bf982c9d8d3dee1e6d57d13bc4 V 1.2.1_RC4
2e6269d8b2695bd8d33941c3afe09c61b555a26b V 1.2.1_RC4
c0432608719bae3cdf60b0cb428181d36b25b945 V 1.2.2
eab837be9770f9d3e004f26d299578d8cff9215b V 1.3.0
fc43ac91ab9c004ec2b8c89f8c6e477fce624af9 V 1.3.1
fc43ac91ab9c004ec2b8c89f8c6e477fce624af9 V 1.3.1
6e2da8cb3ba943fb281e6b9c2d18cf9ddd307c7d V 1.3.2
59c60fbefe8d447b4ca705fff75a4a1894b1433a V 1.3.3
144fddd7979d950c8aa34a15807265c5a69e34b1 V 1.3.4
a68432d580ee2dc3f19bf1f8ae1b20afcb187b98 V 1.3.5
e8a17589cb2fb187020fc92d38c377e4568c28a3 V-1.3.6
5c7ee821a426e32c1505b4b071bd642fce15a7ea V-1.4.0
a0910a053530c0a19bfbaa1144d1d3b90fcb5e3b V_1.2.1_RC5
251 397a6f70352b85d1c85d64d6984f1c8e6dca1942
2d9f7ad2f01edb29979f30b78add486b66b4112d 1.4.1
fa4e70e2c290f994190e0ec901595ae1a8cc92cf 1.5.0
bf2f2ee962645ac5ba6061a910f0d9f4ece926ba 1.5.1
66821a8054ea8dfacdad6c19397dbf93f6bd7fa5 V 1.0.2_RC1
2ec4883f118bb66655dbb4012df70df0a4f75b9b V 1.0.7_RC1
350358815c25656fde83ab5c636511e16f2d1b93 V 1.1.2
350358815c25656fde83ab5c636511e16f2d1b93 V 1.1.2
3afcaba7f807357817b0deedec59a6dc0452d291 V 1.1.3
3afcaba7f807357817b0deedec59a6dc0452d291 V 1.1.3
c57fe4cf1b3544f590ffb1cce38a1af03148cd89 V 1.1.3
b0a1d4a24de12d4a323b3a8f7564ae282f1f9209 V 1.1.4
070f1d90be5f7bd513a4c5663f429c39077c06ab V 1.1.5
cb271438ac1fa67906296cd2c821da61814be2ea V 1.1.6
cb271438ac1fa67906296cd2c821da61814be2ea V 1.1.6
82f18d4b8ebca14c59e0f8fc2fef075abb9a5d50 V 1.1.6
981e5559fab2205d613d3c192a322e16f9a20fb2 V 1.1.7
df4563d57b5cb8a6f534564f10a5d65935d8ef71 V 1.1.7
1cf625ca9242d298a480c655d38ad964cd61ae61 V 1.2.0
e1485608a8fcda9e6d3a52380e558005283e2619 V 1.2.0_RC1
2ec4883f118bb66655dbb4012df70df0a4f75b9b V 1.2.0_RC1
e1485608a8fcda9e6d3a52380e558005283e2619 V 1.2.0_RC1
9a1bd27980a539427b876c5bc9cf76a6e679df25 V 1.2.0_RC1
e1485608a8fcda9e6d3a52380e558005283e2619 V 1.2.0_RC1
cdf9b4eb0556635c20da8273dfc1f3204864c0a0 V 1.2.0_RC1
eac3d34ed9dd1bd80f57098ee563f57fa5df1586 V 1.2.1
5dc9d6595d270ea757ef0ea9eae017b8f89732f3 V 1.2.1_RC1
2299ac1b335bb99702ee345ea82f9fe8cbd809ef V 1.2.1_RC1
5dc9d6595d270ea757ef0ea9eae017b8f89732f3 V 1.2.1_RC1
2bbd1aad67c3ee1bda2fb8637618514100f49c7c V 1.2.1_RC1
f3f7c8436a62c7f3d50ba8f7d5790cd4ede94210 V 1.2.1_RC2
c5879ff3f2e5e0d2a0755022781406bc8045567a V 1.2.1_RC2
488875877f5714d1e286d9a331e40abe57103efe V 1.2.1_RC3
a4eb104f6dffbe58fc3fd96a5ef9736be5bd07a4 V 1.2.1_RC3
83bc88dc5c5637bf982c9d8d3dee1e6d57d13bc4 V 1.2.1_RC4
2e6269d8b2695bd8d33941c3afe09c61b555a26b V 1.2.1_RC4
c0432608719bae3cdf60b0cb428181d36b25b945 V 1.2.2
eab837be9770f9d3e004f26d299578d8cff9215b V 1.3.0
fc43ac91ab9c004ec2b8c89f8c6e477fce624af9 V 1.3.1
fc43ac91ab9c004ec2b8c89f8c6e477fce624af9 V 1.3.1
6e2da8cb3ba943fb281e6b9c2d18cf9ddd307c7d V 1.3.2
59c60fbefe8d447b4ca705fff75a4a1894b1433a V 1.3.3
144fddd7979d950c8aa34a15807265c5a69e34b1 V 1.3.4
a68432d580ee2dc3f19bf1f8ae1b20afcb187b98 V 1.3.5
e8a17589cb2fb187020fc92d38c377e4568c28a3 V-1.3.6
5c7ee821a426e32c1505b4b071bd642fce15a7ea V-1.4.0
a0910a053530c0a19bfbaa1144d1d3b90fcb5e3b V_1.2.1_RC5
# example repository config (see 'hg help config' for more info)
[paths]
default = https://fmalpartida@bitbucket.org/fmalpartida/new-liquidcrystal
# path aliases to other clones of this repo in URLs or filesystem paths
# (see 'hg help config.paths' for more info)
#
# default:pushurl = ssh://jdoe@example.net/hg/jdoes-fork
# my-fork = ssh://jdoe@example.net/hg/jdoes-fork
# my-clone = /home/jdoe/jdoes-clone
[ui]
# name and email (local to this repository, optional), e.g.
# username = Jane Doe <jdoe@example.com>
Added tag 1.5.1 for changeset bf2f2ee96264
\ No newline at end of file
dotencode
fncache
generaldelta
revlogv1
store
autorefresh=1
savedIncoming=0
lastUsedView=1
savedOutgoing=0
showBuildStatus=1
disablerecursiveoperations=0
lastCheckedRemotes=2019-04-28 18:31:22 +0000
autorefreshremotes=1