Download presentation
Presentation is loading. Please wait.
Published byFerdinand Albert Rose Modified over 9 years ago
1
i/o inputs and outputs Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including URL and other Internet Web site references, may change without notice. You bear the risk of using it. This document does not provide you with any legal rights to any intellectual property in any Microsoft product. You may copy and use this document for your internal, reference purposes. © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and Windows Live are trademarks of the Microsoft group of companies. All other trademarks are property of their respective owners.
2
wall o touchdevelop uses a wall to display items o latest item on top, infinite list below ☀ why? simplified / restricted user interface tradeoff between flexibility and usability
3
output o any item can be “posted to the wall” song→post to wall ☁ http://touchdevelop.com/velkhttp://touchdevelop.com/velk o specialized display based on item songs get a play button, image are displayed, GPS locations show up in a map
4
input o user may be asked for text, Boolean, numbers var name := all→ask string(“Enter your name”) var age := all→ask number(“Enter your age”) var ok := all→ask boolean(“Are you ok?”) ☁ http://touchdevelop.com/vxezhttp://touchdevelop.com/vxez o user may pick a time, date var date := all→pick date(“Enter your birthdate”) ☁ http://touchdevelop.com/ryorhttp://touchdevelop.com/ryor
5
appearance o set background color o set background image o set foreground color (text color) ☁ http://touchdevelop.com/eifqhttp://touchdevelop.com/eifq o display search icon ☁ http://touchdevelop.com/bjfthttp://touchdevelop.com/bjft
6
textbox o a textbox allows to update text on the wall o settings font size, foreground color (text color), background color, border color, icon ☁ http://touchdevelop.com/wawrhttp://touchdevelop.com/wawr
7
exercises ►display a random picture select a random picture and post it to the wall ►a temperature converter asks the user for a degree in Celsius and converts it to Fahrenheit
8
exercises (extra) ►accelerometer viewer displays the live acceleration value in a textbox in an infinite while loop, update the text ►accelerometer color viewer map the acceleration to a color set the wall background to that color
9
homework ►a guessing game the user needs to guess something (entered as text/number/time/date) when the guess is correct, the screen goes green and a success message is displayed; otherwise the screen goes blue ☀ with a failure message (optional) use gradient between green/blue to display progress to the user ☀ 10% of Caucasian males are color blind, i.e. green and red look brown.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.