Commit graph

16 commits

Author SHA1 Message Date
Mikael Degerfält
4f295a6b52 More correct display simulation
enable/disable works more like the real thing, however not entirely correct. When enabling the display, it takes the current content of the screen buffer instead of the data that has been send to the display controller.
2019-07-01 14:41:39 +02:00
John Stäck
f5fc086177 Only write to file if value has actually changed. 2019-06-24 16:01:27 +02:00
John Stäck
2c3df24fc1 Use default eeprom file if none is provided 2019-06-24 14:11:58 +02:00
John Stäck
829c08c031 EEPROM file storage, and argparsing that actually works 2019-06-24 11:56:57 +02:00
John Stäck
3b2f0fa4cf Add argument parsing for eeprom stuff 2019-06-23 20:44:10 +02:00
Mikael Degerfält
8723bb8706 Merge branch 'master' into sim 2019-06-23 17:01:16 +02:00
John Stäck
2332f37eca Advanced unusage of parameters 2019-06-23 14:51:31 +02:00
John Stäck
3d38f50d98 Add deeper simulation of USB midi 2019-06-23 14:30:32 +02:00
Mikael Degerfält
3445c79f23 Press buttons 1-7 for valves and trills and left index input
Also moved bug workaround code to be in the same function for simpler removal at later stage.
2019-06-23 11:38:39 +02:00
Mikael Degerfält
0f8c0ff77e Don't spam digital write output 2019-06-22 23:10:26 +02:00
Mikael Degerfält
d9b18255e5 Initialize touch inputs to untouched 2019-06-22 23:10:03 +02:00
Mikael Degerfält
f900be5306 More globals in UI + workaround for bug in firmware
A bug in the current NuEVI.ino does not write all default values to EEPROM on the first boot, unless menu + enter buttons are pressed. I added a workaround to the simulator that fakes that the buttons are pressed when calling the setup function.
2019-06-21 18:40:07 +02:00
Mikael Degerfält
9357d4b827 More inputs and outputs added in simulator
* Set default value for battery sensor input
 * Show EEPROM values as unsigned.
 * Simulate K1 to K7 inputs (valve and trills++)
2019-06-21 18:13:02 +02:00
Mikael Degerfält
0871b2582d Simulator now uses ImGui for stuff 2019-06-21 18:08:24 +02:00
Mikael Degerfält
1be998153a Fake input and bug fixes
* Press W in simulator to activate (pretty slow shit, do avoid unless compiling with optimisations)
 * Tiny improvement of the EEPROM simulation.
 * Fixed type typo for millis and micros
2019-06-21 18:07:47 +02:00
Mikael Degerfält
266b3334cb Simple simulation code
Builds a native program on MacOS that runs the NuEVI firmware compiled for x86_64.
Only input is arrow keys for menu buttons for now. Only output is console and display.

Copied some more library files into the simulation folder, and renamed the modified *.cpp files from the libraries to *_sim.cpp.
2019-06-13 20:51:45 +02:00