mirror of
https://github.com/Architeuthis-Flux/Jumperless.git
synced 2024-11-23 23:00:57 +01:00
I broke something in the last release, this should fix it
This commit is contained in:
parent
94572acf75
commit
6b72c7ef24
@ -1 +0,0 @@
|
||||
{"hostname":"Kevins-MBP","username":"kevinsanto"}
|
@ -1508,6 +1508,7 @@ void debugFlagInit(void)
|
||||
rotaryEncoderMode = EEPROM.read(ROTARYENCODER_MODE_ADDRESS);
|
||||
|
||||
probeSwap = EEPROM.read(PROBESWAPADDRESS);
|
||||
loadFileOnStart = EEPROM.read(LOADFILEONSTART_ADDRESS);
|
||||
|
||||
#else
|
||||
|
||||
@ -1522,6 +1523,8 @@ void debugFlagInit(void)
|
||||
|
||||
// debugLEDs = 1;
|
||||
#endif
|
||||
if (loadFileOnStart != 0 && loadFileOnStart != 1)
|
||||
EEPROM.write(LOADFILEONSTART_ADDRESS, 0);
|
||||
|
||||
if (debugFP != 0 && debugFP != 1)
|
||||
EEPROM.write(DEBUG_FILEPARSINGADDRESS, 0);
|
||||
@ -1747,6 +1750,22 @@ void debugFlagSet(int flag)
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 7:
|
||||
{
|
||||
if (loadFileOnStart == 0)
|
||||
{
|
||||
EEPROM.write(LOADFILEONSTART_ADDRESS, 1);
|
||||
|
||||
loadFileOnStart = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
EEPROM.write(LOADFILEONSTART_ADDRESS, 0);
|
||||
|
||||
loadFileOnStart = 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
delay(4);
|
||||
EEPROM.commit();
|
||||
|
@ -14,6 +14,8 @@ extern bool debugNTCC2;
|
||||
extern bool debugLEDs;
|
||||
extern bool debugMM;
|
||||
|
||||
extern int loadFileOnStart;
|
||||
|
||||
// #include "RotaryEncoder.h"
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@ extern volatile int sendAllPathsCore2;
|
||||
#define BUTTON_ENC 0
|
||||
|
||||
|
||||
|
||||
#define LOADFILEONSTART_ADDRESS 29
|
||||
#define ROTARYENCODER_MODE_ADDRESS 31
|
||||
#define DEBUG_FILEPARSINGADDRESS 32
|
||||
#define TIME_FILEPARSINGADDRESS 33
|
||||
|
@ -579,11 +579,12 @@ void showSavedColors(int slot)
|
||||
// delayMicroseconds(100);
|
||||
// saveRawColors(slot);
|
||||
}
|
||||
if (rotaryEncoderMode == 1)
|
||||
{
|
||||
|
||||
for (int i = 0; i < LED_COUNT; i++)
|
||||
{
|
||||
leds.setPixelColor(i, savedLEDcolors[slot][i]);
|
||||
if (rotaryEncoderMode == 1)
|
||||
{
|
||||
|
||||
if (i == slotLEDpositions[netSlot])
|
||||
{
|
||||
@ -832,7 +833,7 @@ void lightUpNet(int netNumber, int node, int onOff, int brightness2, int hueShif
|
||||
// Serial.print(node);
|
||||
// Serial.print(" onOff: ");
|
||||
// Serial.print(onOff);
|
||||
if (net[netNumber].nodes[1] != 0 && net[netNumber].nodes[1] <= NANO_A7)
|
||||
if ((net[netNumber].nodes[1] != 0 && net[netNumber].nodes[1] <= NANO_A7 )||net[netNumber].nodes[0] != 0 && net[netNumber].nodes[0] <= NANO_A7 )
|
||||
{
|
||||
|
||||
for (int j = 0; j < MAX_NODES; j++)
|
||||
|
@ -589,7 +589,7 @@ probeActive = 1;
|
||||
assignNetColors();
|
||||
// // Serial.print("bridgesToPaths\n\r");
|
||||
// delay(18);
|
||||
showNets();
|
||||
//showNets();
|
||||
showLEDsCore2 = 1;
|
||||
rawOtherColors[1] = 0x550004;
|
||||
showLEDsCore2 = 1;
|
||||
@ -597,7 +597,7 @@ probeActive = 1;
|
||||
sendAllPathsCore2 = 1;
|
||||
// delay(25);
|
||||
// pinMode(probePin, INPUT);
|
||||
delay(300);
|
||||
delay(100);
|
||||
row[1] = -2;
|
||||
|
||||
// sprintf(oledBuffer, " ");
|
||||
|
@ -75,9 +75,12 @@ unsigned long lastNetConfirmTimer = 0;
|
||||
|
||||
volatile int sendAllPathsCore2 = 0; // this signals the core 2 to send all the paths to the CH446Q
|
||||
|
||||
int loadFileOnStart = 1;
|
||||
int rotEncInit = 0;
|
||||
// https://wokwi.com/projects/367384677537829889
|
||||
|
||||
int core2setupFinished = 0;
|
||||
|
||||
void setup()
|
||||
{
|
||||
pinMode(0, OUTPUT);
|
||||
@ -117,7 +120,12 @@ void setup()
|
||||
|
||||
setDac0_5Vvoltage(0.0);
|
||||
setDac1_8Vvoltage(1.9);
|
||||
createSlots(-1, rotaryEncoderMode);
|
||||
|
||||
// if (rotaryEncoderMode == 1)
|
||||
// {
|
||||
createSlots(-1, rotaryEncoderMode);
|
||||
//}
|
||||
//
|
||||
clearAllNTCC();
|
||||
|
||||
// if (rotaryEncoderMode == 1)
|
||||
@ -143,7 +151,7 @@ void setup1()
|
||||
startupColors();
|
||||
delay(4);
|
||||
lightUpRail();
|
||||
|
||||
core2setupFinished = 1;
|
||||
delay(4);
|
||||
|
||||
showLEDsCore2 = 1;
|
||||
@ -159,7 +167,7 @@ int baudRate = 115200;
|
||||
|
||||
int restoredNodeFile = 0;
|
||||
|
||||
const char firmwareVersion[] = "1.3.13"; //// remember to update this
|
||||
const char firmwareVersion[] = "1.3.15"; //// remember to update this
|
||||
|
||||
int firstLoop = 1;
|
||||
volatile int probeActive = 1;
|
||||
@ -222,6 +230,14 @@ menu:
|
||||
|
||||
goto loadfile;
|
||||
}
|
||||
// if (firstLoop == 1 && rotaryEncoderMode == 0 && loadFileOnStart == 1)
|
||||
// {
|
||||
// delay(50);
|
||||
// firstLoop = 0;
|
||||
// probeActive = 0;
|
||||
|
||||
// goto loadfile;
|
||||
// }
|
||||
|
||||
// Serial.print("Slot: ");
|
||||
// Serial.println(netSlot);
|
||||
@ -503,7 +519,7 @@ goto dontshowmenu;
|
||||
case 'x':
|
||||
{
|
||||
|
||||
if (netSlot == NUM_SLOTS)
|
||||
if (netSlot == NUM_SLOTS-1)
|
||||
{
|
||||
netSlot = 0;
|
||||
} else {
|
||||
@ -540,7 +556,8 @@ goto dontshowmenu;
|
||||
getNodesToConnect();
|
||||
bridgesToPaths();
|
||||
clearLEDs();
|
||||
assignNetColors();
|
||||
//leds.clear();
|
||||
//assignNetColors();
|
||||
digitalWrite(RESETPIN, HIGH);
|
||||
delayMicroseconds(100);
|
||||
// Serial.print("bridgesToPaths\n\r");
|
||||
@ -762,6 +779,8 @@ goto dontshowmenu;
|
||||
{
|
||||
Serial.print("18");
|
||||
}
|
||||
Serial.print("\n\n\r7. load slots on start = ");
|
||||
Serial.print(loadFileOnStart? "on" : "off");
|
||||
|
||||
Serial.print("\n\n\n\r");
|
||||
|
||||
|
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>Jumperless</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>Jumperless</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>icon.icns</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>Jumperless</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>Jumperless</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>0.0.0</string>
|
||||
<key>NSHighResolutionCapable</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
# This is the launcher for OSX, this way the app will be opened
|
||||
# when you double click it from the apps folder
|
||||
open -n -F /Applications/Jumperless.app/Contents/MacOS/Jumperless_cli
|
||||
|
||||
|
||||
|
||||
#this should be called jumperlesswokwibridge in the contents folder of the app
|
||||
|
||||
#and the real app should be renamed to jumperlesswokwibridge_cli
|
||||
|
||||
#it's a hack to allow you to both have a .app file and actually run it in a persistent Terminal
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user