mirror of
https://github.com/Architeuthis-Flux/Jumperless.git
synced 2025-01-18 16:24:05 +01:00
Fixed a bunch of routing bugs
This commit is contained in:
parent
53a3c67d21
commit
448aabb3e3
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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
@ -72,7 +72,7 @@ void duplicateSFnets (void);
|
||||
void swapDuplicateNode (int);
|
||||
|
||||
void resolveUncommittedHops(void);
|
||||
|
||||
void resolveUncommittedHops2(void);
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user