Electronic Components Datasheet Search
  English  ▼

X  

101020030 Datasheet(PDF) 21 Page - Seeed Technology Co.,Ltd.

Part # 101020030
Description  Grove - Digital Light Sensor
PDF  28 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  SEEEDSTUDIO [Seeed Technology Co.,Ltd.]
Direct Link  https://www.seeedstudio.com/
Logo SEEEDSTUDIO - Seeed Technology Co.,Ltd.

101020030 Datasheet(HTML) 21 Page - Seeed Technology Co.,Ltd.

Back Button 101020030 Datasheet HTML 17Page - Seeed Technology Co.,Ltd. 101020030 Datasheet HTML 18Page - Seeed Technology Co.,Ltd. 101020030 Datasheet HTML 19Page - Seeed Technology Co.,Ltd. 101020030 Datasheet HTML 20Page - Seeed Technology Co.,Ltd. 101020030 Datasheet HTML 21Page - Seeed Technology Co.,Ltd. 101020030 Datasheet HTML 22Page - Seeed Technology Co.,Ltd. 101020030 Datasheet HTML 23Page - Seeed Technology Co.,Ltd. 101020030 Datasheet HTML 24Page - Seeed Technology Co.,Ltd. 101020030 Datasheet HTML 25Page - Seeed Technology Co.,Ltd. Next Button
Zoom Inzoom in Zoom Outzoom out
 21 / 28 page
background image
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):



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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