
TS7-Pro 7-inch Touch Screen
The decimal number is equal to the sum of binary digits (dn) times their power of 2 (2^n):
decimal = d0×2^0 + d1×2^1 + d2×2^2 + ...
If binary is 1000, the corresponding decimal should be 1x2^3+0x2^2+0x2^1+0x2^0=8
So, what is the decimal number of 1010? 1*2^3+0*2^2+1*2^1+0*2^0=10.
Programming the Backdrop
When the game starts, a random integer between 1-16 appears in the middle of our screen as a decimal number that
needs to be converted by binary, and it is stored in the variable random.
Whether we receive a “right” result or a “wrong” result, we have to regenerate the random number and proceed to the
next round of the game.
178
Chapter 5. PROJECTS AND ACTIVITIES
Summary of Contents for TS7-Pro
Page 1: ...TS7 Pro 7 inch Touch Screen www sunfounder com Jun 30 2022 ...
Page 2: ......
Page 4: ...8 Copyright Notice 231 ii ...
Page 6: ...TS7 Pro 7 inch Touch Screen 2 CONTENTS ...
Page 10: ...TS7 Pro 7 inch Touch Screen 6 Chapter 1 HARDWARE INTRODUCTION ...
Page 12: ...TS7 Pro 7 inch Touch Screen 8 Chapter 2 ASSEMBLY INSTRUCTIONS ...
Page 32: ...TS7 Pro 7 inch Touch Screen 28 Chapter 3 QUICK USER GUIDE ...
Page 40: ...TS7 Pro 7 inch Touch Screen 36 Chapter 4 ADDING PERIPHERAL DEVICES ...
Page 56: ...TS7 Pro 7 inch Touch Screen 3 Insert the USB Bridge 52 Chapter 4 ADDING PERIPHERAL DEVICES ...
Page 59: ...TS7 Pro 7 inch Touch Screen 4 6 Using as Extension Screen for PC 55 ...
Page 60: ...TS7 Pro 7 inch Touch Screen 56 Chapter 4 ADDING PERIPHERAL DEVICES ...
Page 85: ...TS7 Pro 7 inch Touch Screen Select the device type ESP32 for example 5 4 Home Assistant 81 ...
Page 135: ...TS7 Pro 7 inch Touch Screen 5 7 Scratch Projects 131 ...
Page 151: ...TS7 Pro 7 inch Touch Screen 5 7 Scratch Projects 147 ...
Page 155: ...TS7 Pro 7 inch Touch Screen Set the balloon to a random position 5 7 Scratch Projects 151 ...
Page 161: ...TS7 Pro 7 inch Touch Screen 5 7 Scratch Projects 157 ...
Page 162: ...TS7 Pro 7 inch Touch Screen 158 Chapter 5 PROJECTS AND ACTIVITIES ...
Page 167: ...TS7 Pro 7 inch Touch Screen 5 7 Scratch Projects 163 ...
Page 180: ...TS7 Pro 7 inch Touch Screen 176 Chapter 5 PROJECTS AND ACTIVITIES ...
Page 186: ...TS7 Pro 7 inch Touch Screen Copy out the second Trees 182 Chapter 5 PROJECTS AND ACTIVITIES ...
Page 187: ...TS7 Pro 7 inch Touch Screen 5 7 Scratch Projects 183 ...
Page 193: ...TS7 Pro 7 inch Touch Screen 5 7 Scratch Projects 189 ...
Page 197: ...TS7 Pro 7 inch Touch Screen Then we add the Pen extension function 5 7 Scratch Projects 193 ...
Page 207: ...TS7 Pro 7 inch Touch Screen 5 7 Scratch Projects 203 ...
Page 209: ...TS7 Pro 7 inch Touch Screen 5 7 Scratch Projects 205 ...
Page 234: ...TS7 Pro 7 inch Touch Screen 230 Chapter 7 FAQ ...