Jump to content

Special characters in Label

Recommended Posts

Hi all, my first NG-project is alive ;) I build a switchable USB to 4 DIN midi port router. Al from parts I have laying around. After a evening digging this forum and trying, it just works. Now I can control my Volca's with a single USB midi keyboard (hurray).

I don't get one thing: How do I get special characters on the display??

For example in the next line I like to have a arrow instead off the >-sign (or the solid >)

EVENT_SENDER  id=1   if_equal=Button:1:1  fwd_to_lcd=1  type=NoteOn chn=1   key=any  lcd_pos=1:32:1  label="> %e"  ports=00001000000000000000

Is this possible with NG?




simple midirouter.jpg

Edited by Keeze
Link to post
Share on other sites


I don't think the built in fonts have special characters available.


I remember reading a thread about creating you're own custom fonts, but it involved recompiling the MB_NG firmware.


Search the forum, you light be lucky :happy:




Edit: I found it! it was in the wiki page:



Edited by totoRaymond
Link to post
Share on other sites

What he wants is to print arrow for example, from the built-in char set.


With MIOS function it's very easy, using Char Print and code number.
With NG it seems only string are possible. But according to the C ascii table.
Ascii Table C | find ascii value in c programming c programming, c program  to find ascii value of total characters in a string, c programming exle  print the ascii table and
the 'left arrow' code 0x7e is "~", so using:

label="~ %e"

works. But for the 'right arrow' the ascii code 0x7f correspond to DEL, which is not usable in a string.

Is there a way to print a label using ascii code instead of string in NG?

Best regards

  • Like 1
Link to post
Share on other sites
On 12-9-2020 at 10:59 AM, totoRaymond said:

Thanks Thomas, but I already found that page. As @antichambre stated, I only want to use interrnal characters. There must be a simple way to achieve this I hoped (without having to us 2 character postions like ->).



Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...