Changeset 1839
- Timestamp:
- 05/06/12 22:22:00 (13 months ago)
- File:
-
- 1 edited
-
trunk/platform/d10/lib.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/platform/d10/lib.c
r977 r1839 40 40 } 41 41 42 // TODO 42 /* 43 D10 has 3 led values 44 0/0 - Upper indicator Green 45 1/1 - Upper indicator Orange 46 2/9 - AF 47 10-11 appears to also drive AF, but using the same codepath as non AF leds (no assert on invalid) 48 note, LEDDrive returns 3 on invalid params otherwise 0 49 second param 0 = solid on, 1 = off, 2-7 blink patterns 50 2: continuous ~1 blink/sec 51 3: continuous fast blink 52 4: continuous medium blink (2/sec ?) 53 5: burst of 3? fast blinks 54 6: continuous slow blinks 55 7: if led was off 1 very fast blink. depends on previous state 56 8: no obvious effect, but returns 0 for AF 57 >8: If used with AF ASSERT!! LEDDrv.c Line 215, otherwise returns 3 58 */ 43 59 void camera_set_led(int led, int state, int bright) { 60 static char led_table[]={0,1,9}; 61 _LEDDrive(led_table[led%sizeof(led_table)], state<=1 ? !state : state); 44 62 } 45 46
Note: See TracChangeset
for help on using the changeset viewer.