NXT Program ideas
Posted: 23 Apr 2011, 05:20
Post your program ideas here!
It could be game ideas, useful program ideas, etc.
It could be game ideas, useful program ideas, etc.
Give a child a robot, he'll play for an hour. Teach him to build, and he'll play forever.
https://mindboards.org:443/
Virtual Keyboard? Got any code? Sounds interesting. I'v built one, too.muntoo wrote:Did I mention my current projects? They are:Possible projects I'll retake up:
- Bezier Curve Follower (It can also move the robot to the specified coordinates in 2D Cartesian space [cm])
- Memory Manager
- Virtual Keyboard
- SnakeWorm 2.0
- Something to do with Bluetooth, but I can't remember
[For reference, here's the "virus" he's talking about.]dimasterooo wrote:This one's for Muntoo: Remember you made that NXC virus? I tried something like it with RobotC but it didn't work, cuz I wanted to make a passcode lock for my NXT. Might be something you could do in NXC?
! Startup.nxc
:
Code: Select all
task main()
{
bool correct = true;
string pass = "DIE";
char c = 0x20;
for(unsigned int i = 0; i < strlen(pass);)
{
if(ButtonPressed(BTNLEFT, 0))
{
if(c > 0x20)
c--;
else
c = 0x7F;
while(ButtonPressed(BTNLEFT, 0));
}
if(ButtonPressed(BTNRIGHT, 0))
{
if(c < 0x7F)
c++;
else
c = 0x20;
while(ButtonPressed(BTNRIGHT, 0));
}
if(ButtonPressed(BTNCENTER, 0))
{
if(c != pass[i])
{
correct = false;
}
++i;
while(ButtonPressed(BTNCENTER, 0));
}
}
if(!correct)
{
PowerDown();
//RebootInFirmwareMode();
}
}