Elite 1.4 ADC test
This commit is contained in:
-1
@@ -755,7 +755,6 @@ static bool TurnOnElite(uint8_t key){
|
||||
static uint8_t TurnOnCounter = 0;
|
||||
|
||||
if(key == 0){
|
||||
// LED_color(LIGHTLED, 0x0F, 0x00, 0x0F);
|
||||
// press 1 sec, power on LED
|
||||
if(TurnOnCounter >= 15){
|
||||
PIN_setOutputValue(pin_handle, enable_5v, 1); // enable 5V
|
||||
|
||||
+3
-8
@@ -549,12 +549,7 @@ static void SimpleBLEPeripheral_taskFxn(UArg a0, UArg a1) {
|
||||
// headstage_gptimer_init();
|
||||
|
||||
ZM_init();
|
||||
// Elite_SPI_init();
|
||||
|
||||
// PIN_setOutputValue(pin_handle, enable_5v, 1);
|
||||
// I2Cinit();
|
||||
// I2CWrite(0x94, 0x87);
|
||||
// I2C_close(I2Chandle);
|
||||
Elite_SPI_init();
|
||||
|
||||
uint8_t key = 0;
|
||||
uint8_t counter6994 = 0;
|
||||
@@ -622,12 +617,12 @@ static void SimpleBLEPeripheral_taskFxn(UArg a0, UArg a1) {
|
||||
else if(counter6994 == 35){
|
||||
PIN_setOutputValue(pin_handle, shutdown_6994, 0); // OFF = 1 => turn off 6994
|
||||
|
||||
#ifdef ELITE_VERSION_1_4
|
||||
// #ifdef ELITE_VERSION_1_4
|
||||
// SPI_close(spiHandle0);
|
||||
// I2Cinit();
|
||||
// I2C_close(I2Chandle);
|
||||
// spiHandle0 = SPI_open(Board_SPI0, &spiParams0); // LED SPI
|
||||
#endif
|
||||
// #endif
|
||||
counter6994 ++;
|
||||
}
|
||||
EliteKeyPress(key);
|
||||
|
||||
Reference in New Issue
Block a user