Skip to content

Commit

Permalink
alpha v0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
DeanSellas committed Dec 10, 2017
1 parent c8e2142 commit 4439603
Show file tree
Hide file tree
Showing 17 changed files with 190 additions and 141 deletions.
11 changes: 10 additions & 1 deletion Arduino/Specturm/Specturm.ino
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <EEPROM.h>


long previousMillis = 0;

Expand Down Expand Up @@ -45,6 +47,8 @@ bool rainbowFullBool = false;
bool sentCommand = false;
bool boardReady = true;

int EEPROMlength = 130;

void setup() {
Serial.begin(9600);
strip.begin();
Expand All @@ -53,10 +57,15 @@ void setup() {

void loop() {
String data = Serial.readString();


if(EEPROM.read(EEPROMlength) != stripLength){
stripLength = EEPROM.read(EEPROMlength);
}

// Changes the Length Of The Strip
if(data.substring(0,17) == "ChangeStripLength"){
stripLength = data.substring(17).toInt();
EEPROM.write(EEPROMlength, stripLength);
}
//Serial.println(stripLength);

Expand Down
Binary file modified Installer/Files/Spectrum.exe
Binary file not shown.
159 changes: 87 additions & 72 deletions Installer/Files/Spectrum.exe.config
Original file line number Diff line number Diff line change
@@ -1,75 +1,90 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="Spectrum.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<userSettings>
<Spectrum.Properties.Settings>
<setting name="isConnected" serializeAs="String">
<value>False</value>
</setting>
<setting name="closeToTrayBool" serializeAs="String">
<value>False</value>
</setting>
<setting name="connectOnStartupBool" serializeAs="String">
<value>False</value>
</setting>
<setting name="windowsStartupBool" serializeAs="String">
<value>False</value>
</setting>
<setting name="port" serializeAs="String">
<value>0</value>
</setting>
<setting name="redColor" serializeAs="String">
<value>0</value>
</setting>
<setting name="greenColor" serializeAs="String">
<value>0</value>
</setting>
<setting name="blueColor" serializeAs="String">
<value>0</value>
</setting>
<setting name="delayValue" serializeAs="String">
<value>100</value>
</setting>
<setting name="startMinimizedBool" serializeAs="String">
<value>False</value>
</setting>
<setting name="lastUpdateCheck" serializeAs="String">
<value />
</setting>
<setting name="nextUpdateCheck" serializeAs="String">
<value />
</setting>
<setting name="startupUpdateDate" serializeAs="String">
<value>True</value>
</setting>
<setting name="updateComboBoxInt" serializeAs="String">
<value>1</value>
</setting>
<setting name="postponeUpdateDate" serializeAs="String">
<value />
</setting>
<setting name="postponeUpdateBool" serializeAs="String">
<value>False</value>
</setting>
<setting name="turnOffOnClose" serializeAs="String">
<value>True</value>
</setting>
<setting name="fileLocation" serializeAs="String">
<value />
</setting>
<setting name="FirstLaunch" serializeAs="String">
<value>True</value>
</setting>
<setting name="stripLength" serializeAs="String">
<value>0</value>
</setting>
</Spectrum.Properties.Settings>
</userSettings>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="Spectrum.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<userSettings>
<Spectrum.Properties.Settings>
<setting name="isConnected" serializeAs="String">
<value>False</value>
</setting>
<setting name="closeToTrayBool" serializeAs="String">
<value>False</value>
</setting>
<setting name="connectOnStartupBool" serializeAs="String">
<value>False</value>
</setting>
<setting name="windowsStartupBool" serializeAs="String">
<value>False</value>
</setting>
<setting name="port" serializeAs="String">
<value>0</value>
</setting>
<setting name="redColor" serializeAs="String">
<value>0</value>
</setting>
<setting name="greenColor" serializeAs="String">
<value>0</value>
</setting>
<setting name="blueColor" serializeAs="String">
<value>0</value>
</setting>
<setting name="delayValue" serializeAs="String">
<value>100</value>
</setting>
<setting name="startMinimizedBool" serializeAs="String">
<value>False</value>
</setting>
<setting name="lastUpdateCheck" serializeAs="String">
<value />
</setting>
<setting name="nextUpdateCheck" serializeAs="String">
<value />
</setting>
<setting name="startupUpdateDate" serializeAs="String">
<value>True</value>
</setting>
<setting name="updateComboBoxInt" serializeAs="String">
<value>1</value>
</setting>
<setting name="postponeUpdateDate" serializeAs="String">
<value />
</setting>
<setting name="postponeUpdateBool" serializeAs="String">
<value>False</value>
</setting>
<setting name="turnOffOnClose" serializeAs="String">
<value>True</value>
</setting>
<setting name="fileLocation" serializeAs="String">
<value />
</setting>
<setting name="FirstLaunch" serializeAs="String">
<value>True</value>
</setting>
<setting name="stripLength" serializeAs="String">
<value>0</value>
</setting>
<setting name="lastCommand" serializeAs="String">
<value />
</setting>
<setting name="rememberLightProfile" serializeAs="String">
<value>False</value>
</setting>
<setting name="responsiveLighting" serializeAs="String">
<value>False</value>
</setting>
<setting name="advancedLighting" serializeAs="String">
<value>False</value>
</setting>
<setting name="defaultStripLength" serializeAs="String">
<value>0</value>
</setting>
</Spectrum.Properties.Settings>
</userSettings>
</configuration>
2 changes: 1 addition & 1 deletion Installer/Spectrum.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ FunctionEnd
;Name and file
Name "Spectrum"
OutFile "spectrumv0.1setup.exe"
OutFile "spectrumv0.1.2setup.exe"
!define MUI_PRODUCT "Spectrum"
!define MUI_FILE "Spectrum"
Expand Down
File renamed without changes.
Binary file added Installer/spectrumv0.1.2setup.exe
Binary file not shown.
26 changes: 17 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
# Spectrum
Spectrum is a Windows App that is meant to communicate with Arduino Boards to control NeoPixels.

[Official Website](http://deansellas.com/spectrum/)
***

At this point in time the app will require the included Arduino code in order to work properly but I have plans in the future to be compatible will your own Arduino code. The code and this program are being made fully modifiable so you can change any part of it to suite your needs.

Documentation is comming very soon, so you can start customizing the app to your needs!
***

### Current Version
Alpha 0.1
+ ADDED: Ability To Control Arduino Board
+ ADDED: Custom Variables For Functions
+ ADDED: Settings Menu
+ ADDED: Update Form
+ ADDED: Ability to choose when to check for updates
+ ADDED: Choose Download Location
+ ADDED: Color Preview
+ ADDED: Misc Settings
Alpha 0.1.2
+ ADDED: Set Up Menu
+ ADDED: Ability to change amount of NeoPixels on strip
+ ADDED: Ablility to remember lighting
+ ADDED: Advanced Settings
+ ADDED: Responsive Lighting
+ ADDED: Arduino Remembers Strip Length

* CHANGED: Redid Settings Menu
* CHANGED: Small redesigns
* CHANGED: Cleaned code

- FIXED: Lots of bugs.

### Next Steps
+ Write Documentation
Expand Down
3 changes: 3 additions & 0 deletions Spectrum/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@
<setting name="advancedLighting" serializeAs="String">
<value>False</value>
</setting>
<setting name="defaultStripLength" serializeAs="String">
<value>0</value>
</setting>
</Spectrum.Properties.Settings>
</userSettings>
</configuration>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Spectrum/Properties/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,8 @@
<Setting Name="advancedLighting" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="defaultStripLength" Type="System.Int32" Scope="User">
<Value Profile="(Default)">0</Value>
</Setting>
</Settings>
</SettingsFile>
19 changes: 17 additions & 2 deletions Spectrum/SettingsForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 18 additions & 1 deletion Spectrum/SettingsForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,24 @@ private void SettingsForm_FormClosing(object sender, FormClosingEventArgs e) {
defaultSettings(false);
}

private void resetSettingsButton_Click(object sender, EventArgs e) { spectrumForm.resetSettingsToolStripMenuItem.PerformClick(); }
// Reset Settings
private void resetSettingsButton_Click(object sender, EventArgs e) {
DialogResult dialogResult = MessageBox.Show("Are you sure you want to reset all your settings? This setting is meant for debugging, and it will completely wipe the program.", "RESET SETTINGS", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
// If Yes
if (dialogResult == DialogResult.Yes) {

// Delete Startup Reg Key
try {
Settings.Default.Reset();
using (RegistryKey key = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true)) {
key.DeleteValue("Spectrum", false);
}

}
// Reset Settings
finally { spectrumForm.Close(); }
}
}

private void defaultSettings(bool user) {

Expand Down
Loading

0 comments on commit 4439603

Please sign in to comment.