30  2008
	  commandline   llcontrol.exe (      ),      .    :
exampleX.bat	     .
hiddata.c		    (     HID USB)
hiddata.h		       hiddata.c
hidsdi.h		   API  
llcontrol.c		  
llcontrol.exe	  
Makefile		   make
readme.txt		,    

	       gcc   libusb.   ,      ,  .  - http://microsin.ru/content/view/613/44/.   ,  make (     commandline).

[  llcontrol.exe]
	     hid-data,    OBJECTIVE DEVELOPMENT Software GmbH, http://www.obdev.at/,      avrusb.

     llcontrol.exe         USB .          llcontrol.exe  ,   :
C:\TEMP>llcontrol.exe
Usage:
  llcontrol.exe default
  llcontrol.exe param <listofparameters>
  llcontrol.exe verify
  llcontrol.exe view
  llcontrol.exe read
  llcontrol.exe write <listofbytes>
Options:
default     reset all params to default values
param <...> set specified params. Params are:
  -LON:nnnn   threshold ON  light. Value 1..1023.
  -LOFF:nnnn  threshold OFF light. Value 1..1023.
  -IL:nn      number consecutive ADC readungs. Value 1..255.
  -MD:n       enable (n==1) or disable (n==0) motion detection. Value 0 or 1.
  -RST:n      enable (n==1) or disable (n==0) soft restart. Value 0 or 1.
  -LT:nn      time light keeping in seconds. Value 1..255.
  -RS:nn      step delay to light brightness rising.  Value 1..255.
  -FS:nn      step delay to light brightness falling. Value 1..255.
  -GA:n       ADC gain select. Value 0 (x1), 1 (x10) or 2 (x200).
verify      check all EEPROM params.
view        view  all EEPROM params.
read        read all EEPROM data and dump to console.
write <...> write bytes to EEPROM from start address 0.
	
	    default, param, verify  view (  read  write     EEPROM   ,     ).      llcontrol.exe param    (     ).  -   ,     EEPROM  .     (  n   ):
-LON:nnnn	   .   1..1023.    100.
-LOFF:nnnn	   .   1..1023.    102.
-IL:nn		   ADC.   1..255.    10.
-MD:n		   .   0  1.    1 (  ).
-RST:n		 ""      EEPROM.   0  1.    1 ( ). 
-LT:nn		    .   1..255.    10.
-RS:nn		       (255 ).  1..255.    100.
-FS:nn		       (255 ).  1..255.    100.
-GA:n		   ADC.   0 (x1), 1 (x10)  2 (x200).    1 ( x10).
		
	    llcontrol.exe verify,    - llcontrol.exe view.         ,    example1.bat, example2.bat, .. example8.bat.

--------------------------------------------------------------------
http://microsin.ru/