Changing LED color of Kilobots using LUA
Posted: Wed Jul 17, 2019 4:52 am
Hi,
Can we change the led color of kilobots using lua. Because when I am trying the following command in lua then I am getting the error.
After writing the above command in lua, I am getting the following error.
What's wrong with the command?
The same command easily change the led color of foot-bot in Lua. But not working with kilobots
Thanks
Can we change the led color of kilobots using lua. Because when I am trying the following command in lua then I am getting the error.
Code: Select all
robot.leds.set_single_color(1,"red")
After writing the above command in lua, I am getting the following error.
Code: Select all
attempt to index field 'leds' (a nil value)
What's wrong with the command?
The same command easily change the led color of foot-bot in Lua. But not working with kilobots

Thanks