Fixed a bunch of routing bugs

This commit is contained in:
Kevin Santo Cappuccio 2024-01-14 16:37:16 -08:00
parent 53a3c67d21
commit 448aabb3e3
5 changed files with 936 additions and 649 deletions

View File

@ -45,10 +45,12 @@ def resource_path(relative_path):
#### If you're running this in thonny, make sure you download arduino-cli and put it in the same folder as this script
#### then uncomment this below and comment the one above
# arduino = pyduinocli.Arduino("./arduino-cli")
arduino = pyduinocli.Arduino("./arduino-cli")
arduino = pyduinocli.Arduino(resource_path("arduino-cli"))
#arduino = pyduinocli.Arduino(resource_path("arduino-cli"))
##print (resource_path("arduino-cli"))
arduinoPort = 0
@ -896,8 +898,9 @@ while True:
except:
except Exception as e:
print(e)
print ("Couldn't Flash Arduino")
#continue

View File

@ -1,9 +1,36 @@
void setup() {
// put your setup code here, to run once:
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
pinMode(10, INPUT_PULLUP);
delay(1600);
Serial.begin(115200);
delay(600);
}
int count = 2;
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(LED_BUILTIN, HIGH);
delay(1230);
digitalWrite(LED_BUILTIN, LOW);
delay(10);
if (digitalRead(10) == 0) {
delay(3000);
}
Serial.write("f 105-"); //5V
Serial.print(count);
Serial.write(",116-70,117-71,"); //these 2 connections reconnect the UART lines so it's ready to send the next connection
// Serial.write("::bridgelist["); //5V
// Serial.print(count);
// Serial.write("-105,116-70,117-71,]"); //these 2 connections reconnect the UART lines so it's ready to send the next connection
count++;
if (count > 29) {
count = 3;
}
}

View File

@ -16,8 +16,7 @@
"initializer_list": "cpp",
"ranges": "cpp",
"cstring": "cpp",
"cmath": "cpp",
"typeinfo": "cpp"
"cmath": "cpp"
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -72,7 +72,7 @@ void duplicateSFnets (void);
void swapDuplicateNode (int);
void resolveUncommittedHops(void);
void resolveUncommittedHops2(void);