-
Notifications
You must be signed in to change notification settings - Fork 4
Testing the Examples
- Introduction
- Turning ON LEDs
The iceK collection includes some examples for testing the blocks with different boards. These examples can also be used for testing the boards with icestudio, as the examples are very simple. Therefore, if it is the first time you are using icestudio with you board these examples could be a good starting point
Constant are very important! Specially the bit constant! With them we can create our first "hello world" circuit for turning on LEDs!
Examples on how to use constants for turning LEDs on and off
Examples for the Alhambra II Board
- File: 01-One-LED.ice
The LED 0 is turned on
- Result:
- File: 02-Two-LEDs.ice
The LEDs 0 and 1 are turned on
- Result:
Examples for the iceStick Board
- File: 01-One-LED.ice
- Result: The LED D1 (red) is turned on
- File: 02-Two-LEDs.ice
- Result: The LEDs D1 and D2 are turned on
- File: 01-One-LED.ice
- Result: The LED is turned on
The LEDs G and R of the iceBreaker board work with negative logic. The constant 0 is used for turning the LED on and the constant 1 por turning it off
- File: 01-One-LED.ice
- Result: The LED is turned on
- File: 02-Two-LEDs.ice
- Result: The LEDs G and R are turned on
- File: 01-One-LED.ice
- Result: The LED D1 (green) is turned on
- File: 02-Two-LEDs.ice
- Result: The LEDs D1 and D2 are turned on
- File: 01-One-LED.ice
- Result: The LED0 is turned on
- File: 02-Two-LEDs.ice
- Result: The LEDs 0 and 1 are turned on
- File: 01-One-LED.ice
- Result: The LED1 (blue) is turned on
- File: 02-Two-LEDs.ice
- Result: The LED1 (blue) and LED2 (green) are turned on
- File: 01-One-LED.ice
- Result: The LED0 (D9) is turned on
- File: 02-Two-LEDs.ice
- Result: The LED0 (D9) and LED1 (D8) are turned on
- File: 01-One-LED.ice
For turning the RGB LED the red component should be activated and the green and blue components deactivated. As the RGB led works with negative logic, a 0 bit should be placed on the Red output, and a 1 bit on the Green and Blue outputs
- Result: The RGB LED is turned red
- File: 02-Two-LEDs.ice
- Result: The RGB LED is turned yellow because the red and green components are activated
- File: 01-One-LED.ice
- Result:
- File: 02-Two-LEDs.ice
- Result:
- File: 01-One-LED.ice
- Result:
- File: 02-Two-LEDs.ice
- Result:
- File: 01-One-LED.ice
- Result:
- File: 02-Two-LEDs.ice
- Result: