This commit is contained in:
105042004
2019-08-13 17:12:46 +08:00
parent 9eac85a5d3
commit e7fb10be20
2 changed files with 6 additions and 7 deletions
@@ -721,7 +721,7 @@ static void update_ZM_instruction(uint8 *ins) {
DACreset = true;
if(!If10Von){
// TurnOn10V();
//TurnOn10V();
}
switch (ins_type) {
@@ -1040,7 +1040,6 @@ static void update_ZM_instruction(uint8 *ins) {
case VIS_FUH:{
LED_color(DARKLED, 0x0F, 0x00, 0x0F);
PIN_setOutputValue(pin_handle, enable_10v, 1);
break;
}
@@ -646,7 +646,7 @@ static void DPVCurve(){
if( counter <= (PulsePeriod - PulseWidth)) outputV = Volt1;
else outputV = Volt2;
*/
LED_color(LIGHTLED, 0xff, 0x00, 0x00);
DAC_outputV(Volt1);
// record the output voltage
@@ -663,16 +663,16 @@ static void DPVCurve(){
PeriodicEvent = false;
DACreset = true;
return;
}*/
}
if(Volt1 >= VoltFinal){
PeriodicEvent = false;
DACreset = true;
return;
}
}*/
//check overflow/underflow and prepare for next output
LED_color(LIGHTLED, 0xff, 0x00, 0x00);
Volt1 = Volt1 + Amplitude;
LED_color(LIGHTLED, 0xff, 0xfa, 0x64);
@@ -1029,7 +1029,7 @@ static bool TurnOnElite(uint8_t key){
// press 1 sec, power on LED
if(TurnOnCounter >= 15){
PIN_setOutputValue(pin_handle, enable_5v, 1); // enable 5V
// TurnOn10V();
TurnOn10V();
LEDPowerON();
return true;
}