jjonas Posted January 18, 2020 Report Share Posted January 18, 2020 Hi, I had some unexpected behaviour with the label parameter, and here' some tests I did. I'm using two 2x40 LCDs (the tests use only one), and I would have thought that you can fill the screen(s) with text equally well with one entry, on the one hand, or several entries, on the other, by using the @(x:x:x) to place text wherever on the LCD(s), as long as it fits. However, this appear not to be so, and I'm not sure what the reasons are. The way around it is to write the text from several events with identical id's, and if this is among the recommended ways, I have no problem with it. But the NGC documentation does say that "Each EVENT_* element requires a unique ID in the configuration file!", so that's why I'm wondering. RESET_HW ENC n=1 sr=1 pins=0:1 type=detented3 ENC n=2 sr=1 pins=2:3 type=detented3 ENC n=3 sr=1 pins=4:5 type=detented3 ENC n=4 sr=1 pins=6:7 type=detented3 # works EVENT_ENC id=1 hw_id=1 label="@(1:1:1)This text is 32 characters long!" # doesn't work. hard fault! #EVENT_ENC id=2 hw_id=1 label="@(1:1:2)This @(1:6:2)text @(1:11:2)is @(1:14:2)32 @(1:17:2)characters @(1:28:2)long!" # doesn't work #EVENT_ENC id=2 hw_id=2 label="@(1:1:2)This @(1:6:2)text is 32 characters long!" # works #EVENT_ENC id=2 hw_id=2 lcd_pos=1:1:2 label="This @(1:6:2)text is 32 characters long!" # doesn't work #EVENT_ENC id=2 hw_id=2 lcd_pos=1:1:2 label="This @(1:6:2)text @(1:11:2)is 32 characters long!" # doesnt' work #EVENT_ENC id=2 hw_id=2 label="@(1:1:2)This text is@(1:13:2)32 characters long!" # doesn't work #EVENT_ENC id=2 hw_id=2 label="@(1:1:2)This text @(1:11:2)is 24 chrs!!!!" # works. identical to the one above, only one exclamation mark less #EVENT_ENC id=2 hw_id=2 label="@(1:1:2)This text @(1:11:2)is 23 chrs!!!" # doesn't work. text in three places #EVENT_ENC id=2 hw_id=2 label="@(1:1:2)This @(1:6:2)text @(1:11:2)is 23 chrs!!!" # works. text in three places, only shorter than above #EVENT_ENC id=2 hw_id=2 label="@(1:1:2)This @(1:6:2)text @(1:11:2)is 15" # works #EVENT_ENC id=2 hw_id=2 label="@(1:1:2)This @(1:6:2)text" #EVENT_ENC id=2 hw_id=2 label="@(1:11:2)is @(1:14:2)23 chrs!!!" # works #EVENT_ENC id=2 hw_id=2 label="@(1:1:2)This @(1:6:2)text" #EVENT_ENC id=2 hw_id=2 label="@(1:11:2)is @(1:14:2)23 @(1:17:2)chrs!!!" Quote Link to comment Share on other sites More sharing options...
TK. Posted January 18, 2020 Report Share Posted January 18, 2020 This should work... will check this tomorrow. Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
TK. Posted January 19, 2020 Report Share Posted January 19, 2020 Problem was, that earlier versions didn't support labels with more than 40 characters, and the corresponding error message caused the crash. The error message is working now, and I've increased the max label size to 128 characters: http://www.ucapps.de/mios32/midibox_ng_v1_037_pre12.zip Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
jjonas Posted January 19, 2020 Author Report Share Posted January 19, 2020 Thanks, it's working now! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.