tZipLedColor(1, kitronik_smart_lors(ZipLedColors.Green)) let zipLEDs: kitronik_smart_eenhouseZIPLEDs = null To view the changes there needs to be a ||kitronik_smart_greenhouse.show|| block after this block. To set the colour of an individual LED, use the ||kitronik_smart_t ZIP LED|| block. ZipLEDs.showColor(kitronik_smart_lors(ZipLedColors.Red)) To set the colour of all the ZIP LEDs (or a whole range) and then show the change, use the ||kitronik_smart_greenhouse.show color|| block. tColor(kitronik_smart_lors(ZipLedColors.Red)) To set the colour of all the ZIP LEDs (or a whole range), use the ||kitronik_smart_t color|| block. Let statusLEDs = zipLEDs.statusLedsRange() let zipLEDs = kitronik_smart_greenhouse.createGreenhouseZIPDisplay(8) The next two blocks create ranges for each of these, ||variables:statusLEDs|| and ||variables:zipStick||, so that they can be controlled separately. The default number is “8”, as this covers the onboard LEDs and the external ZIP Stick. The first block sets up the ZIP LEDs as a variable, enabling them to be controlled in the program. Note: Any block which does not have “show” in the name needs to be followed by a ||kitronik_smart_greenhouse.show|| block to make the changes visible. The ZIP LEDs section contains blocks for controlling the 3 onboard status LEDs and any others connected to the ZIP LED OUT port (such as the supplied ZIP Stick).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |