V4 updates (#210)
* update pxt.json files * Fix button event enums fixes https://github.com/microsoft/pxt-calliope/issues/206 * Fix Safari CSS Rule for iOS app fixes https://github.com/microsoft/pxt-calliope/issues/205 * aprove preffered repos should fix https://github.com/microsoft/pxt-calliope/issues/167
This commit is contained in:
		@@ -7,7 +7,7 @@
 | 
			
		||||
This program will show the numbers 0, 1, 2, 3, and 4 one after another on the LED screen.
 | 
			
		||||
 | 
			
		||||
```blocks
 | 
			
		||||
input.onButtonEvent(Button.A, ButtonEvent.Down, () => {
 | 
			
		||||
input.onButtonEvent(Button.A, input.buttonEventValue(ButtonEvent.Down), () => {
 | 
			
		||||
    for(let i = 0; i < 5; ++i) {
 | 
			
		||||
        basic.showNumber(i)
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -7,7 +7,7 @@
 | 
			
		||||
The following example uses a while loop to make a diagonal line on the LED screen (points `0, 0`, `1, 1`, `2, 2`, `3, 3`, `4, 4`).
 | 
			
		||||
 | 
			
		||||
```blocks
 | 
			
		||||
input.onButtonEvent(Button.A, ButtonEvent.Down, () => {
 | 
			
		||||
input.onButtonEvent(Button.A, input.buttonEventValue(ButtonEvent.Down), () => {
 | 
			
		||||
    let index = 4;
 | 
			
		||||
    while(index >= 0) {
 | 
			
		||||
        led.plot(index, index);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user