| Electronic Components Datasheet Search |
|
101020030 Datasheet(PDF) 21 Page - Seeed Technology Co.,Ltd. |
|
|
|||||||||||||||||||||||||||||
101020030 Datasheet(HTML) 21 Page - Seeed Technology Co.,Ltd. |
|
21 / 28 page ![]() 7/23/22, 8:50 PM Grove - Digital Light Sensor - Seeed Wiki https://wiki.seeedstudio.com/Grove-Digital_Light_Sensor/ 21/28 240 chScale = chScale << 4 # scale 1X to 16X 241 242 # scale the channel values 243 global schannel0, schannel1 244 schannel0 = (ch0 * chScale) >> CH_SCALE 245 schannel1 = (ch1 * chScale) >> CH_SCALE 246 247 ratio = 0 248 if schannel0 != 0: 249 ratio = (schannel1 << (RATIO_SCALE+1)) / schanne 250 ratio = (ratio + 1) >> 1 251 252 if packageType == 0: # T package 253 if ((ratio >= 0) and (ratio <= K1T)): 254 b=B1T; m=M1T; 255 elif (ratio <= K2T): 256 b=B2T; m=M2T; 257 elif (ratio <= K3T): 258 b=B3T; m=M3T; 259 elif (ratio <= K4T): 260 b=B4T; m=M4T; 261 elif (ratio <= K5T): 262 b=B5T; m=M5T; 263 elif (ratio <= K6T): 264 b=B6T; m=M6T; 265 elif (ratio <= K7T): 266 b=B7T; m=M7T; 267 elif (ratio > K8T): 268 b=B8T; m=M8T; 269 elif packageType == 1: # CS package 270 if ((ratio >= 0) and (ratio <= K1C)): 271 b=B1C; m=M1C; 272 elif (ratio <= K2C): 273 b=B2C; m=M2C; 274 elif (ratio <= K3C): 275 b=B3C; m=M3C; 276 elif (ratio <= K4C): 277 b=B4C; m=M4C; 278 elif (ratio <= K5C): 279 b=B5C; m=M5C; 280 elif (ratio <= K6C): |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |