Skip to content

Commit

Permalink
fix wiring
Browse files Browse the repository at this point in the history
  • Loading branch information
SunFounder committed Mar 10, 2023
1 parent 18a4b64 commit 31d7534
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions docs/source/espproject/esp_plant_monitor.rst
Expand Up @@ -43,11 +43,14 @@ When you press the pump button on the APP, it will replenish water for the plant
# input
# show dht11 message
sensor.measure()
value = sensor.temperature
ws.send_dict['G'] = value
value = sensor.humidity
ws.send_dict['H'] = value
try:
sensor.measure()
value = sensor.temperature
ws.send_dict['G'] = value
value = sensor.humidity
ws.send_dict['H'] = value
except:
pass
# show water level sensor message
value = water_sensor.read_u16()
Expand All @@ -60,7 +63,7 @@ When you press the pump button on the APP, it will replenish water for the plant
motor2A.low()
# stop pumping
if value>=15000:
if value>=15000 or 'M' in data.keys() and data['M'] is False:
motor1A.low()
motor2A.low()
Expand Down
Binary file modified docs/source/img/esp8266/sc_app_plant_monitor_2.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/source/img/wiring/wiring_esp8266_plant_monitor.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 31d7534

Please sign in to comment.