gh0stless

Test

Aug 31st, 2020
1,835
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.    case STATE_RESET:
  2.       flashcounter=0;
  3.       set_ledcolor(rom);
  4.       next_state = STATE_IDLE;
  5.       digitalWrite(INTRST, LOW);
  6.       pinMode(INTRST, OUTPUT);
  7.       delay(300);
  8.       pinMode(INTRST, INPUT);
  9.       EEPROM.write(0, rom&0x03);
  10.       delay(5);
  11.       break;
  12.  
  13.     case STATE_EXROMRESET:
  14.       flashcounter=0;
  15.       set_ledcolor(rom);
  16.       next_state = STATE_IDLE;
  17.       digitalWrite(INTRST, LOW);
  18.       pinMode(INTRST, OUTPUT);
  19.       delay(100);
  20.       if(exrom_available) {
  21.         pinMode(EXROM, OUTPUT);
  22.         digitalWrite(EXROM, LOW);
  23.       }
  24.       delay(300);
  25.       pinMode(INTRST, INPUT);
  26.       digitalWrite(INTRST, HIGH);
  27.       delay(100);
  28.       if(exrom_available) {
  29.         pinMode(EXROM, INPUT);
  30.         digitalWrite(EXROM, HIGH);
  31.  
  32.       }
RAW Paste Data