Search found 1 match
- 17 Oct 2010, 14:41
- Forum: Mindstorms Software
- Topic: NXC - problem with 2 color sensors
- Replies: 4
- Views: 5670
NXC - problem with 2 color sensors
Hi all, I added a color sensor to my robot and just for fun I wanted it to alternate between blue, green, red. [ I use BricxCC, version 3.3.8.8 of 29/06/2010 ] The code : counter ++ ; switch (counter) { case 1: SetSensorColorBlue(S3); break ; case 2 : SetSensorColorRed(S3);break ; case 3 : SetSensor...