Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c95ea1ed22 |
+1
-1
@@ -14,7 +14,7 @@
|
|||||||
<div class="param_block">
|
<div class="param_block">
|
||||||
<input type="button" class="control" data-action="s_oben" value="sensor_oben">
|
<input type="button" class="control" data-action="s_oben" value="sensor_oben">
|
||||||
<input type="button" class="control" data-action="s_unten" value="sensor_unten">
|
<input type="button" class="control" data-action="s_unten" value="sensor_unten">
|
||||||
<input type="button" class="control" data-action="on_off" value="on_off">
|
<!-- <input type="button" class="control" data-action="on_off" value="on_off"> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="param_block">
|
<div class="param_block">
|
||||||
|
|||||||
@@ -362,6 +362,9 @@ void Treppe::setup() {
|
|||||||
// are written in flash!
|
// are written in flash!
|
||||||
EEPROM.get(EEP_START_ADDR, param); // get Parameters of flash
|
EEPROM.get(EEP_START_ADDR, param); // get Parameters of flash
|
||||||
param_pend = param;
|
param_pend = param;
|
||||||
|
#ifndef LDR_REGELUNG
|
||||||
|
idle_pwm_ist = param.idle_pwm_max;
|
||||||
|
#endif
|
||||||
|
|
||||||
pinMode(13, OUTPUT);
|
pinMode(13, OUTPUT);
|
||||||
pinMode(0, OUTPUT);
|
pinMode(0, OUTPUT);
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
#include "PCA9685.h"
|
#include "PCA9685.h"
|
||||||
#include <EEPROM.h>
|
#include <EEPROM.h>
|
||||||
|
|
||||||
#define LDR_REGELUNG // comment in to activate LDR control
|
// #define LDR_REGELUNG // comment in to activate LDR control
|
||||||
// #define LDRDEBUG // comment in to show LDR measurement
|
// #define LDRDEBUG // comment in to show LDR measurement
|
||||||
#define LDR_HYS 100 // Hysteresis for switching off FSM [lux]
|
#define LDR_HYS 100 // Hysteresis for switching off FSM [lux]
|
||||||
#define LDR_AVERAGE_SAMPLES 50
|
#define LDR_AVERAGE_SAMPLES 50
|
||||||
|
|||||||
Reference in New Issue
Block a user