Sfoglia il codice sorgente

- write ready marker set

- setting the LEDBUILDIN port to output.
Wilfried Klaas 6 anni fa
parent
commit
f8015f8de1
2 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 2 0
      SPS/SPS.ino
  2. 1 1
      SPS/serialprg.ino

+ 2 - 0
SPS/SPS.ino

@@ -282,9 +282,11 @@ void setup() {
     programMode();
   }
 #ifdef SPS_ENHANCEMENT
+  pinMode(LED_BUILTIN, OUTPUT);
   if (digitalRead(SW_SEL) == 0) {
     serialPrg();
   }
+  
 #endif
 }
 

+ 1 - 1
SPS/serialprg.ino

@@ -28,7 +28,7 @@ void serialPrg() {
       char myChar = Serial.read();
       if (myChar == 'w') {
         // hexfile is comming to programm
-        Serial.println("waitin");
+        Serial.println("ready");
         addr = 0;
         do {
           for (byte i = 0; i < 8; i++) {