This commit is contained in:
Michael Wesemann 2019-10-08 14:25:08 +02:00
parent 0689ea7e9e
commit e4de9c7d3a
2 changed files with 4 additions and 3 deletions

View File

@ -83,11 +83,12 @@ All functions are controlled by the KY-040 encoder:
|Value|Config Menu Name|Description|
|:----|:---------------|:----------|
|`LGHT`|`LGHT`|LCD display brightness|
|`SPEEDINC1`, `SPEEDINC2`, `SPEEDINC3`|`SPI1`, `SPI2`, `SPI3`|increment of speed values when turning the encoder|
|`SPEEDSTEP1`, `SPEEDSTEP2`|`SPS1`, `SPS2`|speed increment steps (increment changes at these values)|
|`FANMIN`|`FMIN`|fan minimum speed (should be a value at which the fan runs safely) (rpm)|
|`FANMAX`|`FMAX`|maximum speed of the fan (it is important that this is the real maximum value of the fan) (rpm)|
|`FANINIT`|`FINI`|set fan to hight voltage at boot|
|`FANINIT`|`FINI`|set fan to hight voltage at boot (3 sec)|
|`BOFF`|`BOFF`|if set boost off will also turn the normal mode off|
|`BINC`|`BINC`|boost time increment (min)|
|`CINC`|`CINC`|catch time increment (min)|

View File

@ -78,7 +78,7 @@ int ostate[2]={0},otime[2]={0};
int rnd[2]={0},rnval[2]={0};long seed; // random speed
char form[8],out[20]; // string buffer
String CF[NP];int *P[NP],Cinc[NP],Cmin[NP],Cmax[NP]; // configuration menu
int clkorg,dtorg;
int clkorg,dtorg; // encoder direction
void setup() { ////////////////////////////////////////////////////////////////////////////////////////// SETUP
int i;
@ -144,7 +144,7 @@ void setup() { /////////////////////////////////////////////////////////////////
slcd(0,0,5,VERSION); // show version
if (FANINIT) { // setup fans
digitalWrite(R0,LOW);digitalWrite(R1,LOW);delay(4000);digitalWrite(R0,HIGH);digitalWrite(R1,HIGH);
digitalWrite(R0,LOW);digitalWrite(R1,LOW);delay(3000);digitalWrite(R0,HIGH);digitalWrite(R1,HIGH);
}
}