    LED screen.

!!!  USB_PU


******  ******

===  I/O ===
- PA11/12 - USB
- PA9(Tx), PA10(Rx) - USART1 -   /  RMC- GPS (. - bluetooth).
- PA2(Tx), PA3(Rx) - USART2 -  GPS-.
- PB10(Tx), PB11(Rx) - USART3 -     .

===   ===
- PA1  - PPS   GPS;        .
- PB0  - TRIG0 - (  ).
- PB1  - TRIG1 -   12.
- PB3  - TRIG2 - (  ).
- PA15 -  USB.
- PA8  - (  ) - bluetooth "state"
- PB8, PB9 -   (LED1, LED0 ).
- PC13 - .

===  ===
- LED0 -    PPS  ,  PPS  -  (  0.25   ).
- LED1 -  GPS:  ,    ;  ,    
( "V"    RMC-);     ( "A"   ).
  ,          -   1.  GPS- 
PPS     -     ""      pps.    ,
   LED0.


******  ******
 TRIG0/TRIG2  , ,  ,  .       !
 TRIG1   12- ,    10.     ,    
  TRIG2,     12   .

     TRIG0..TRIG2,      (,    ..). 
          . 

    ,       -     -  .


******  ******
  ""  PL2303.

  PA9/PA10    USART<>USB       Rx/Tx "" (  
   ): PA9(Tx)   Rx, PA10(Rx) -  Tx.  USART  RMC- GPS- ( 
 ,    ,   ,     ).

  PPS   ""   .


******  ******
   USB.      (      ), 
         .
  ,    ,    .  :

adcmax - max ADC value treshold for trigger
adcmin - min -//- (triggered when ADval>min & <max
adcval - get ADC value
buzzerS - turn buzzer ON/OFF
distmin - min distance threshold (cm)
distmax - max distance threshold (cm)
gpsrestart - send Full Cold Restart to GPS
gpsstring - current GPS data string
ledsS - turn leds on/off (1/0)
mcutemp - MCU temperature
pullupNS - triggers pullups state (N - trigger No, S - 0/1 for off/on)
showconf - show current configuration
time - print time
store - store new configuration in flash
triglevelNS - working trigger N level S
trigpauseNP - pause (P, ms) after trigger N shots
trigtimeN - show last trigger N time
vdd - Vdd value

  : 
- gpsrestart -  GPS (    -     ),  "" .  
	   .
- gpsstring -     GPS.   ,    RMC 
	$GPRMC,124001.000,A,4340.9369,N,04127.5034,E,0.00,33.26,150819,,,A*5C
- pullupNS -         0..3 (  , ..  ,  
	  ,    ).
- showconf -   , :
	CONFIG:
	DISTMIN=50
	DISTMAX=1000
	ADCMIN=1024
	ADCMAX=3072
	PULLUPS=255
	TRIGLVL=0
	TRIGPAUSE={400, 400, 400, 300, 300}
	ENDCONFIG

	 : DISTMIN/DISTMAX   , ADCMIN/ADCMAX   , PULLUPS -  
		( ,    -   ; 0 -  , 1 - ).
	TRIGLVL -   ,  ,    (   ,    PULLUPS),
		 ,        1->0,  ,  
		 0->1.
	TRIGPAUSE -    :        , 
		,     .
- time -    ,       , ,
	55725.961 (15:28:45)
	   UTC!!!   -         UTC,  
	  .
- store -     - .
- triglevelNS -   .  N -   (0..2), S -  (0/1). ,   0 
	  1->0,   
	triglevel00
	   2    0->1,
	triglevel21
- trigpauseNP -     N,   .   0,       
	   .       ""     ""
	 .  50   .
- trigtimeN -      N, ,   trigtime0,   :
	TRIG0=45212.930 (12:33:32)
	      ,  :
	TRIG4=0.000 (00:00:00)

         reset  /   ,
..      .

