Commit graph

119 commits

Author SHA1 Message Date
Mikael Degerfält
25a31d8df8 Write new factor constants even if old version was < 24
This bug would probably never happen in real life, and could be fix by holding down menu and enter buttons at startup. But a bug is a bug.
The only reason I found this bug is that the simulator didn’t initialise EEPROM to 0xff, and even after I did that it crashed, because a version of 0xffff wasn't handled.
2019-06-23 10:24:42 +02:00
John Stäck
2d034b6369 C++ify midi.ino, change to appropriate datatypes 2019-06-23 09:55:51 +02:00
Mikael Degerfält
c43be09b1f Save memory by changing int arrays to const short arrays
No need to have them in RAM since they are never changed, and their value was never higher than 14 bits, so using 32 was just a waste.
2019-06-09 16:53:17 +02:00
Mikael Degerfält
cc3323fd03 Move access to usbMIDI to midi.ino
NuEVI.ino shouldn’t have to know about usbMIDI.
2019-06-08 22:22:13 +02:00
Mikael Degerfält
921fdb1266 Global namespace cleanup
Moved variables only used in menu to menu code. Variables only used in NuEVI.ino removed from globals.h and made static.
2019-06-08 15:34:16 +02:00
Mikael Degerfält
2c4fd26d25 Fix problem where the V was still visible if battery low 2019-06-07 23:57:17 +02:00
Mikael Degerfält
883dbf605e Avoid converting value to a double
No need to convert a value to double when all we want is a two digits converted to string.
This also avoids linking some math library, which saved almost 8K och program storage space.
2019-06-07 00:12:06 +02:00
Mikael Degerfält
58ea673994 Moved settings #defines to settings.h
I did feel like they belong in config.h
2019-06-04 23:34:26 +02:00
Mikael Degerfält
4bf2a3a91e Renamed menu.ino to menu.cpp
This change required lots of other changes to have it compile. I had to declare all variables from NuEVI.ino used by the menu as extern in a separate header file (globals.h).
Also I moved all defines from NuEVI.ino to a config.h file. I think some of these could be moved back or even moved into menu.cpp.
I declared many variables and functions in menu.cpp as static and moved them around to avoid forward declarations. For simplicity I did some forward declarations anyway.
Some varibles only used in menu.cpp was moved from NuEVI.ino instead of having them as externals.
2019-06-03 19:24:21 +02:00
Johan Berglund
f0010cb08c Support for CV box/CV board (compile option). Match idle CV from PWM breath CV on A6 to direct output idle voltage from breath sensor (so any of them can be used for CV box without need for recalibration of box). Added reading and ignoring incoming USB MIDI messages to prevent buffers from getting filled up blocking outgoing messages. 2019-05-25 11:05:17 +02:00
Johan Berglund
f06eb0b9a4 Cleanup 2019-03-21 09:28:21 +01:00
Johan Berglund
37c77356d5 Added way to enter regular menu instead of rotator menu (touch special key) if touch sensing is set too high. Added support for pneumatic bite sensing (add-on board). Experimental pitch CV out for built-in add-on CV scaler board (#define CVSCALEBOARD). LED brightness fix. 2019-03-21 09:15:28 +01:00
John Stäck
b6fc9c74d5
Merge pull request #4 from blind/calibrationloop
Use loop for calibration
2019-03-13 20:06:23 +01:00
John Stäck
cf89c9df42 Call this version 1.3.3. If it passes testing. 2019-03-05 08:02:31 +01:00
John Stäck
610d226bdb Let us not rename files right now.
This reverts commit 347b6e5c71.
2019-03-05 08:00:38 +01:00
Mikael Degerfält
82b0f3a47c Calibration code cleanup 2019-03-04 21:49:34 +01:00
Mikael Degerfält
e448ba427c Loop for calibration 2019-03-04 21:40:48 +01:00
John Stäck
347b6e5c71 Rename non-main ino files to cpp 2019-03-04 10:58:02 +01:00
John Stäck
e388248c7c Move all source files to subdirectory to be less confusing for Arduino IDE 2019-03-04 10:16:58 +01:00