do a single green pulse when starting
This commit is contained in:
		@@ -1,9 +1,8 @@
 | 
				
			|||||||
// This is the last thing executed before user code
 | 
					// This is the last thing executed before user code
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// We pause for 100ms to give time to read sensor values, so they work in on_start block
 | 
					 | 
				
			||||||
pause(100)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// pulse green, play startup sound, turn off light
 | 
					// pulse green, play startup sound, turn off light
 | 
				
			||||||
brick.setStatusLight(StatusLight.GreenPulse);
 | 
					brick.setStatusLight(StatusLight.GreenPulse);
 | 
				
			||||||
music.playSoundEffectUntilDone(sounds.systemStartUp);
 | 
					// We pause for 100ms to give time to read sensor values, so they work in on_start block
 | 
				
			||||||
 | 
					pause(400)
 | 
				
			||||||
 | 
					// and we're ready
 | 
				
			||||||
brick.setStatusLight(StatusLight.Off);
 | 
					brick.setStatusLight(StatusLight.Off);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user