Hello, i need a complete ASCII table of the NXT, because i have use of the check mark (used in NXT Program menu)
and i don't have the character to copy into my program. Does anyone have a copy-paste ASCII NXT table that has the check-mark?
Thanks,
DUD
ASCII
ASCII
2Labz.com, My Website
-
- Posts: 1818
- Joined: 02 Oct 2010, 02:19
- Location: Michigan USA
- Contact:
Re: ASCII
If all you want, is a check mark, you could just draw it with two lines, although I would as well like to see a list of NXT supported characters.
Matt
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
Re: ASCII
All you need to do is test them out. The values supported, AFAIK, are from 0x20 to 0x7F inclusive (32 to 127).mattallen37 wrote:If all you want, is a check mark, you could just draw it with two lines, although I would as well like to see a list of NXT supported characters.
Here is my favourite ASCII table look up website*:
http://ascii-table.com/
* ...so far. You may start finding other good ASCII websites, and have to give up your old ones. No matter how long you've spent time together, you have to stop crying, and let it go. It's for the better for both of you.
Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE
Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
Re: ASCII
This is the default NXT font:
The last character in this font looks a bit like a checkmark. Its ASCII value is 0x7F or 127.
John Hansen
The last character in this font looks a bit like a checkmark. Its ASCII value is 0x7F or 127.
John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
http://bricxcc.sourceforge.net/
Re: ASCII
How can i initialize this character to an array and/or variable?
Can you post a program?
Thanks, Dud.
Can you post a program?
Thanks, Dud.
2Labz.com, My Website
Re: ASCII
I'll assume you're talking about this:dudmaster wrote:How can i initialize this character to an array and/or variable?
Can you post a program?
Thanks, Dud.
Code: Select all
void WasteSomeRAMandCPU(string &szOut[])
{
ArrayInit(szOut, " ", 0x80-0x20+1);
for(char charidx = 0x20; charidx < 0x80; charidx++)
{
szOut[charidx-0x20] = FlattenVar(charidx);
}
}
string UseThisInstead(unsigned int idx)
{
idx += 0x20;
return(FlattenVar(idx));
}
task main()
{
string szVar[];
WasteSomeRAMandCPU(szVar);
TextOut(0, LCD_LINE1, szVar[10], 0);
TextOut(0, LCD_LINE2, UseThisInstead(10), 0);
Wait(2000);
}
Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE
Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
Who is online
Users browsing this forum: No registered users and 0 guests