<root>
<document scada='0' schema='103' license='1,66718025,1KVTN2' title='' description='' fcversion='655618' target='ESP.ESP32.ESP32_WROOM_32' >
	<config data='' clkspd='240000000' simspd='0' usewdt='0' constif='0' commport='7' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='1' head='#include &lt;esp_sleep.h&gt;
#include &quot;esp_task_wdt.h&quot;
#include &quot;driver/i2c.h&quot;
#include &quot;esp_system.h&quot;

#define LSM6DS3_I2C_ADDR 0x6A
#define I2C_MASTER_NUM 0
#define I2C_MASTER_TIMEOUT_MS 10' body='' />
	<debug />
	<traces />
	<ghost >
		<FK2 >
			<data name='FK2D0' port='4294967295' pin='4294967295' />
			<data name='FK2D1' port='4294967295' pin='4294967295' />
			<data name='FK2D2' port='4294967295' pin='4294967295' />
			<data name='FK2D3' port='4294967295' pin='4294967295' />
			<data name='FK2D4' port='4294967295' pin='4294967295' />
			<data name='FK2D5' port='4294967295' pin='4294967295' />
			<data name='FK2D6' port='4294967295' pin='4294967295' />
			<data name='FK2D7' port='4294967295' pin='4294967295' />
			<data name='FK2D8' port='4294967295' pin='4294967295' />
			<data name='FK2D9' port='4294967295' pin='4294967295' />
			<data name='FK2D10' port='4294967295' pin='4294967295' />
			<data name='FK2D11' port='4294967295' pin='4294967295' />
			<data name='FK2D12' port='4294967295' pin='4294967295' />
			<data name='FK2D13' port='4294967295' pin='4294967295' />
			<data name='FK2D14' port='4294967295' pin='4294967295' />
			<data name='FK2D15' port='4294967295' pin='4294967295' />
			<data name='FK2A0' port='4294967295' pin='4294967295' />
			<data name='FK2A1' port='4294967295' pin='4294967295' />
			<data name='FK2A2' port='4294967295' pin='4294967295' />
			<data name='FK2A3' port='4294967295' pin='4294967295' />
			<data name='FK2A4' port='4294967295' pin='4294967295' />
			<data name='FK2A5' port='4294967295' pin='4294967295' />
		</FK2>
		<ICD >
			<data name='AnalogPrescaleValue' value='19' />
			<data name='DigitalSampleRate' value='100000' />
			<data name='BreakpointCount' value='8' />
			<data name='CallStackDepthCount' value='8' />
			<data name='ClockPort' value='1' />
			<data name='ClockPin' value='6' />
			<data name='DataPort' value='1' />
			<data name='DataPin' value='7' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='1' />
			<data name='CalculatedCommsDelay' value='1' />
			<data name='AnalogEB2PrescaleValue' value='2' />
			<data name='DigitalEB2SampleRate' value='100000' />
		</ICD>
		<pins >
			<digital A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
			<analog A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
		</pins>
	</ghost>
	<components >
		<settings autoimg='0' center='1' unitscale='0' fixedscale='0' fixedx='25' fixedy='25' fixedz='25' headcode='0' />
		<definition guid='579a438c-91f1-4a69-9667-a5dc26acb16b' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' category2='' category3='' bIs2dOnly='0' bIs3dOnly='0' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='1' scadaCompatible='0' embeddedCompatible='1' showmacros='1' iconpath='' />
		<component class_type='root' codename='ComponentRoot' panelId='-1' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='0' poslock='0' comp2dType='0' >
			<resources />
			<properties >
				<property name='Sensor Addr' target='sensor_addr' typeid='21' hidden='0' locked='0' hexview='1' info='' />
			</properties>
			<values >
				<value target='sensor_addr' data='107' />
			</values>
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='lead_strg' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='100' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='count_samples' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='send_buffer_size' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='buf_count' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='stat_rec' type='u8' description='status record' isconst='1' isHidden='0' isinit='1' usrinit='3' setinit='3' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='z_multi' type='s32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pin_state' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='send_enable' type='u8' description='send date to USB or Bt if &gt;0' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ret_strg_send' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='count_down' type='s32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='count_buffer' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='y_multi' type='s32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='status' type='u8' description='0= stat_sleep; 1= stat_wait, 2=stat_rec' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='lsm2_ok' type='u8' description='if connected' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='off' type='u8' description='' isconst='1' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='count_accu' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='BT_USB' type='u8' description='0= send to BT  or 1= send to USB' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ret_byte_B' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='AG_XYZ_select' type='u8' description='0=A,1=B' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='data_irq' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='10' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='filename' type='T8' description='hold the filename' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='30' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='rec_sample' type='u8' description='sample if its time' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='count_down_set' type='u32' description='10mSec delay used then  10Sec =1000  /  1 minute=6000/ 5Min 30000' isconst='0' isHidden='0' isinit='1' usrinit='100000' setinit='100000' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='samplerate' type='u16' description='samplerate 15,30,60,120,240,480,960,1920,3840,7680 in Hz' isconst='0' isHidden='0' isinit='1' usrinit='15' setinit='15' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ret_byte_A' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='apend_strg_send' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='200' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='apend_strg' type='T8' description='to save on disk' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='200' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Max_channel' type='u8' description='1 for one channel, 2 for two channel' isconst='0' isHidden='0' isinit='1' usrinit='2' setinit='2' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='time_for_accu_test' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ret_byte' type='u8' description='general ret byte, multi used' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='key3' type='u8' description='key 3 pressed value' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='led_on' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='send_endline' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='key2' type='u8' description='key 2 pressed value' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='filename_prefix' type='T8' description='for file prefix' isconst='0' isHidden='0' isinit='1' usrinit='&quot;imu1_&quot;' setinit='&quot;imu1_&quot;' >
						<array size='30' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='accu_strg' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='key1' type='u8' description='key 1 pressed value' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='keyset' type='u8' description='result for key' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='stat_wait' type='u8' description='status  wait' isconst='1' isHidden='0' isinit='1' usrinit='2' setinit='2' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Line_to_send' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='x_multi' type='s32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='write_now' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='AG_XYZ' type='s16' description='2x IMU with A xyz G xyz  M xyz  T =&gt; 20 integer' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' >
						<array size='30' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='testpin' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='count_array' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='count_copy' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='count_display_main' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='count_data' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='AG_XYZ_B' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' >
						<array size='18500' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='data_byte_aaray' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='count_blue_led' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='AG_XYZ_A' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' >
						<array size='18500' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='temperatur_float' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ret_strg_component' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot; &quot;' setinit='&quot; &quot;' >
						<array size='30' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='send_less' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='write_enable' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SRSN16_MSB1' type='s16' description='\r\n in 16 Bit is dec3338   hex  0xD0A   b: 00001101 0000 1010' isconst='1' isHidden='0' isinit='1' usrinit='3338' setinit='3338' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='sleep_deep' type='u8' description='if deep_sleep used =1 ligth_sleep=0' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SRSN16_MSB0' type='s16' description='\r\n in 16 Bit is dec3338   hex  0xD0A   b: 00001101 0000 1010' isconst='1' isHidden='0' isinit='1' usrinit='2573' setinit='2573' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='multi_mode' type='u8' description='1= 1x sampel,4= 4x sampel,' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='data_send_buffer' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' >
						<array size='200' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='rd_adress' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='2' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='count_display_update' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pin' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='get_cmd' type='u8' description='get the command from USB or BT' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='rec_on' type='u8' description='rec is running' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='count_loop_strg' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='BT_sen_strg' type='T8' description='set for sending string to BT' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='30' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='last_key' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='stat_no_change' type='u8' description='no key accept' isconst='1' isHidden='0' isinit='1' usrinit='4' setinit='4' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='file_nr' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='lsm1_ok' type='u8' description='if connected' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='on' type='u8' description='' isconst='1' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ret_float' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Sample_buffer_size' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='filename_extension' type='T8' description='for a standard extension &quot;.csv&quot; or &quot;.wav&quot;' isconst='0' isHidden='0' isinit='1' usrinit='&quot;.wav&quot;' setinit='&quot;.wav&quot;' >
						<array size='10' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ret_strg_BT_USB' type='T8' description='general ret strg, multi used' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='40' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='count_key_time' type='u32' description='not used' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='accu_byte' type='u8' description='0-100' isconst='0' isHidden='0' isinit='1' usrinit='100' setinit='100' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Buffer_A' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='send_ready' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='data_G' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' >
						<array size='200' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='count_AG_XYZ' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='stat_sleep' type='u8' description='status sleep' isconst='1' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='write_buffer_size' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='file_close' description='close the file' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='parameter not needed' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='100' type='1' />
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='File_ESP32_SDMode1' macro='CloseFile' />
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='100' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='IMU_test_lsm6' description='test if IMU are connect' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='Return' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='dat_buf' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<local name='reg_addr' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<local name='dat' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='lsm1_ok = 1' />
							<exp exp='' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='lsm2_ok = 1' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
							<argument exp='sensor_addr' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
							<argument exp='0x6B' />
						</command>
						<command class_type='call' title='User Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='SetupSensor' />
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='100' type='1' />
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
							<argument exp='0x6A' />
						</command>
						<command class_type='call' title='User Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='SetupSensor' />
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
						<command class_type='comment' title='' comment='parameter not needed' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='calculation' title='Calculation' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.reg_addr[0] = 0x0F' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
							<argument exp='0x6B' />
						</command>
						<command class_type='call' title='Read Register' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Write' >
							<argument exp='.reg_addr' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Read WhoAmIRegister' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Read' >
							<argument exp='.dat_buf' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
						<command class_type='calculation' title='Calculation' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.Return = .dat_buf[0]' />
						</command>
						<command class_type='decision' title='Device found?' disable='1' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='(.Return = 0x71) OR (.Return = 0x69) OR (.Return = 0x70) OR (.Return = 0x6B)' swap='0' >
							<flowline >
								<command class_type='calculation' title='test who i am missing' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='ret_byte = 1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='test who i am missing' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='ret_byte = 0' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='test if IMU Sensor1 is connected' disable='1' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='ret_byte = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='lsm1_ok = 1' />
									<exp exp='' />
								</command>
								<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='SetLEDColour' >
									<argument exp='0' />
									<argument exp='0' />
									<argument exp='0' />
									<argument exp='50' />
								</command>
								<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='Refresh' />
								<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='500' type='1' />
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='lsm1_ok = 0' />
									<exp exp='' />
								</command>
								<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='SetLEDColour' >
									<argument exp='0' />
									<argument exp='50' />
									<argument exp='0' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='Refresh' />
								<command class_type='loop' title='Loop' disable='1' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='2' exp='7' >
									<flowline >
										<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='SetLEDColour' >
											<argument exp='0' />
											<argument exp='50' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='Refresh' />
										<command class_type='delay' title='Delay' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='100' type='1' />
										<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='SetLEDColour' >
											<argument exp='0' />
											<argument exp='0' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='Refresh' />
										<command class_type='delay' title='Delay' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='100' type='1' />
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
							<return exp='ret_byte' />
							<argument exp='0x6A' />
						</command>
						<command class_type='calculation' title='Calculation' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.reg_addr[0] = 0x0F' />
						</command>
						<command class_type='call' title='Read Register' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Write' >
							<argument exp='.reg_addr' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Read WhoAmIRegister' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Read' >
							<argument exp='.dat_buf' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
						<command class_type='calculation' title='Calculation' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.Return = .dat_buf[0]' />
						</command>
						<command class_type='decision' title='Device found?' disable='1' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='(.Return = 0x71) OR (.Return = 0x69) OR (.Return = 0x70) OR (.Return = 0x6A)' swap='0' >
							<flowline >
								<command class_type='calculation' title='test who i am missing' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='ret_byte = 1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='test who i am missing' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='ret_byte = 0' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='test if IMU Sensor2  is connected' disable='1' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='ret_byte = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='lsm2_ok = 1' />
									<exp exp='' />
								</command>
								<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='SetLEDColour' >
									<argument exp='0' />
									<argument exp='0' />
									<argument exp='0' />
									<argument exp='50' />
								</command>
								<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='Refresh' />
								<command class_type='delay' title='Delay' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='500' type='1' />
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='lsm2_ok = 0' />
									<exp exp='' />
								</command>
								<command class_type='loop' title='Loop' disable='1' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='2' exp='15' >
									<flowline >
										<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='SetLEDColour' >
											<argument exp='0' />
											<argument exp='50' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='Refresh' />
										<command class_type='delay' title='Delay' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='100' type='1' />
										<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='SetLEDColour' >
											<argument exp='0' />
											<argument exp='0' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='Refresh' />
										<command class_type='delay' title='Delay' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='100' type='1' />
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='USB_interrupt' description='set from USB' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='parameter not needed' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='get_cmd = 2' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Info' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='parameter not needed' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='comment' title='' comment='C:\Users\stefan.erni\Desktop\esp-idf-2\mtxesp32s_sdkconfig' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='comment' title='' comment='C:\Users\Kfs-Forschung\Desktop\esp-idf-2\mtxesp32s_sdkconfig' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='comment' title='' comment='C:\C#_sourcecode\_#FC10\components_se' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='comment' title='' comment='https://stackoverflow.com/questions/51750377/how-to-disable-interrupt-watchdog-in-esp32-or-increase-isr-time-limit' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='comment' title='' comment='C:\ProgramData\MatrixTSL\FlowcodeV10\Components' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
					</flowline>
				</macro>
				<macro >
					<flowline name='set_array' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='parameter not needed' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='2' forvar='count_array' exp='24' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='AG_XYZ[count_array] = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='AG_XYZ[23] = SRSN16_MSB0' />
							<exp exp='' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Rec_esp32' description='Recording macro' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='wav_header' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='512' />
						</local>
						<local name='number_of_channel_gen' type='u16' description='16 oder 12' isconst='0' isHidden='0' isinit='1' usrinit='3' setinit='3' />
						<local name='FS_gen' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='7680' setinit='7680' />
						<local name='number_of_bit_gen' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='16' setinit='16' />
						<local name='byte_per_second' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='fileSize_byte' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='header_offset' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='size_iname' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='size_list' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='comment' title='' comment='.number_of channael = localvariable REC Macro' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='buf_count = 0' />
							<exp exp='' />
						</command>
						<command class_type='loop' title='Just file the buffer with &quot;space&quot;' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='2' forvar='buf_count' exp='512' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='.wav_header[buf_count] = 0x00' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.FS_gen = samplerate' />
							<exp exp='.number_of_channel_gen = 6 * Max_channel' />
						</command>
						<command class_type='calculation' title='Calculation Wave haeder' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='//“RIFF”	Marks the file as a riff file. Characters are each 1 byte long.' />
							<exp exp='.wav_header[0] = 0x52 //R' />
							<exp exp='.wav_header[1] = 0x49 //I' />
							<exp exp='.wav_header[2] = 0x46 //F' />
							<exp exp='.wav_header[3] = 0x46 //F' />
							<exp exp='//' />
							<exp exp='//File size (integer)	Size of the overall file - 8 bytes, in bytes (32-bit integer).' />
							<exp exp='//Typically, you’d fill this in after creation' />
							<exp exp='//fileSize_byte-8!!!!' />
							<exp exp='.fileSize_byte = .fileSize_byte - 8' />
							<exp exp='.wav_header[4] = (.fileSize_byte) &amp; 0x000000FF //Update file size' />
							<exp exp='.wav_header[5] = (.fileSize_byte &gt;&gt; 8) &amp; 0x000000FF' />
							<exp exp='.wav_header[6] = (.fileSize_byte &gt;&gt; 16) &amp; 0x000000FF' />
							<exp exp='.wav_header[7] = (.fileSize_byte &gt;&gt; 24) &amp; 0x000000FF' />
							<exp exp='//' />
							<exp exp='//“WAVE”	File Type Header. For our purposes, it always equals “WAVE”.' />
							<exp exp='.header_offset = 8' />
							<exp exp='.wav_header[.header_offset + 0] = 0x57 //W' />
							<exp exp='.wav_header[.header_offset + 1] = 0x41 //A' />
							<exp exp='.wav_header[.header_offset + 2] = 0x56 //V' />
							<exp exp='.wav_header[.header_offset + 3] = 0x45 //E' />
							<exp exp='//' />
							<exp exp='//“fmt ” Format chunk marker. Includes trailing null it always equals “fmt ”' />
							<exp exp='.header_offset = 12' />
							<exp exp='.wav_header[.header_offset + 0] = 0x66 //f' />
							<exp exp='.wav_header[.header_offset + 1] = 0x6d //m' />
							<exp exp='.wav_header[.header_offset + 2] = 0x74 //t' />
							<exp exp='.wav_header[.header_offset + 3] = 0x20 //(leer Zeichen)' />
							<exp exp='//' />
							<exp exp='//' />
							<exp exp='//16 Length of format data as listed above' />
							<exp exp='.header_offset = 16' />
							<exp exp='.wav_header[.header_offset + 0] = 0x10 //length fmt (16Byte)' />
							<exp exp='.wav_header[.header_offset + 1] = 0x00' />
							<exp exp='.wav_header[.header_offset + 2] = 0x00' />
							<exp exp='.wav_header[.header_offset + 3] = 0x00' />
							<exp exp='//' />
							<exp exp='//Type of format (1 is PCM) - 2 byte integer  (1)' />
							<exp exp='.header_offset = 20' />
							<exp exp='.wav_header[.header_offset] = 0x01 //Format(PCM)' />
							<exp exp='.wav_header[.header_offset + 1] = 0x00 //Format(.)' />
							<exp exp='' />
							<exp exp='//Number of Channels - 2 byte integer (4)' />
							<exp exp='.header_offset = 22' />
							<exp exp='//.number_of_channel_gen' />
							<exp exp='.wav_header[.header_offset + 0] = (.number_of_channel_gen) &amp; 0x000000FF' />
							<exp exp='.wav_header[.header_offset + 1] = (.number_of_channel_gen &gt;&gt; 8) &amp; 0x000000FF' />
							<exp exp='//' />
							<exp exp='//2000 Sample Rate - 32 byte integer.' />
							<exp exp='.header_offset = 24' />
							<exp exp='//.fs' />
							<exp exp='.wav_header[.header_offset + 0] = (.FS_gen) &amp; 0x000000FF' />
							<exp exp='.wav_header[.header_offset + 1] = (.FS_gen &gt;&gt; 8) &amp; 0x000000FF' />
							<exp exp='.wav_header[.header_offset + 2] = (.FS_gen &gt;&gt; 16) &amp; 0x000000FF' />
							<exp exp='.wav_header[.header_offset + 3] = (.FS_gen &gt;&gt; 24) &amp; 0x000000FF' />
							<exp exp='//' />
							<exp exp='//xxxx  (Sample Rate * BitsPerSample * Channels) / 8.' />
							<exp exp='//byterate == SampleRate * NumChannels * BitsPerSample/8' />
							<exp exp='//for 2000spl 4channel 16bit / 8' />
							<exp exp='.header_offset = 28' />
							<exp exp='.byte_per_second = .FS_gen * .number_of_channel_gen * .number_of_bit_gen / 8 //new 30.4.21' />
							<exp exp='.wav_header[.header_offset + 0] = (.byte_per_second) &amp; 0x000000FF' />
							<exp exp='.wav_header[.header_offset + 1] = (.byte_per_second &gt;&gt; 8) &amp; 0x000000FF' />
							<exp exp='.wav_header[.header_offset + 2] = (.byte_per_second &gt;&gt; 16) &amp; 0x000000FF' />
							<exp exp='.wav_header[.header_offset + 3] = (.byte_per_second &gt;&gt; 24) &amp; 0x000000FF' />
							<exp exp='' />
							<exp exp='//' />
							<exp exp='//(BitsPerSample * Channels) /' />
							<exp exp='.header_offset = 32' />
							<exp exp='.wav_header[.header_offset] = 0x04 //' />
							<exp exp='.wav_header[.header_offset + 1] = 0x00 //' />
							<exp exp='' />
							<exp exp='//16	Bits per sample' />
							<exp exp='//.bits_per_sample' />
							<exp exp='.header_offset = 34' />
							<exp exp='.wav_header[.header_offset + 0] = (.number_of_bit_gen) &amp; 0x000000FF //new 30.4.21' />
							<exp exp='.wav_header[.header_offset + 1] = (.number_of_bit_gen &gt;&gt; 8) &amp; 0x000000FF //new 30.4.21' />
							<exp exp='//' />
							<exp exp='//LIST The ASCII character string &quot;LIST&quot;' />
							<exp exp='.header_offset = 36' />
							<exp exp='.wav_header[.header_offset + 0] = 0x4C //L' />
							<exp exp='.wav_header[.header_offset + 1] = 0x49 //I' />
							<exp exp='.wav_header[.header_offset + 2] = 0x53 //S' />
							<exp exp='.wav_header[.header_offset + 3] = 0x54 //T' />
							<exp exp='//' />
							<exp exp='.size_list = 16 + 4 //The size of the sub-chunk less 8 (less the &quot;chunk ID&quot; and the &quot;size&quot;)//16 is working' />
							<exp exp='.header_offset = 40' />
							<exp exp='.wav_header[.header_offset + 0] = (.size_list) &amp; 0x000000FF' />
							<exp exp='.wav_header[.header_offset + 1] = (.size_list &gt;&gt; 8) &amp; 0x000000FF' />
							<exp exp='.wav_header[.header_offset + 2] = (.size_list &gt;&gt; 16) &amp; 0x000000FF' />
							<exp exp='.wav_header[.header_offset + 3] = (.size_list &gt;&gt; 24) &amp; 0x000000FF' />
							<exp exp='//' />
							<exp exp='//A common one is &quot;INFO&quot;' />
							<exp exp='.header_offset = 44 //                      from her to to count' />
							<exp exp='.wav_header[.header_offset + 0] = 0x49 //I' />
							<exp exp='.wav_header[.header_offset + 1] = 0x4E //N' />
							<exp exp='.wav_header[.header_offset + 2] = 0x46 //F' />
							<exp exp='.wav_header[.header_offset + 3] = 0x4F //O' />
							<exp exp='//INAM' />
							<exp exp='.header_offset = 48 // direct after &quot;info&quot;' />
							<exp exp='.wav_header[.header_offset + 0] = 0x49 //I' />
							<exp exp='.wav_header[.header_offset + 1] = 0x4E //N' />
							<exp exp='.wav_header[.header_offset + 2] = 0x41 //A' />
							<exp exp='.wav_header[.header_offset + 3] = 0x4D //M' />
							<exp exp='//' />
							<exp exp='.size_iname = 4' />
							<exp exp='.header_offset = 52' />
							<exp exp='.wav_header[.header_offset + 0] = .size_iname // 0x0c  12 sollte gehen' />
							<exp exp='//' />
							<exp exp='.header_offset = 56' />
							<exp exp='.wav_header[.header_offset + 0] = 0x68 //h' />
							<exp exp='.wav_header[.header_offset + 1] = 0x6F //o' />
							<exp exp='.wav_header[.header_offset + 2] = 0x69 //i' />
							<exp exp='//.wav_header[.header_offset + 3] = 0x69 //i' />
							<exp exp='//.wav_header[.header_offset + 4] = 0x69 //i' />
							<exp exp='//.wav_header[.header_offset + 5] = 0x69 //i' />
							<exp exp='//.wav_header[.header_offset + 6] = 0x69 //i' />
							<exp exp='//.wav_header[.header_offset + 7] = 0x69 //i' />
							<exp exp='//.wav_header[.header_offset + 8] = 0x69 //i' />
							<exp exp='//.wav_header[.header_offset + 9] = 0x69 //i' />
							<exp exp='//.wav_header[.header_offset + 10] = 0x69 //i' />
							<exp exp='//.wav_header[.header_offset + 11] = 0x69 //i' />
							<exp exp='//.wav_header[.header_offset + 12] = 0x69 //i' />
							<exp exp='//' />
							<exp exp='//“data” chunk header. Marks the beginning of the data section fix&quot;data&quot;' />
							<exp exp='.header_offset = 44 + .size_list //to here 16' />
							<exp exp='.wav_header[.header_offset + 0] = 0x64 //d' />
							<exp exp='.wav_header[.header_offset + 1] = 0x61 //a' />
							<exp exp='.wav_header[.header_offset + 2] = 0x74 //t' />
							<exp exp='.wav_header[.header_offset + 3] = 0x61 //a' />
							<exp exp='//' />
							<exp exp='//File size (data)	Size of the data section.' />
							<exp exp='.header_offset = 48 + .size_list //' />
							<exp exp='.fileSize_byte = .fileSize_byte - (.header_offset)' />
							<exp exp='.wav_header[.header_offset + 0] = (.fileSize_byte) &amp; 0x000000FF //data size' />
							<exp exp='.wav_header[.header_offset + 1] = (.fileSize_byte &gt;&gt; 8) &amp; 0x000000FF' />
							<exp exp='.wav_header[.header_offset + 2] = (.fileSize_byte &gt;&gt; 16) &amp; 0x000000FF' />
							<exp exp='.wav_header[.header_offset + 3] = (.fileSize_byte &gt;&gt; 24) &amp; 0x000000FF' />
							<exp exp='' />
							<exp exp='' />
							<exp exp='' />
						</command>
						<command class_type='comment' title='' comment='parameter not needed' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='SetLEDColour' >
							<argument exp='0' />
							<argument exp='150' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='Refresh' />
						<command class_type='comment' title='' comment='it&apos;s send a message to USB !' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='File_ESP32_SDMode1' macro='Uninitialise' />
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='10' type='1' />
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='File_ESP32_SDMode1' macro='Initialise' >
							<return exp='ret_byte' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='100' type='1' />
						<command class_type='comment' title='' comment='New 2024 08 30 test always b4 recording' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='call' title='Check recordings on sd-card' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='file_last_file_found' >
							<return exp='file_nr' />
							<argument exp='filename_prefix' />
							<argument exp='filename_extension' />
						</command>
						<command class_type='call' title='file create with the name it need file_lastfile_found b4' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='file_create_name' />
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='10' type='1' />
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='count_accu = 0' />
							<exp exp='accu_byte = 100' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='2' forvar='count_buffer' exp='72' >
							<flowline >
								<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='File_ESP32_SDMode1' macro='AppendByteToFile' >
									<return exp='ret_byte' />
									<argument exp='.wav_header[count_buffer]' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='SetLEDColour' >
							<argument exp='0' />
							<argument exp='20' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='Refresh' />
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='status = stat_rec' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='count_samples = 0' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='0' exp='rec_on = 1' >
							<flowline >
								<command class_type='call' title='Key pressed for stop?' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='keypressed_one_key' />
								<command class_type='call' title='command received for stop?' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='get_command_sw' />
								<command class_type='call' title='User Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='lsm6_read_AC_GY' >
									<argument exp='Max_channel' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='rec_sample = 1' swap='0' >
									<flowline >
										<command class_type='call' title='User Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='lsm6_read_AC_GY' >
											<argument exp='Max_channel' />
										</command>
										<command class_type='call' title='accubyte used to turn off' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='CellGauge1' macro='ReadStateOfChargeByte' >
											<return exp='accu_byte' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='rec_sample = 0' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='comment' title='' comment='read acco maybe in write sd card task
or if count samples =1000 read it?' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='accu_byte &gt; 0' swap='1' >
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='accu_byte &gt; 0' swap='1' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='rec_on = 0' />
													<exp exp='count_down = 1000' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='write_now = 0' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='100' type='1' />
						<command class_type='call' title='User Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='file_close' />
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='500' type='1' />
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='UART1' macro='SendString' >
							<argument exp='filename' />
						</command>
						<command class_type='comment' title='' comment='Comment' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='call' title='User Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='W_File_header_wav' >
							<argument exp='filename' />
							<argument exp='16' />
							<argument exp='2000' />
							<argument exp='16' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='SetLEDColour' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='25' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='Refresh' />
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='500' type='1' />
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='count_down = count_down_set' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='status = stat_wait //1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='BT_connect_test' description='Test if BT is connected' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='parameter not needed' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='led_on =  !led_on' />
							<exp exp='count_blue_led = 0' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='led_on' swap='0' >
							<flowline >
								<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='SetLEDColour' >
									<argument exp='0' />
									<argument exp='0' />
									<argument exp='50' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='Refresh' />
							</flowline>
							<flowline >
								<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Bluetooth_SPP_ESP32' macro='CheckConnectionStatus' >
									<return exp='ret_byte' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='ret_byte = 0' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='ret_byte = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='count_down = count_down_set' />
										</command>
										<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='SetLEDColour' >
											<argument exp='0' />
											<argument exp='0' />
											<argument exp='0' />
											<argument exp='25' />
										</command>
										<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='Refresh' />
									</flowline>
									<flowline >
										<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='SetLEDColour' >
											<argument exp='0' />
											<argument exp='0' />
											<argument exp='10' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='Refresh' />
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='file_create' description='create the file' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='parameter not needed' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='100' type='1' />
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='File_ESP32_SDMode1' macro='CreateFile' >
							<argument exp='&quot;test.csv&quot;' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='100' type='1' />
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='File_ESP32_SDMode1' macro='OpenFile' >
							<argument exp='&quot;test.csv&quot;' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='100' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='SetupSensor' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='register_value_8Bit' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='//.register_valueBit = 0b0000ssss' />
							<exp exp='.register_value_8Bit = 0b00000101' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
							<argument exp='sensor_addr' />
						</command>
						<command class_type='call' title='ACC' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='WriteReg' >
							<argument exp='0x10' />
							<argument exp='.register_value_8Bit' />
						</command>
						<command class_type='call' title='Gyro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='WriteReg' >
							<argument exp='0x11' />
							<argument exp='.register_value_8Bit' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='10' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='WriteReg' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='reg' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='data' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='buf' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.buf[0] = .reg' />
							<exp exp='.buf[1] = .data' />
						</command>
						<command class_type='calculation' title='Calculation' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.buf[0] = 0x10' />
							<exp exp='.buf[1] = 5' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
							<argument exp='sensor_addr' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
							<argument exp='0x6B' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Write' >
							<argument exp='.buf' />
							<argument exp='2' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Write' >
							<argument exp='.buf' />
							<argument exp='2' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Sleep' description='let the recorder sleep' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='parameter not needed' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='status = stat_sleep' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='count_down = count_down_set' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='power_enable' macro='TurnOff' />
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='500' type='1' />
						<command class_type='comment' title='' comment='https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/sleep_modes.html#id1' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='sleep_deep = 1' swap='0' >
							<flowline >
								<command class_type='native' title='Code' disable='1' ccode='//esp_deep_sleep_enable_gpio_wakeup();      //ok
//gpio_wakeup_enable(GPIO_NUM_19, GPIO_INTR_HIGH_LEVEL);   //MA NUR EIN bUTTON
gpio_wakeup_enable(ESP_EXT1_WAKEUP_ANY_HIGH);  ' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' language='C' />
								<command class_type='native' title='for test' disable='1' ccode='esp_sleep_enable_timer_wakeup(1000000);' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' language='C' />
								<command class_type='native' title='For test esp_deep_sleep in uSec  (1000000)=1Sec' disable='1' ccode='esp_deep_sleep(1000000);' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' language='C' />
								<command class_type='native' title='For recorder to set in standby' disable='1' ccode='esp_deep_sleep_start();// no wake up' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' language='C' />
							</flowline>
							<flowline >
								<command class_type='native' title='For recorder use gpio' ccode='esp_sleep_enable_gpio_wakeup(); 
gpio_wakeup_enable(GPIO_NUM_19, GPIO_INTR_LOW_LEVEL); 
gpio_wakeup_enable(GPIO_NUM_3, GPIO_INTR_LOW_LEVEL); //Uart0 Pin A3 RX ' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' language='C' />
								<command class_type='native' title='For recorder to set in standby' ccode='esp_light_sleep_start();
' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' language='C' />
							</flowline>
						</command>
						<command class_type='comment' title='' comment='************** ************ *************   before sleep' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='comment' title='' comment='************** ************ *************   after sleep' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='power_enable' macro='TurnOn' />
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_Mono_blue' macro='TurnOn' />
						<command class_type='loop' title='After sleep it&apos;s need time to wakeup' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='2' exp='5' >
							<flowline >
								<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='SetLEDColour' >
									<argument exp='0' />
									<argument exp='0' />
									<argument exp='0' />
									<argument exp='50' />
								</command>
								<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='Refresh' />
								<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='100' type='1' />
								<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='SetLEDColour' >
									<argument exp='0' />
									<argument exp='0' />
									<argument exp='0' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='Refresh' />
								<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='100' type='1' />
							</flowline>
						</command>
						<command class_type='call' title='User Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='IMU_test_lsm6' />
						<command class_type='call' title='User Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='lsm6_set_AC_GY' >
							<argument exp='Max_channel' />
							<argument exp='samplerate' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='300' type='1' />
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='File_ESP32_SDMode1' macro='Uninitialise' />
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='300' type='1' />
						<command class_type='call' title='User Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='sd_card_init' />
						<command class_type='comment' title='' comment='Besser nicht einschalten?' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='status = stat_wait //1' />
							<exp exp='accu_byte = 200' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='count_display_update = 0' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='count_down = count_down_set' />
							<exp exp='' />
							<exp exp='' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_Mono_blue' macro='TurnOff' />
					</flowline>
				</macro>
				<macro >
					<flowline name='file_create_name' description='create the filename' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='parameter not needed' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='File_ESP32_SDMode1' macro='SetFileIndex' >
							<argument exp='0' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='100' type='1' />
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='' />
							<exp exp='filename = filename_prefix + ToString$(file_nr)' />
							<exp exp='filename = filename + filename_extension' />
							<exp exp='file_nr = file_nr + 1' />
							<exp exp='BT_sen_strg = filename + &quot;\r\n&quot;' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Bluetooth_SPP_ESP32' macro='SendString' >
							<argument exp='BT_sen_strg' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='100' type='1' />
						<command class_type='call' title='Component Macro' ccode='  // Name: Component Macro, Type: Component Macro: FileSD1::CreateFile(filename)
  FCD_07fa1_FileSD1__CreateFile(FCV_FILENAME, FCVsz_FILENAME);' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='File_ESP32_SDMode1' macro='CreateFile' >
							<argument exp='filename' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='100' type='1' />
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='File_ESP32_SDMode1' macro='OpenFile' >
							<argument exp='filename' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='100' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='get_command_sw' description='found from whre the IRQ is set' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='parameter not needed' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='calculation' title='count for time to sleep and test BT connected' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='count_blue_led = count_blue_led + 1' />
							<exp exp='' />
							<exp exp='' />
						</command>
						<command class_type='switch' title='switch' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='get_cmd' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='comment' title='' comment='BT' textarea='12,0,487,300' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='get_cmd = 0' />
										<exp exp='BT_USB = 1' />
										<exp exp='count_down = count_down_set' />
									</command>
									<command class_type='call' title='MaxBytes=2 Timeout=100' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Bluetooth_SPP_ESP32' macro='ReceiveString' >
										<return exp='ret_strg_BT_USB' />
										<argument exp='4' />
										<argument exp='50' />
									</command>
									<command class_type='call' title='User Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='get_command' >
										<argument exp='ret_strg_BT_USB' />
									</command>
									<command class_type='comment' title='' comment='remove later' textarea='12,0,487,300' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
									<command class_type='comment' title='' comment='Comment' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='comment' title='' comment='USB' textarea='12,0,487,300' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='get_cmd = 0' />
										<exp exp='BT_USB = 2' />
										<exp exp='count_down = count_down_set' />
									</command>
									<command class_type='call' title='Timeout=100 NumBytes=2 ' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='UART1' macro='ReceiveString' >
										<return exp='ret_strg_BT_USB' />
										<argument exp='50' />
										<argument exp='4' />
									</command>
									<command class_type='call' title='User Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='get_command' >
										<argument exp='ret_strg_BT_USB' />
									</command>
								</flowline>
							</case>
							<case exp='3' >
								<flowline />
							</case>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='get_command' description='get the command from the received string USB or BT' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='cmd_strg' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='40' />
						</param>
						<local name='ret_strg' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='40' />
						</local>
						<command class_type='comment' title='' comment='need 1 parameter give 1 value back 
' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='comment' title='' comment='A1/A2 Rec stop/Rec start/Rec
B1/B2 BT  stop/Btsend start/Btsend data array
T1/T2 BT  stop/Btsend start/Btsend tesinfos
it&apos;s not case sensitive
' textarea='12,0,12,0' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.ret_strg = .cmd_strg' />
						</command>
						<command class_type='decision' title='Record Stop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='(Compare$(.ret_strg,&quot;a1&quot;,1) == 0) OR (Compare$(.ret_strg,&quot;a1\r\n&quot;,1) == 0)' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='rec_on = 0' />
									<exp exp='' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Record start' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='(Compare$(.ret_strg,&quot;a2&quot;,1) == 0) OR (Compare$(.ret_strg,&quot;a2\r\n&quot;,1) == 0)' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='rec_on = 1' />
									<exp exp='' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='comment' title='' comment='Send data Bluetooth' textarea='1098,-8,1098,-8' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='decision' title='Keyword info' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='(Compare$(.ret_strg,&quot;c1&quot;,1) == 0) OR (Compare$(.ret_strg,&quot;c1\r\n&quot;,1) == 0)' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='send_enable = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Keyword info' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='(Compare$(.ret_strg,&quot;c2&quot;,1) == 0) OR (Compare$(.ret_strg,&quot;c2\r\n&quot;,1) == 0)' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='send_enable = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Keyword info' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='(Compare$(.ret_strg,&quot;t1&quot;,1) == 0) OR (Compare$(.ret_strg,&quot;t1\r\n&quot;,1) == 0)' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='send_enable = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Keyword info' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='(Compare$(.ret_strg,&quot;t2&quot;,1) == 0) OR (Compare$(.ret_strg,&quot;t2\r\n&quot;,1) == 0)' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='send_enable = 2' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Keyword info' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='(Compare$(.ret_strg,&quot;v1&quot;,1) == 0) OR (Compare$(.ret_strg,&quot;v1\r\n&quot;,1) == 0)' swap='0' >
							<flowline >
								<command class_type='call' title='User Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Autoversion' />
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='lsm6_read_AC_GY' description='Read from IMU' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='max_channel' type='u8' description='1=1channel (0X6B) 2=2channel (0X6B)+(0X6A)' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='data_B' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<local name='f' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0' />
						<local name='data_A' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<local name='count_AG' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='count_G' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='reg_addr' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='1' />
						</local>
						<local name='read_way' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
						<command class_type='comment' title='' comment='2025_05_08' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='comment' title='' comment='Mod to I2C Master' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='comment' title='' comment='read from IMU component or I2C master (.readway 1=component; 2=I2C Master)
Fill Buffer A and Buffer B' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.read_way = 1' />
							<exp exp='//.read_way = 2' />
							<exp exp='.read_way = 3' />
						</command>
						<command class_type='call' title='Bot' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
							<argument exp='0x6B' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Testpoint4' macro='TurnOn' />
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='time_for_accu_test &gt; 1000' swap='0' >
							<flowline >
								<command class_type='call' title='accubyte used to turn off' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='CellGauge1' macro='ReadStateOfChargeByte' >
									<return exp='accu_byte' />
								</command>
								<command class_type='calculation' title='Calculation' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='accu_strg = ToString$(accu_byte) + &quot;\r\n&quot;' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='time_for_accu_test = 0' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='time_for_accu_test = time_for_accu_test + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.read_way' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='calculation' title='For test !!!' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='.data_B[0] = 0' />
										<exp exp='.data_B[1] = 0' />
										<exp exp='.data_B[2] = 0' />
										<exp exp='.data_B[3] = 0' />
										<exp exp='.data_B[4] = 0' />
										<exp exp='.data_B[5] = 0' />
										<exp exp='.data_B[6] = 0' />
										<exp exp='.data_B[7] = 0' />
										<exp exp='.data_B[8] = 0' />
										<exp exp='.data_B[9] = 0' />
										<exp exp='.data_B[10] = 0' />
										<exp exp='.data_B[11] = 0' />
									</command>
									<command class_type='calculation' title='For test !!!' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='data_G[0] = 0000' />
										<exp exp='data_G[1] = 1000' />
										<exp exp='data_G[2] = 2000' />
										<exp exp='data_G[3] = 3000' />
										<exp exp='data_G[4] = 4000' />
										<exp exp='data_G[5] = 5000' />
										<exp exp='' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='.reg_addr[0] = 0x22' />
									</command>
									<command class_type='call' title='Bot' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
										<argument exp='0x6A' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Write' >
										<argument exp='.reg_addr' />
										<argument exp='1' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Read' >
										<argument exp='.data_B' />
										<argument exp='12' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='.reg_addr[0] = 0x22' />
									</command>
									<command class_type='call' title='0x28 for lsm6dsv16' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='ReadData' >
										<argument exp='0x28' />
										<argument exp='.data_B' />
										<argument exp='12' />
									</command>
								</flowline>
							</case>
							<case exp='4' >
								<flowline />
							</case>
							<case exp='5' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='.reg_addr[0] = 0x22' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
										<argument exp='sensor_addr' />
									</command>
									<command class_type='call' title='Bot' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
										<argument exp='0x6A' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Write' >
										<argument exp='.reg_addr' />
										<argument exp='1' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Read' >
										<argument exp='.data_B' />
										<argument exp='12' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
								</flowline>
							</case>
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
						<command class_type='comment' title='' comment='Comment' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='calculation' title='Calculation for ACC' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='data_G[0] = (.data_B[1] &lt;&lt; 8) | .data_B[0]' />
							<exp exp='data_G[1] = (.data_B[3] &lt;&lt; 8) | .data_B[2]' />
							<exp exp='data_G[2] = (.data_B[5] &lt;&lt; 8) | .data_B[4]' />
							<exp exp='' />
						</command>
						<command class_type='calculation' title='Calculation for Gyro' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='data_G[3] = (.data_B[7] &lt;&lt; 8) | .data_B[6]' />
							<exp exp='data_G[4] = (.data_B[9] &lt;&lt; 8) | .data_B[8]' />
							<exp exp='data_G[5] = (.data_B[11] &lt;&lt; 8) | .data_B[10]' />
							<exp exp='' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='Buffer_A = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='AG_XYZ_A[count_data] = data_G[0]' />
									<exp exp='count_data = count_data + 1' />
									<exp exp='AG_XYZ_A[count_data] = data_G[1]' />
									<exp exp='count_data = count_data + 1' />
									<exp exp='AG_XYZ_A[count_data] = data_G[2]' />
									<exp exp='count_data = count_data + 1' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='AG_XYZ_A[count_data] = data_G[3]' />
									<exp exp='count_data = count_data + 1' />
									<exp exp='AG_XYZ_A[count_data] = data_G[4]' />
									<exp exp='count_data = count_data + 1' />
									<exp exp='AG_XYZ_A[count_data] = data_G[5]' />
									<exp exp='count_data = count_data + 1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='ACCEL' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='AG_XYZ_B[count_data] = data_G[0]' />
									<exp exp='count_data = count_data + 1' />
									<exp exp='AG_XYZ_B[count_data] = data_G[1]' />
									<exp exp='count_data = count_data + 1' />
									<exp exp='AG_XYZ_B[count_data] = data_G[2]' />
									<exp exp='count_data = count_data + 1' />
								</command>
								<command class_type='calculation' title='GYRO' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='AG_XYZ_B[count_data] = data_G[3]' />
									<exp exp='count_data = count_data + 1' />
									<exp exp='AG_XYZ_B[count_data] = data_G[4]' />
									<exp exp='count_data = count_data + 1' />
									<exp exp='AG_XYZ_B[count_data] = data_G[5]' />
									<exp exp='count_data = count_data + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.read_way' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='calculation' title='For test !!!' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='.data_B[0] = 0' />
										<exp exp='.data_B[1] = 0' />
										<exp exp='.data_B[2] = 0' />
										<exp exp='.data_B[3] = 0' />
										<exp exp='.data_B[4] = 0' />
										<exp exp='.data_B[5] = 0' />
										<exp exp='.data_B[6] = 0' />
										<exp exp='.data_B[7] = 0' />
										<exp exp='.data_B[8] = 0' />
										<exp exp='.data_B[9] = 0' />
										<exp exp='.data_B[10] = 0' />
										<exp exp='.data_B[11] = 0' />
									</command>
									<command class_type='calculation' title='For test !!!' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='data_G[0] = 0000' />
										<exp exp='data_G[1] = 1000' />
										<exp exp='data_G[2] = 2000' />
										<exp exp='data_G[3] = 3000' />
										<exp exp='data_G[4] = 4000' />
										<exp exp='data_G[5] = 5000' />
										<exp exp='' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='.reg_addr[0] = 0x22' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
										<argument exp='0x6A' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Write' >
										<argument exp='.reg_addr' />
										<argument exp='1' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Read' >
										<argument exp='.data_B' />
										<argument exp='12' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='calculation' title='For test !!!' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='.data_B[0] = 0' />
										<exp exp='.data_B[1] = 0' />
										<exp exp='.data_B[2] = 0' />
										<exp exp='.data_B[3] = 0' />
										<exp exp='.data_B[4] = 0' />
										<exp exp='.data_B[5] = 0' />
										<exp exp='.data_B[6] = 0' />
										<exp exp='.data_B[7] = 0' />
										<exp exp='.data_B[8] = 0' />
										<exp exp='.data_B[9] = 0' />
										<exp exp='.data_B[10] = 0' />
										<exp exp='.data_B[11] = 0' />
									</command>
								</flowline>
							</case>
							<case exp='4' >
								<flowline />
							</case>
							<case exp='5' >
								<flowline />
							</case>
						</command>
						<command class_type='comment' title='' comment='Comment' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='calculation' title='Calculation for ACC' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='data_G[0] = (.data_B[1] &lt;&lt; 8) | .data_B[0]' />
							<exp exp='data_G[1] = (.data_B[3] &lt;&lt; 8) | .data_B[2]' />
							<exp exp='data_G[2] = (.data_B[5] &lt;&lt; 8) | .data_B[4]' />
							<exp exp='' />
						</command>
						<command class_type='calculation' title='Calculation for Gyro' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='data_G[3] = (.data_B[7] &lt;&lt; 8) | .data_B[6]' />
							<exp exp='data_G[4] = (.data_B[9] &lt;&lt; 8) | .data_B[8]' />
							<exp exp='data_G[5] = (.data_B[11] &lt;&lt; 8) | .data_B[10]' />
							<exp exp='' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='Buffer_A = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='AG_XYZ_A[count_data] = data_G[0]' />
									<exp exp='count_data = count_data + 1' />
									<exp exp='AG_XYZ_A[count_data] = data_G[1]' />
									<exp exp='count_data = count_data + 1' />
									<exp exp='AG_XYZ_A[count_data] = data_G[2]' />
									<exp exp='count_data = count_data + 1' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='AG_XYZ_A[count_data] = data_G[3]' />
									<exp exp='count_data = count_data + 1' />
									<exp exp='AG_XYZ_A[count_data] = data_G[4]' />
									<exp exp='count_data = count_data + 1' />
									<exp exp='AG_XYZ_A[count_data] = data_G[5]' />
									<exp exp='count_data = count_data + 1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='ACCEL' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='AG_XYZ_B[count_data] = data_G[0]' />
									<exp exp='count_data = count_data + 1' />
									<exp exp='AG_XYZ_B[count_data] = data_G[1]' />
									<exp exp='count_data = count_data + 1' />
									<exp exp='AG_XYZ_B[count_data] = data_G[2]' />
									<exp exp='count_data = count_data + 1' />
								</command>
								<command class_type='calculation' title='GYRO' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='AG_XYZ_B[count_data] = data_G[3]' />
									<exp exp='count_data = count_data + 1' />
									<exp exp='AG_XYZ_B[count_data] = data_G[4]' />
									<exp exp='count_data = count_data + 1' />
									<exp exp='AG_XYZ_B[count_data] = data_G[5]' />
									<exp exp='count_data = count_data + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='count_samples = count_samples + 1' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='count_samples = Sample_buffer_size' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='Buffer_A = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='Buffer_A = 0' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='Buffer_A = 1' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='write_now = 1' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='count_samples = 0' />
									<exp exp='count_data = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Testpoint4' macro='TurnOff' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Send' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='queue' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='file_last_file_found' description='found the last used file' statediag='0' >
						<return name='Return' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='filename_prefix' type='T8' description='maximal 5 char' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='30' />
						</param>
						<param name='filename_extension' type='T8' description='include the dot  &quot;.csv&quot;    or &quot;.txt&quot;' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<local name='last_file_found' type='u16' description='nummer for filename' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='file_nr' type='u16' description='counter for nummer' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='ret_file_open' type='u8' description='ret_byte' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='filename' type='T8' description='filename to try to open' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='30' />
						</local>
						<command class_type='comment' title='' comment='parameter not needed' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='0' exp='.last_file_found = 0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='.file_nr = .file_nr + 1' />
									<exp exp='.filename = .filename_prefix + ToString$(.file_nr)' />
									<exp exp='.filename = .filename + .filename_extension' />
								</command>
								<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='File_ESP32_SDMode1' macro='OpenFile' >
									<return exp='.ret_file_open' />
									<argument exp='.filename' />
								</command>
								<command class_type='comment' title='' comment='new 2024 08 30 
10mS b4= 100mS' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
								<command class_type='delay' title='Delay' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='10' type='1' />
								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.ret_file_open = 0' swap='0' >
									<flowline >
										<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='File_ESP32_SDMode1' macro='CloseFile' />
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.last_file_found = 1' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.return = .file_nr' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Init' description='Init all the components' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='parameter not needed' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='native' title='For wake_up with a button on GPIO19' ccode='gpio_set_pull_mode(GPIO_NUM_19, GPIO_PULLUP_ONLY); // on board 10KOhm
' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' language='C' />
						<command class_type='call' title='hardware on' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='power_enable' macro='TurnOn' />
						<command class_type='call' title='reset LED' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='SetLEDColour' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='Refresh' />
						<command class_type='call' title='Set blue led on' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_Mono_blue' macro='TurnOn' />
						<command class_type='call' title='For test only' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Testpoint1' macro='TurnOff' />
						<command class_type='call' title='For test only' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Testpoint4' macro='TurnOff' />
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_Mono_blue' macro='TurnOff' />
						<command class_type='call' title='Akku hardware IC' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='CellGauge1' macro='Initialise' >
							<return exp='ret_byte' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='100' type='1' />
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='UART1' macro='Initialise' />
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Bluetooth_SPP_ESP32' macro='Initialise' />
					</flowline>
				</macro>
				<macro >
					<flowline name='BT_interrupt' description='received an IRQ from BT' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='parameter not needed' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='get_cmd = 1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Write_SD' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='ret_byte' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='comment' title='' comment='https://docs.espressif.com/projects/esp-idf/en/v5.3.3/esp32/api-reference/system/wdts.html' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='0' exp='1' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='rec_on = 1' swap='0' >
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='write_now = 1' swap='0' >
											<flowline >
												<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Testpoint4' macro='TurnOn' />
												<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='Buffer_A = 1' swap='0' >
													<flowline >
														<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='File_ESP32_SDMode1' macro='AppendINTArrayToFile' >
															<return exp='.ret_byte' />
															<argument exp='AG_XYZ_B' />
															<argument exp='write_buffer_size' />
															<argument exp='0' />
														</command>
													</flowline>
													<flowline >
														<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='File_ESP32_SDMode1' macro='AppendINTArrayToFile' >
															<return exp='.ret_byte' />
															<argument exp='AG_XYZ_A' />
															<argument exp='write_buffer_size' />
															<argument exp='0' />
														</command>
													</flowline>
												</command>
												<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Testpoint4' macro='TurnOff' />
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='write_now = 0' />
												</command>
												<command class_type='delay' title='WDT 10 uSec' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='10' type='0' />
												<command class_type='delay' title='Minimal Delay for WDT 10 mSec' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='10' type='1' />
											</flowline>
											<flowline >
												<command class_type='delay' title='WDT 10 uSec' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='10' type='0' />
												<command class_type='delay' title='Minimal Delay for WDT 10 mSec ' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='10' type='1' />
												<command class_type='comment' title='' comment='need to be adjusted' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
												<command class_type='comment' title='' comment='Comment' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='comment' title='' comment='needs delay !!!' textarea='12,0,12,0' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
										<command class_type='delay' title='WDT 10 uSec' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='10' type='0' />
										<command class_type='delay' title='Minimal Delay for WDT 10 mSec ' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='10' type='1' />
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='leading_space' description='Set leading char to a number' statediag='0' >
						<return name='Return' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2000' />
						</return>
						<param name='lead_char' type='T8' description='&quot;0&quot; or &quot; &quot;' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='1' />
						</param>
						<param name='value' type='s32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='number_of_char' type='u8' description='How many char  (3)Byte, (5)uinteger (6)sinteger (10)ulong (11)slong' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='temp_str' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='40' />
						</local>
						<local name='str_len' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='temp_str2' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='40' />
						</local>
						<local name='count_leading' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='comment' title='' comment='need 3 parameter 1 value back' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.temp_str2 = &quot;&quot;' />
							<exp exp='.temp_str = ToString$ (.value)' />
							<exp exp='.str_len = Length$ (.temp_str)' />
							<exp exp='.count_leading = .number_of_char - .str_len' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='2' exp='.count_leading' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='.temp_str2 = .temp_str2 + .lead_char' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.Return = .temp_str2 + .temp_str' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Init_IRQ_sampelrate' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='max_channel' type='u8' description='1= 1 channel, 2= 2 channel,' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='samplerate' type='u16' description='samplerate 15,30,60,120,240 in Hz' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='register_value_8Bit' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='comment' title='' comment='2025_05_08' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='switch' title='samplerate 15,30,60,120,240,480,960,1920,3840,7680 in Hz' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.samplerate' >
							<case >
								<flowline />
							</case>
							<case exp='15' >
								<flowline >
									<command class_type='interrupt' title='Interrupt 15HZ    (66mSec)' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' enable='1' name='TMR0' call='timer1_irq' >
										<settings timer='1' prescale='-1' postscale='-1' rollover='66' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
											<option value='66' />
											<option value='1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
										</settings>
									</command>
								</flowline>
							</case>
							<case exp='30' >
								<flowline >
									<command class_type='interrupt' title='30 HZ (33mSec)' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' enable='1' name='TMR0' call='timer1_irq' >
										<settings timer='1' prescale='-1' postscale='-1' rollover='33' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
											<option value='33' />
											<option value='1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
										</settings>
									</command>
								</flowline>
							</case>
							<case exp='60' >
								<flowline >
									<command class_type='interrupt' title='60 HZ (16mSec)  62.5Hz' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' enable='1' name='TMR0' call='timer1_irq' >
										<settings timer='1' prescale='-1' postscale='-1' rollover='16' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
											<option value='16' />
											<option value='1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
										</settings>
									</command>
								</flowline>
							</case>
							<case exp='120' >
								<flowline >
									<command class_type='interrupt' title='120 HZ (8333uSec) ' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' enable='1' name='TMR0' call='timer1_irq' >
										<settings timer='1' prescale='-1' postscale='-1' rollover='8333' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
											<option value='8333' />
											<option value='0' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
										</settings>
									</command>
								</flowline>
							</case>
							<case exp='240' >
								<flowline >
									<command class_type='interrupt' title='240 HZ (4166uSec) ' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' enable='1' name='TMR0' call='timer1_irq' >
										<settings timer='1' prescale='-1' postscale='-1' rollover='4166' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
											<option value='4166' />
											<option value='0' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
										</settings>
									</command>
								</flowline>
							</case>
							<case exp='480' >
								<flowline >
									<command class_type='interrupt' title='480 HZ (2083uSec) ' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' enable='1' name='TMR0' call='timer1_irq' >
										<settings timer='1' prescale='-1' postscale='-1' rollover='2083' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
											<option value='2083' />
											<option value='0' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
										</settings>
									</command>
								</flowline>
							</case>
							<case exp='960' >
								<flowline >
									<command class_type='interrupt' title='960 HZ (1041uSec) ' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' enable='1' name='TMR0' call='timer1_irq' >
										<settings timer='1' prescale='-1' postscale='-1' rollover='1041' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
											<option value='1041' />
											<option value='0' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
										</settings>
									</command>
								</flowline>
							</case>
							<case exp='1920' >
								<flowline >
									<command class_type='interrupt' title='1920 HZ (520uSec) ' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' enable='1' name='TMR0' call='timer1_irq' >
										<settings timer='1' prescale='-1' postscale='-1' rollover='520' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
											<option value='520' />
											<option value='0' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
										</settings>
									</command>
								</flowline>
							</case>
							<case exp='3840' >
								<flowline >
									<command class_type='interrupt' title='3840 HZ (260uS)' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' enable='1' name='TMR0' call='timer1_irq' >
										<settings timer='1' prescale='-1' postscale='-1' rollover='260' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
											<option value='260' />
											<option value='0' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
										</settings>
									</command>
								</flowline>
							</case>
							<case exp='7680' >
								<flowline >
									<command class_type='interrupt' title='7680 HZ (0.130uSec) ' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' enable='1' name='TMR0' call='timer1_irq' >
										<settings timer='1' prescale='-1' postscale='-1' rollover='130' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
											<option value='130' />
											<option value='0' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
										</settings>
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='switch' title='samplerate 15,30,60,120,240,480,960,1920,3840,7680 in Hz' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.samplerate' >
							<case >
								<flowline />
							</case>
							<case exp='15' >
								<flowline >
									<command class_type='interrupt' title='Interrupt 15HZ    (66mSec)' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' enable='1' name='TMR0' call='timer1_irq' >
										<settings timer='1' prescale='-1' postscale='-1' rollover='66' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
											<option value='66' />
											<option value='1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
										</settings>
									</command>
								</flowline>
							</case>
							<case exp='30' >
								<flowline >
									<command class_type='interrupt' title='30 HZ (33mSec)' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' enable='1' name='TMR0' call='timer1_irq' >
										<settings timer='1' prescale='-1' postscale='-1' rollover='33' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
											<option value='33' />
											<option value='1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
										</settings>
									</command>
								</flowline>
							</case>
							<case exp='60' >
								<flowline >
									<command class_type='interrupt' title='60 HZ (16mSec)  62.5Hz' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' enable='1' name='TMR0' call='timer1_irq' >
										<settings timer='1' prescale='-1' postscale='-1' rollover='16' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
											<option value='16' />
											<option value='1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
										</settings>
									</command>
								</flowline>
							</case>
							<case exp='125' >
								<flowline >
									<command class_type='interrupt' title='125 HZ (8mSec) 125Hz' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' enable='1' name='TMR0' call='timer1_irq' >
										<settings timer='1' prescale='-1' postscale='-1' rollover='8' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
											<option value='8' />
											<option value='1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
										</settings>
									</command>
								</flowline>
							</case>
							<case exp='250' >
								<flowline >
									<command class_type='interrupt' title='240 HZ (4mSec) 250Hz' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' enable='1' name='TMR0' call='timer1_irq' >
										<settings timer='1' prescale='-1' postscale='-1' rollover='4' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
											<option value='4' />
											<option value='1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
										</settings>
									</command>
								</flowline>
							</case>
							<case exp='500' >
								<flowline >
									<command class_type='interrupt' title='480 HZ (2mSec) 500Hz' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' enable='1' name='TMR0' call='timer1_irq' >
										<settings timer='1' prescale='-1' postscale='-1' rollover='2' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
											<option value='2' />
											<option value='1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
										</settings>
									</command>
								</flowline>
							</case>
							<case exp='1000' >
								<flowline >
									<command class_type='interrupt' title='1000HZ (1mSec) 1kHz' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' enable='1' name='TMR0' call='timer1_irq' >
										<settings timer='1' prescale='-1' postscale='-1' rollover='1' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
											<option value='1' />
											<option value='1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
										</settings>
									</command>
								</flowline>
							</case>
							<case exp='2000' >
								<flowline >
									<command class_type='interrupt' title='2000 HZ (500uSec) 2000HZ' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' enable='1' name='TMR0' call='timer1_irq' >
										<settings timer='1' prescale='-1' postscale='-1' rollover='500' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
											<option value='500' />
											<option value='0' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
										</settings>
									</command>
								</flowline>
							</case>
							<case exp='4000' >
								<flowline >
									<command class_type='interrupt' title='4000 HZ (250uS) or 270uSec' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' enable='1' name='TMR0' call='timer1_irq' >
										<settings timer='1' prescale='-1' postscale='-1' rollover='250' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
											<option value='250' />
											<option value='0' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
										</settings>
									</command>
								</flowline>
							</case>
							<case exp='8000' >
								<flowline >
									<command class_type='interrupt' title='8000 HZ (0.125uSec) 7987 Hz' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' enable='1' name='TMR0' call='timer1_irq' >
										<settings timer='1' prescale='-1' postscale='-1' rollover='125' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
											<option value='125' />
											<option value='0' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
											<option value='-1' />
										</settings>
									</command>
								</flowline>
							</case>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='W_File_header_wav' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Filename_gen' type='u8' description='8.3 Version' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<param name='number_of_channel_gen' type='u16' description='number of channel saved in the file: 12 for 16bit /8 for 24 bit' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='FS_gen' type='u16' description='Samplerate from the project' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='number_of_bit_gen' type='u8' description='16 or 24 Bit from the project saved in the file' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='fileSize_byte' type='u32' description='wird berechnet !' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='header_offset' type='u16' description='wird berechnet ! wird  addiert richtig gesetzt' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='size_iname' type='u8' description='wird bestimmt bei headerOffset 52  temp as 12' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='size_list' type='u32' description='wird bestimmt bei headerOffset 40    temp as 20' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='byte_per_second' type='u32' description='wird berechnet !' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='yes' type='s16' description='true' isconst='1' isHidden='0' isinit='1' usrinit='1' setinit='1' />
						<local name='no' type='s16' description='false' isconst='1' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='wav_header' type='u8' description='tempbuffer for the first sector with the haeder' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='512' />
						</local>
						<local name='header_size' type='u16' description='number of byte for the header' isconst='0' isHidden='0' isinit='1' usrinit='72' setinit='72' />
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='File_ESP32_SDMode1' macro='OpenFile' >
							<return exp='ret_byte' />
							<argument exp='.Filename_gen' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='File_ESP32_SDMode1' macro='ReadFileSize' >
							<return exp='.fileSize_byte' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='buf_count = 0' />
							<exp exp='' />
						</command>
						<command class_type='loop' title='Just file the buffer with &quot;space&quot;' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='2' forvar='buf_count' exp='512' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='.wav_header[buf_count] = 0x00' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='2' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='comment' title='' comment='Comment' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='calculation' title='Calculation Wave haeder' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//“RIFF”	Marks the file as a riff file. Characters are each 1 byte long.' />
										<exp exp='.wav_header[0] = 0x52 //R' />
										<exp exp='.wav_header[1] = 0x49 //I' />
										<exp exp='.wav_header[2] = 0x46 //F' />
										<exp exp='.wav_header[3] = 0x46 //F' />
										<exp exp='//' />
										<exp exp='//File size (integer)	Size of the overall file - 8 bytes, in bytes (32-bit integer).' />
										<exp exp='//Typically, you’d fill this in after creation' />
										<exp exp='//fileSize_byte-8!!!!' />
										<exp exp='.fileSize_byte = .fileSize_byte - 8' />
										<exp exp='.wav_header[4] = (.fileSize_byte) &amp; 0x000000FF //Update file size' />
										<exp exp='.wav_header[5] = (.fileSize_byte &gt;&gt; 8) &amp; 0x000000FF' />
										<exp exp='.wav_header[6] = (.fileSize_byte &gt;&gt; 16) &amp; 0x000000FF' />
										<exp exp='.wav_header[7] = (.fileSize_byte &gt;&gt; 24) &amp; 0x000000FF' />
										<exp exp='//' />
										<exp exp='//“WAVE”	File Type Header. For our purposes, it always equals “WAVE”.' />
										<exp exp='.header_offset = 8' />
										<exp exp='.wav_header[.header_offset + 0] = 0x57 //W' />
										<exp exp='.wav_header[.header_offset + 1] = 0x41 //A' />
										<exp exp='.wav_header[.header_offset + 2] = 0x56 //V' />
										<exp exp='.wav_header[.header_offset + 3] = 0x45 //E' />
										<exp exp='//' />
										<exp exp='//“fmt ” Format chunk marker. Includes trailing null it always equals “fmt ”' />
										<exp exp='.header_offset = 12' />
										<exp exp='.wav_header[.header_offset + 0] = 0x66 //f' />
										<exp exp='.wav_header[.header_offset + 1] = 0x6d //m' />
										<exp exp='.wav_header[.header_offset + 2] = 0x74 //t' />
										<exp exp='.wav_header[.header_offset + 3] = 0x20 //(leer Zeichen)' />
										<exp exp='//' />
										<exp exp='//' />
										<exp exp='//16 Length of format data as listed above' />
										<exp exp='.header_offset = 16' />
										<exp exp='.wav_header[.header_offset + 0] = 0x10 //length fmt (16Byte)' />
										<exp exp='.wav_header[.header_offset + 1] = 0x00' />
										<exp exp='.wav_header[.header_offset + 2] = 0x00' />
										<exp exp='.wav_header[.header_offset + 3] = 0x00' />
										<exp exp='//' />
										<exp exp='//Type of format (1 is PCM) - 2 byte integer  (1)' />
										<exp exp='.header_offset = 20' />
										<exp exp='.wav_header[.header_offset] = 0x01 //Format(PCM)' />
										<exp exp='.wav_header[.header_offset + 1] = 0x00 //Format(.)' />
										<exp exp='' />
										<exp exp='//Number of Channels - 2 byte integer (4)' />
										<exp exp='.header_offset = 22' />
										<exp exp='//.number_of_channel_gen' />
										<exp exp='.wav_header[.header_offset + 0] = (.number_of_channel_gen) &amp; 0x000000FF' />
										<exp exp='.wav_header[.header_offset + 1] = (.number_of_channel_gen &gt;&gt; 8) &amp; 0x000000FF' />
										<exp exp='//' />
										<exp exp='//2000 Sample Rate - 32 byte integer.' />
										<exp exp='.header_offset = 24' />
										<exp exp='//.fs' />
										<exp exp='.wav_header[.header_offset + 0] = (.FS_gen) &amp; 0x000000FF' />
										<exp exp='.wav_header[.header_offset + 1] = (.FS_gen &gt;&gt; 8) &amp; 0x000000FF' />
										<exp exp='.wav_header[.header_offset + 2] = (.FS_gen &gt;&gt; 16) &amp; 0x000000FF' />
										<exp exp='.wav_header[.header_offset + 3] = (.FS_gen &gt;&gt; 24) &amp; 0x000000FF' />
										<exp exp='//' />
										<exp exp='//xxxx  (Sample Rate * BitsPerSample * Channels) / 8.' />
										<exp exp='//byterate == SampleRate * NumChannels * BitsPerSample/8' />
										<exp exp='//for 2000spl 4channel 16bit / 8' />
										<exp exp='.header_offset = 28' />
										<exp exp='.byte_per_second = .FS_gen * .number_of_channel_gen * .number_of_bit_gen / 8 //new 30.4.21' />
										<exp exp='.wav_header[.header_offset + 0] = (.byte_per_second) &amp; 0x000000FF' />
										<exp exp='.wav_header[.header_offset + 1] = (.byte_per_second &gt;&gt; 8) &amp; 0x000000FF' />
										<exp exp='.wav_header[.header_offset + 2] = (.byte_per_second &gt;&gt; 16) &amp; 0x000000FF' />
										<exp exp='.wav_header[.header_offset + 3] = (.byte_per_second &gt;&gt; 24) &amp; 0x000000FF' />
										<exp exp='' />
										<exp exp='//' />
										<exp exp='//(BitsPerSample * Channels) /' />
										<exp exp='.header_offset = 32' />
										<exp exp='.wav_header[.header_offset] = 0x04 //' />
										<exp exp='.wav_header[.header_offset + 1] = 0x00 //' />
										<exp exp='' />
										<exp exp='//16	Bits per sample' />
										<exp exp='//.bits_per_sample' />
										<exp exp='.header_offset = 34' />
										<exp exp='.wav_header[.header_offset + 0] = (.number_of_bit_gen) &amp; 0x000000FF //new 30.4.21' />
										<exp exp='.wav_header[.header_offset + 1] = (.number_of_bit_gen &gt;&gt; 8) &amp; 0x000000FF //new 30.4.21' />
										<exp exp='//' />
										<exp exp='//LIST The ASCII character string &quot;LIST&quot;' />
										<exp exp='.header_offset = 36' />
										<exp exp='.wav_header[.header_offset + 0] = 0x4C //L' />
										<exp exp='.wav_header[.header_offset + 1] = 0x49 //I' />
										<exp exp='.wav_header[.header_offset + 2] = 0x53 //S' />
										<exp exp='.wav_header[.header_offset + 3] = 0x54 //T' />
										<exp exp='//' />
										<exp exp='.size_list = 16 + 4 //The size of the sub-chunk less 8 (less the &quot;chunk ID&quot; and the &quot;size&quot;)//16 is working' />
										<exp exp='.header_offset = 40' />
										<exp exp='.wav_header[.header_offset + 0] = (.size_list) &amp; 0x000000FF' />
										<exp exp='.wav_header[.header_offset + 1] = (.size_list &gt;&gt; 8) &amp; 0x000000FF' />
										<exp exp='.wav_header[.header_offset + 2] = (.size_list &gt;&gt; 16) &amp; 0x000000FF' />
										<exp exp='.wav_header[.header_offset + 3] = (.size_list &gt;&gt; 24) &amp; 0x000000FF' />
										<exp exp='//' />
										<exp exp='//A common one is &quot;INFO&quot;' />
										<exp exp='.header_offset = 44 //                      from her to to count' />
										<exp exp='.wav_header[.header_offset + 0] = 0x49 //I' />
										<exp exp='.wav_header[.header_offset + 1] = 0x4E //N' />
										<exp exp='.wav_header[.header_offset + 2] = 0x46 //F' />
										<exp exp='.wav_header[.header_offset + 3] = 0x4F //O' />
										<exp exp='//INAM' />
										<exp exp='.header_offset = 48 // direct after &quot;info&quot;' />
										<exp exp='.wav_header[.header_offset + 0] = 0x49 //I' />
										<exp exp='.wav_header[.header_offset + 1] = 0x4E //N' />
										<exp exp='.wav_header[.header_offset + 2] = 0x41 //A' />
										<exp exp='.wav_header[.header_offset + 3] = 0x4D //M' />
										<exp exp='//' />
										<exp exp='.size_iname = 4' />
										<exp exp='.header_offset = 52' />
										<exp exp='.wav_header[.header_offset + 0] = .size_iname // 0x0c  12 sollte gehen' />
										<exp exp='//' />
										<exp exp='.header_offset = 56' />
										<exp exp='.wav_header[.header_offset + 0] = 0x68 //h' />
										<exp exp='.wav_header[.header_offset + 1] = 0x6F //o' />
										<exp exp='.wav_header[.header_offset + 2] = 0x69 //i' />
										<exp exp='//.wav_header[.header_offset + 3] = 0x69 //i' />
										<exp exp='//.wav_header[.header_offset + 4] = 0x69 //i' />
										<exp exp='//.wav_header[.header_offset + 5] = 0x69 //i' />
										<exp exp='//.wav_header[.header_offset + 6] = 0x69 //i' />
										<exp exp='//.wav_header[.header_offset + 7] = 0x69 //i' />
										<exp exp='//.wav_header[.header_offset + 8] = 0x69 //i' />
										<exp exp='//.wav_header[.header_offset + 9] = 0x69 //i' />
										<exp exp='//.wav_header[.header_offset + 10] = 0x69 //i' />
										<exp exp='//.wav_header[.header_offset + 11] = 0x69 //i' />
										<exp exp='//.wav_header[.header_offset + 12] = 0x69 //i' />
										<exp exp='//' />
										<exp exp='//“data” chunk header. Marks the beginning of the data section fix&quot;data&quot;' />
										<exp exp='.header_offset = 44 + .size_list //to here 16' />
										<exp exp='.wav_header[.header_offset + 0] = 0x64 //d' />
										<exp exp='.wav_header[.header_offset + 1] = 0x61 //a' />
										<exp exp='.wav_header[.header_offset + 2] = 0x74 //t' />
										<exp exp='.wav_header[.header_offset + 3] = 0x61 //a' />
										<exp exp='//' />
										<exp exp='//File size (data)	Size of the data section.' />
										<exp exp='.header_offset = 48 + .size_list //' />
										<exp exp='.fileSize_byte = .fileSize_byte - (.header_offset)' />
										<exp exp='.wav_header[.header_offset + 0] = (.fileSize_byte) &amp; 0x000000FF //data size' />
										<exp exp='.wav_header[.header_offset + 1] = (.fileSize_byte &gt;&gt; 8) &amp; 0x000000FF' />
										<exp exp='.wav_header[.header_offset + 2] = (.fileSize_byte &gt;&gt; 16) &amp; 0x000000FF' />
										<exp exp='.wav_header[.header_offset + 3] = (.fileSize_byte &gt;&gt; 24) &amp; 0x000000FF' />
										<exp exp='' />
										<exp exp='' />
										<exp exp='' />
									</command>
									<command class_type='comment' title='' comment='Comment' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
								</flowline>
							</case>
							<case exp='3' >
								<flowline />
							</case>
							<case exp='4' >
								<flowline />
							</case>
						</command>
						<command class_type='comment' title='' comment='Comment' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='delay' title='To see it not open ' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='100' type='1' />
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='2' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline />
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='buf_count = 0' />
									</command>
									<command class_type='loop' title='Write buffer jus for the haeder space  Need to be bether' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='2' forvar='buf_count' exp='.header_size' >
										<flowline >
											<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='File_ESP32_SDMode1' macro='WriteByteToBuffer' >
												<argument exp='buf_count' />
												<argument exp='.wav_header[buf_count]' />
											</command>
										</flowline>
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='File_ESP32_SDMode1' macro='WriteFileSector' />
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='File_ESP32_SDMode1' macro='MoveToNextFileSector' >
										<argument exp='1' />
									</command>
								</flowline>
							</case>
							<case exp='3' >
								<flowline />
							</case>
							<case exp='4' >
								<flowline />
							</case>
						</command>
						<command class_type='comment' title='' comment='Comment' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='delay' title='To see it not open ' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='100' type='1' />
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='File_ESP32_SDMode1' macro='CloseFile' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Autoversion' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='send_strg_auto' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='100' />
						</local>
						<local name='ret_uint' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='ret_stgr' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='AutoVersionID1' macro='GetBuildNumber' >
							<return exp='.ret_uint' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.send_strg_auto = &quot;BuildNumb=&quot;' />
							<exp exp='.send_strg_auto = .send_strg_auto + ToString$(.ret_uint)' />
							<exp exp='.send_strg_auto = .send_strg_auto + &quot;\r\n&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='AutoVersionID1' macro='GetDate' >
							<return exp='.ret_stgr' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.send_strg_auto = .send_strg_auto + &quot;BuildDate=&quot;' />
							<exp exp='.send_strg_auto = .send_strg_auto + .ret_stgr' />
							<exp exp='.send_strg_auto = .send_strg_auto + &quot;\r\n&quot;' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='AutoVersionID1' macro='GetTime' >
							<return exp='.ret_stgr' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.send_strg_auto = .send_strg_auto + &quot;BuildTime=&quot;' />
							<exp exp='.send_strg_auto = .send_strg_auto + .ret_stgr' />
							<exp exp='.send_strg_auto = .send_strg_auto + &quot;\r\n&quot;' />
							<exp exp='' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.send_strg_auto = .send_strg_auto + &quot;This Text&quot;' />
							<exp exp='.send_strg_auto = .send_strg_auto + &quot;\r\n&quot;' />
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='BT_USB' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Bluetooth_SPP_ESP32' macro='SendString' >
										<argument exp='.send_strg_auto' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='UART1' macro='SendString' >
										<argument exp='.send_strg_auto' />
									</command>
								</flowline>
							</case>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='sd_card_init' description='Init the sd-card and set green led or flash red Led' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='parameter not needed' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='ret_byte = 1' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='power_enable' macro='TurnOn' />
						<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='1' exp='ret_byte = 0' >
							<flowline >
								<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='File_ESP32_SDMode1' macro='Initialise' >
									<return exp='ret_byte' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='ret_byte = 0' swap='0' >
									<flowline >
										<command class_type='call' title='green' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='SetLEDColour' >
											<argument exp='0' />
											<argument exp='0' />
											<argument exp='50' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='Refresh' />
									</flowline>
									<flowline >
										<command class_type='call' title='red' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='SetLEDColour' >
											<argument exp='0' />
											<argument exp='255' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='Refresh' />
										<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='200' type='1' />
										<command class_type='call' title='green' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='SetLEDColour' >
											<argument exp='0' />
											<argument exp='0' />
											<argument exp='25' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='Refresh' />
										<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='200' type='1' />
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='lsm6_read_AC' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='max_channel' type='u8' description='1=1channel  2=2channel' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='data_B' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<local name='f' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0' />
						<local name='data_A' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<local name='count_AG' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='count_G' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='reg_addr' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<command class_type='comment' title='' comment='Comment' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='comment' title='' comment='Mod for accellere only' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.reg_addr[0] = 0x28' />
						</command>
						<command class_type='call' title='Bot' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
							<argument exp='0x6B' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Write' >
							<argument exp='.reg_addr' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Read' >
							<argument exp='.data_B' />
							<argument exp='12' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
						<command class_type='calculation' title='Calculation for B' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='data_G[0] = (.data_B[1] &lt;&lt; 8) | .data_B[0]' />
							<exp exp='data_G[1] = (.data_B[3] &lt;&lt; 8) | .data_B[2]' />
							<exp exp='data_G[2] = (.data_B[5] &lt;&lt; 8) | .data_B[4]' />
							<exp exp='' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='Buffer_A' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='AG_XYZ_A[count_data] = data_G[0]' />
									<exp exp='count_data = count_data + 1' />
									<exp exp='AG_XYZ_A[count_data] = data_G[1]' />
									<exp exp='count_data = count_data + 1' />
									<exp exp='AG_XYZ_A[count_data] = data_G[2]' />
									<exp exp='count_data = count_data + 1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='AG_XYZ_B[count_data] = data_G[0]' />
									<exp exp='count_data = count_data + 1' />
									<exp exp='AG_XYZ_B[count_data] = data_G[1]' />
									<exp exp='count_data = count_data + 1' />
									<exp exp='AG_XYZ_B[count_data] = data_G[2]' />
									<exp exp='count_data = count_data + 1' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='timer1_irq' description='set to get a new sample' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' disable='1' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='rec_sample = 1' swap='0' >
							<flowline >
								<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_Mono_blue' macro='TurnOn' />
							</flowline>
							<flowline >
								<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_Mono_blue' macro='TurnOff' />
							</flowline>
						</command>
						<command class_type='calculation' title='Set a variable to 1 for sample again' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='rec_sample = 1' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='pin = pin_state' />
							<exp exp='pin_state =  !pin_state' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Testpoint1' macro='SetState' >
							<argument exp='pin' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Init_IRQ_USB' description='Init IRQ if used' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='parameter not needed' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='interrupt' title='Interrupt' textarea='36,0,511,300' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' enable='1' name='RXINT0' call='USB_interrupt' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
							</settings>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ReadData' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='reg' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='buf' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='8192' />
						</param>
						<param name='length' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='reg_addr' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='1' />
						</local>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.length' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='.reg_addr[0] = .reg' />
								</command>
								<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
									<argument exp='sensor_addr' />
								</command>
								<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
									<argument exp='0x6A' />
								</command>
								<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Write' >
									<argument exp='.reg_addr' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Read' >
									<argument exp='.buf' />
									<argument exp='.length' />
								</command>
								<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='key3_int' description='IRQ from key' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='parameter not needed' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='key3 = 4' />
							<exp exp='count_down = count_down_set' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='keypressed_one_key' description='check just one  key and set the pressed value' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='parameter not needed' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' mode='1' port='4194304' mask='524288' exp='ret_byte' usechipref='0' />
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='ret_byte = 0' swap='0' >
							<flowline >
								<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_Mono_blue' macro='TurnOn' />
								<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='1' type='1' />
							</flowline>
							<flowline >
								<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_Mono_blue' macro='TurnOff' />
							</flowline>
						</command>
						<command class_type='comment' title='' comment='auf retbyte=0 gesetzt 2025_01_20' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='ret_byte = 0' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='key is pressed' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
								<command class_type='calculation' title='one key' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='keyset = 4' />
									<exp exp='' />
									<exp exp='' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='last_key = 0' swap='0' >
									<flowline >
										<command class_type='comment' title='' comment='key is pressed one time' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
										<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='keyset' >
											<case >
												<flowline />
											</case>
											<case exp='4' >
												<flowline >
													<command class_type='comment' title='' comment='dont sleep now' textarea='58,14,58,14' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
													<command class_type='calculation' title='Sleep timer reset' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
														<exp exp='count_down = count_down_set' />
													</command>
													<command class_type='switch' title='Sleep=1;wait=2;rec=3' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='status' >
														<case >
															<flowline />
														</case>
														<case exp='2' >
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
																	<exp exp='rec_on = 1' />
																</command>
															</flowline>
														</case>
														<case exp='3' >
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
																	<exp exp='rec_on = 0' />
																	<exp exp='' />
																</command>
															</flowline>
														</case>
													</command>
												</flowline>
											</case>
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='last_key = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='comment' title='' comment='key is pressed for long it goes to sleep' textarea='12,0,12,0' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='comment' title='' comment='key not pressed' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
								<command class_type='calculation' title='one key' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='keyset = 0' />
									<exp exp='' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='last_key = 0' />
								</command>
								<command class_type='calculation' title='one key' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='count_key_time = 0' />
									<exp exp='' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='keyset = 0' />
							<exp exp='key1 = 0' />
							<exp exp='key2 = 0' />
							<exp exp='key3 = 0' />
						</command>
						<command class_type='input' title='Input' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' mode='1' port='4194304' mask='524288' exp='ret_byte' usechipref='0' />
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='ret_byte = 0' swap='0' >
							<flowline >
								<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_Mono_blue' macro='TurnOn' />
								<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='1' type='1' />
							</flowline>
							<flowline >
								<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_Mono_blue' macro='TurnOff' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Send_Data' description='send data to USB or BT' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='parameter not needed' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='0' exp='send_enable &gt; 0' >
							<flowline >
								<command class_type='call' title='User Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='keypressed_one_key' />
								<command class_type='call' title='User Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='get_command_sw' />
								<command class_type='decision' title='Decision' disable='1' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='rec_sample = 1' swap='0' >
									<flowline >
										<command class_type='switch' title='Switch' textarea='36,25,36,25' disable='1' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='BT_USB' >
											<case >
												<flowline />
											</case>
											<case exp='1' >
												<flowline >
													<command class_type='comment' title='' comment='BT
Bluetooth' textarea='12,0,12,0' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
													<command class_type='decision' title='binary' disable='1' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='send_enable = 1' swap='0' >
														<flowline >
															<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Bluetooth_SPP_ESP32' macro='SendINTArray' >
																<argument exp='AG_XYZ' />
																<argument exp='24' />
																<argument exp='0' />
															</command>
														</flowline>
														<flowline />
													</command>
													<command class_type='decision' title='text' disable='1' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='send_enable = 2' swap='0' >
														<flowline >
															<command class_type='call' title='maybe bt can not send long string' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Bluetooth_SPP_ESP32' macro='SendString' >
																<argument exp='apend_strg' />
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
											</case>
											<case exp='2' >
												<flowline >
													<command class_type='comment' title='' comment='USB
USB-C' textarea='12,0,12,0' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
													<command class_type='decision' title='binary' disable='1' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='send_enable = 1' swap='0' >
														<flowline >
															<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='UART1' macro='SendINTArray' >
																<argument exp='AG_XYZ' />
																<argument exp='24' />
																<argument exp='0' />
															</command>
														</flowline>
														<flowline />
													</command>
													<command class_type='decision' title='text' disable='1' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='send_enable = 2' swap='0' >
														<flowline >
															<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='UART1' macro='SendString' >
																<argument exp='apend_strg' />
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
											</case>
										</command>
										<command class_type='calculation' title='Calculation' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='rec_sample = 0' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='lsm6_set_AC_GY' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='max_channel' type='u8' description='1= 1 channel, 2= 2 channel,' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='samplerate' type='u16' description='samplerate 15,30,60,120,240,480,960,1920,3840,7680 in Hz' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='register_value_8Bit' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='range_GY' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='buf' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<local name='range_AC' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='comment' title='' comment='2025_05_08' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='comment' title='' comment='Ctrl 1 0x10 GY Samplerate and high-performance mode
Ctrl 2 0x11 AC Samplerate and high-performance mode

Ctrl 6 0x15 GY Range and Filter   +-125dps
Ctrl 8 0x17 AC Range and Filter   +-2G' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='comment' title='' comment='Register access is select' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='comment' title='' comment='Set CTRL 1 + CTRL 2' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='switch' title='acceleometer and gyro , not in FIFO' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.samplerate' >
							<case >
								<flowline />
							</case>
							<case exp='15' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00000011' />
									</command>
								</flowline>
							</case>
							<case exp='30' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00000100' />
									</command>
								</flowline>
							</case>
							<case exp='60' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00000101' />
									</command>
									<command class_type='calculation' title='Calculation' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00000110' />
									</command>
								</flowline>
							</case>
							<case exp='120' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00000110' />
									</command>
									<command class_type='calculation' title='Calculation' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00000111' />
									</command>
								</flowline>
							</case>
							<case exp='240' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00000111' />
									</command>
									<command class_type='calculation' title='Calculation' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00001000' />
									</command>
								</flowline>
							</case>
							<case exp='480' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00001000' />
									</command>
									<command class_type='calculation' title='Calculation' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00001001' />
									</command>
								</flowline>
							</case>
							<case exp='960' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00001001' />
									</command>
									<command class_type='calculation' title='Calculation' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00001010' />
									</command>
								</flowline>
							</case>
							<case exp='1920' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00001010' />
									</command>
									<command class_type='calculation' title='Calculation' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00001011' />
									</command>
								</flowline>
							</case>
							<case exp='3840' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00001011' />
									</command>
									<command class_type='calculation' title='Calculation' disable='1' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00001100' />
									</command>
								</flowline>
							</case>
							<case exp='7680' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00001100' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='switch' title='acceleometer and gyro , not in FIFO' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.samplerate' >
							<case >
								<flowline />
							</case>
							<case exp='15' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00000011' />
									</command>
								</flowline>
							</case>
							<case exp='30' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00000100' />
									</command>
								</flowline>
							</case>
							<case exp='60' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00000101' />
									</command>
								</flowline>
							</case>
							<case exp='125' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00000110' />
									</command>
								</flowline>
							</case>
							<case exp='250' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00000111' />
									</command>
								</flowline>
							</case>
							<case exp='500' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00001000' />
									</command>
								</flowline>
							</case>
							<case exp='1000' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00001001' />
									</command>
								</flowline>
							</case>
							<case exp='2000' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00001010' />
									</command>
								</flowline>
							</case>
							<case exp='4000' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00001011' />
									</command>
								</flowline>
							</case>
							<case exp='8000' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00001100' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='comment' title='' comment='CTRL1 (0x10h)
Accelerometer control register 1 (R/W)' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.max_channel' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='.buf[0] = (0x10)' />
										<exp exp='.buf[1] = .register_value_8Bit' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
										<argument exp='sensor_addr' />
									</command>
									<command class_type='call' title='Bot' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
										<argument exp='0x6B' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Write' >
										<argument exp='.buf' />
										<argument exp='2' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='.buf[0] = (0x10)' />
										<exp exp='.buf[1] = .register_value_8Bit' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
										<argument exp='sensor_addr' />
									</command>
									<command class_type='call' title='Bot' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
										<argument exp='0x6A' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Write' >
										<argument exp='.buf' />
										<argument exp='2' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
									<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='1' type='1' />
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='.buf[0] = (0x10)' />
										<exp exp='.buf[1] = .register_value_8Bit' />
									</command>
									<command class_type='call' title='Component Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
										<argument exp='sensor_addr' />
									</command>
									<command class_type='call' title='Bot' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
										<argument exp='0x6B' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Write' >
										<argument exp='.buf' />
										<argument exp='2' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
								</flowline>
							</case>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='comment' title='' comment='CTRL2 (0x11)
GY control register (R/W)' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.max_channel' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='.buf[0] = (0x11)' />
										<exp exp='.buf[1] = .register_value_8Bit' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
										<argument exp='sensor_addr' />
									</command>
									<command class_type='call' title='Bot' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
										<argument exp='0x6B' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Write' >
										<argument exp='.buf' />
										<argument exp='2' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='.buf[0] = (0x11)' />
										<exp exp='.buf[1] = .register_value_8Bit' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
										<argument exp='sensor_addr' />
									</command>
									<command class_type='call' title='Bot' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
										<argument exp='0x6A' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Write' >
										<argument exp='.buf' />
										<argument exp='2' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
									<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='1' type='1' />
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='.buf[0] = (0x11)' />
										<exp exp='.buf[1] = .register_value_8Bit' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
										<argument exp='sensor_addr' />
									</command>
									<command class_type='call' title='Bot' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
										<argument exp='0x6B' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Write' >
										<argument exp='.buf' />
										<argument exp='2' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
								</flowline>
							</case>
						</command>
						<command class_type='comment' title='' comment='Set CTRL 6 (0x15)' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.range_GY = 125' />
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.range_GY' >
							<case >
								<flowline />
							</case>
							<case exp='125' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00000000' />
									</command>
								</flowline>
							</case>
							<case exp='250' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00000001' />
									</command>
								</flowline>
							</case>
							<case exp='500' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00000010' />
									</command>
								</flowline>
							</case>
							<case exp='1000' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00000011' />
									</command>
								</flowline>
							</case>
							<case exp='2000' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00000100' />
									</command>
								</flowline>
							</case>
							<case exp='4000' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00001100' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.max_channel' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='.buf[0] = (0x15)' />
										<exp exp='.buf[1] = .register_value_8Bit' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
										<argument exp='sensor_addr' />
									</command>
									<command class_type='call' title='Bot' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
										<argument exp='0x6B' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Write' >
										<argument exp='.buf' />
										<argument exp='2' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='.buf[0] = (0x15)' />
										<exp exp='.buf[1] = .register_value_8Bit' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
										<argument exp='sensor_addr' />
									</command>
									<command class_type='call' title='Bot' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
										<argument exp='0x6A' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Write' >
										<argument exp='.buf' />
										<argument exp='2' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
									<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='1' type='1' />
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='.buf[0] = (0x15)' />
										<exp exp='.buf[1] = .register_value_8Bit' />
									</command>
									<command class_type='call' title='Bot' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
										<argument exp='0x6B' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Write' >
										<argument exp='.buf' />
										<argument exp='2' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
								</flowline>
							</case>
						</command>
						<command class_type='comment' title='' comment='Set CTRL 8 (0x17)' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='calculation' title='Range in +-G' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.range_AC = 2' />
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.range_GY' >
							<case >
								<flowline />
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00000000' />
									</command>
								</flowline>
							</case>
							<case exp='4' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00000001' />
									</command>
								</flowline>
							</case>
							<case exp='8' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00000010' />
									</command>
								</flowline>
							</case>
							<case exp='16' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='//.register_value_it = 0b0000ssss' />
										<exp exp='.register_value_8Bit = 0b00000011' />
									</command>
								</flowline>
							</case>
							<case exp='100' >
								<flowline />
							</case>
							<case exp='200' >
								<flowline />
							</case>
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.max_channel' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='.buf[0] = (0x17)' />
										<exp exp='.buf[1] = .register_value_8Bit' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
										<argument exp='sensor_addr' />
									</command>
									<command class_type='call' title='Bot' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
										<argument exp='0x6B' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Write' >
										<argument exp='.buf' />
										<argument exp='2' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='.buf[0] = (0x17)' />
										<exp exp='.buf[1] = .register_value_8Bit' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
										<argument exp='sensor_addr' />
									</command>
									<command class_type='call' title='Bot' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
										<argument exp='0x6A' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Write' >
										<argument exp='.buf' />
										<argument exp='2' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
									<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='1' type='1' />
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='.buf[0] = (0x17)' />
										<exp exp='.buf[1] = .register_value_8Bit' />
									</command>
									<command class_type='call' title='Bot' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Initialise' >
										<argument exp='0x6B' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Write' >
										<argument exp='.buf' />
										<argument exp='2' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Transaction_Uninit' />
								</flowline>
							</case>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='Main part' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='send' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='Q1' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='reg_addr' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<local name='dat_buf' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<command class_type='comment' title='' comment='evetuell noch die SD card besser init bei zweiten record' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='calculation' title='IMU_Number' comment='Macro IMU_test set variable termo_ok to 0 if no IMU connected
If always IMU then activate last line in macro IMU_test this
before you complie

For IMU  set LSM9DS 1+2 set by hand to 400khz
For Temp set LSM9DS 1+2 set by hand to 100khz' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='Max_channel = 2' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='Sample_buffer_size = 1000' />
							<exp exp='write_buffer_size = Sample_buffer_size * 6 * Max_channel // samples to store in write_buffer_size' />
						</command>
						<command class_type='calculation' title='Use the same as in the recorder' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='Line_to_send = 1' />
							<exp exp='send_buffer_size = Line_to_send * 6 //Single x1y1z1 x2y2z2' />
							<exp exp='send_endline = send_buffer_size + 1' />
							<exp exp='data_send_buffer[send_endline] = SRSN16_MSB0' />
							<exp exp='data_G[send_endline] = SRSN16_MSB0' />
						</command>
						<command class_type='native' title='Code' disable='1' ccode='xTaskCreate(FCM_Write_SD, &quot;Write_SD&quot;, 10240, NULL, 1, 0);

' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' language='C' />
						<command class_type='comment' title='' comment='960 knapp' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='calculation' title='samplerate 15,30,60,120,240,480,960,1920,3840,7680 in Hz' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='//samplerate = 120 // task problem' />
							<exp exp='samplerate = 240 //  ok' />
							<exp exp='samplerate = 480' />
							<exp exp='//samplerate = 960' />
							<exp exp='//samplerate = 1920' />
							<exp exp='//samplerate = 3840' />
							<exp exp='//samplerate = 7680' />
						</command>
						<command class_type='calculation' title='Wait for sleep 60Sec- set to 100000' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='//count_down = 100000 // 60 Sec' />
							<exp exp='count_down = 1000' />
							<exp exp='' />
							<exp exp='' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='100' type='1' />
						<command class_type='call' title='turn on hardware' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='power_enable' macro='TurnOn' />
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='I2C_Master1' macro='Initialise' />
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='100' type='1' />
						<command class_type='call' title='Need to be here, Init WS2811, is not working if in Macro ' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='Initialise' />
						<command class_type='call' title='reset LED' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='SetLEDColour' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='Refresh' />
						<command class_type='call' title='Init all components' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Init' />
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='100' type='1' />
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='100' type='1' />
						<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='User Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='SetupSensor' />
								<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='10' type='1' />
							</flowline>
						</command>
						<command class_type='native' title='Pinned to core working' disable='1' ccode='xTaskCreatePinnedToCore(FCM_Write_SD, &quot;Write_SD&quot;, 10240, NULL, 10, 0, 1);

' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' language='C' />
						<command class_type='call' title='User Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='set_array' />
						<command class_type='call' title='User Macro' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='IMU_test_lsm6' />
						<command class_type='call' title='User Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='lsm6_set_AC_GY' >
							<argument exp='Max_channel' />
							<argument exp='samplerate' />
						</command>
						<command class_type='comment' title='' comment='SD_card_init here' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='call' title='Set led to green if sd-card ok-flash red if not' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='sd_card_init' />
						<command class_type='call' title='Check recordings on sd-card' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='file_last_file_found' >
							<return exp='file_nr' />
							<argument exp='filename_prefix' />
							<argument exp='filename_extension' />
						</command>
						<command class_type='calculation' title='status=stat_sleep      status=stat_wait     status=stat_rec' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='status = stat_wait' />
						</command>
						<command class_type='loop' title='After sleep it&apos;s need time to wakeup' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='2' exp='5' >
							<flowline >
								<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='SetLEDColour' >
									<argument exp='0' />
									<argument exp='100' />
									<argument exp='100' />
									<argument exp='100' />
								</command>
								<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='Refresh' />
								<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='200' type='1' />
								<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='SetLEDColour' >
									<argument exp='0' />
									<argument exp='0' />
									<argument exp='0' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='LED_WS2811' macro='Refresh' />
								<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='200' type='1' />
							</flowline>
						</command>
						<command class_type='call' title='USB IRQ' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Init_IRQ_USB' />
						<command class_type='call' title='1 or 2 channel is the same!' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Init_IRQ_sampelrate' >
							<argument exp='Max_channel' />
							<argument exp='samplerate' />
						</command>
						<command class_type='calculation' title='Set sleeptime' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='count_blue_led = 0' />
							<exp exp='count_display_main = 0' />
						</command>
						<command class_type='loop' title='Loop always run' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='0' exp='1' >
							<flowline >
								<command class_type='delay' title='new 2024/ 08/ 30 10mSec b4 100mSec' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='10' type='1' />
								<command class_type='call' title='Test if a command fro USB or BT is received' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='get_command_sw' />
								<command class_type='call' title='Test if the key is pressed' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='keypressed_one_key' />
								<command class_type='decision' title='send data' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='send_enable &gt; 0' swap='0' >
									<flowline >
										<command class_type='call' title='Send to USB OR BT Data' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Send_Data' />
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='rec data' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='rec_on = 1' swap='0' >
									<flowline >
										<command class_type='call' title='Record Data to sc-card' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Rec_esp32' />
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='check BT connect' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='count_blue_led &gt;= 50' swap='0' >
									<flowline >
										<command class_type='call' title='User Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='BT_connect_test' />
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='count_down = count_down - 1' />
								</command>
								<command class_type='decision' title='Sleep (standby Recorder)' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='count_down = 0' swap='0' >
									<flowline >
										<command class_type='call' title='Set the recorder to sleep mode to save power in standby' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Sleep' />
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='count_down = count_down_set' />
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='Maybe not used' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='count_down &gt; count_down_set' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='count_down = count_down_set' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='ce086f9b-c365-4471-b6e4-1760a53a7bfb' vmin='0' vmaj='1' codename='LED_Mono_blue' panelId='0' x='247' y='-35' z='1' xsz='82.7586' ysz='31.8182' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='FlowcodeType' data='0' />
					<value target='Type' data='002' />
					<value target='Pin' data='$PORTA.25' />
					<value target='ConnectionLabels' data='1' />
					<value target='ShowPinValue' data='0' />
					<value target='ComponentLabel' data='000' />
					<value target='GdiText2::sText' data='LED_Mono_blue' />
					<value target='Polarity' data='001' />
					<value target='Enabled' data='1' />
					<value target='Product' data='ESP' />
					<value target='AutoColourOff' data='1' />
					<value target='OnColour' data='65408' />
					<value target='OffColour' data='21802' />
					<value target='GdiShape1::colFillGradient' data='16777215' />
					<value target='GdiShape1::nGradientStyle' data='  0' />
					<value target='GdiShape1::fThickness' data='3.000000' />
					<value target='GdiShape1::colOutline' data='0' />
					<value target='GdiShape1::colOutlineGradient' data='0' />
					<value target='GdiShape1::nOutlineStyle' data='0' />
					<value target='GdiImage1::nImageIdx' data='  1' />
					<value target='GdiImage1::sFilename' data='' />
					<value target='GdiImage2::nImageIdx' data='  0' />
					<value target='GdiImage2::sFilename' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='a61211f1-3718-4d37-b4a4-c6193646ccfd' vmin='9' vmaj='9' codename='File_ESP32_SDMode1' panelId='0' x='120.244' y='-415.131' z='2' xsz='25.1778' ysz='25.1392' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='Frequency' data='200' />
					<value target='FileCount' data='4' />
					<value target='SDMode' data='004' />
					<value target='BufferSize' data='512' />
					<value target='BufferSize_1' data='32' />
					<value target='CLK_PIN' data='$PORTA.14' />
					<value target='CMD_PIN' data='$PORTA.15' />
					<value target='D0_PIN' data='$PORTA.2' />
					<value target='D1_PIN' data='$PORTA.4' />
					<value target='D2_PIN' data='$PORTA.12' />
					<value target='D3_PIN' data='$PORTA.13' />
					<value target='Remap' data='0' />
					<value target='SimRootFolder' data='$(srcdir)' />
					<value target='IsSim' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c73616d1-7ad0-45d9-aada-69ccfa4c5efc' vmin='0' vmaj='3' codename='UART1' panelId='0' x='406.495' y='-417' z='3' xsz='25.1778' ysz='25.9127' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='1' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='cal_uart::CHANNEL' data='001' />
					<value target='cal_uart::BAUD_LIST' data='009' />
					<value target='cal_uart::BAUD' data='115200' />
					<value target='cal_uart::DBITS' data='008' />
					<value target='cal_uart::RETURN' data='001' />
					<value target='cal_uart::ECHO' data='000' />
					<value target='cal_uart::UseTX' data='1' />
					<value target='cal_uart::TX' data='$PORTA.1' />
					<value target='cal_uart::OutputPins' data='023' />
					<value target='cal_uart::TXAlt' data='0' />
					<value target='cal_uart::UseRX' data='1' />
					<value target='cal_uart::RX' data='$PORTA.3' />
					<value target='cal_uart::InputPins' data='028' />
					<value target='cal_uart::RXAlt' data='0' />
					<value target='cal_uart::FLOWEN' data='000' />
					<value target='cal_uart::RTS' data='$PORTB.2' />
					<value target='cal_uart::CTS' data='$PORTB.1' />
					<value target='label' data='UART' />
					<value target='cal_uart::ScopeTraces' data='0' />
					<value target='cal_uart::ConsoleData' data='1' />
					<value target='cal_uart::ConsoleFormat' data='000' />
					<value target='cal_uart::ConsoleColumns' data='64' />
					<value target='cal_uart::DataSource' data='000' />
					<value target='cal_uart::com_port' data='000' />
					<value target='cal_uart::Injector' data='000' />
					<value target='cal_uart::APIUseDDR' data='' />
					<value target='cal_uart::APIDDRPin' data='' />
					<value target='cal_uart::APIDDRRXState' data='' />
					<value target='cal_uart::APIUseFC' data='' />
					<value target='cal_uart::APICTSPin' data='' />
					<value target='cal_uart::APIRTSPin' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='d977c3ef-c7dc-4683-a1be-76e17e6ba12b' vmin='5' vmaj='1' codename='LED_WS2811' panelId='-1' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='0' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='LED_Controller' data='001' />
					<value target='DataOrder' data='1' />
					<value target='Reset_Time' data='50.000000' />
					<value target='T0H' data='0.350000' />
					<value target='T0L' data='0.800000' />
					<value target='T1H' data='0.700000' />
					<value target='T1L' data='0.600000' />
					<value target='T0HNops' data='78' />
					<value target='T0LNops' data='192' />
					<value target='T1HNops' data='168' />
					<value target='T1LNops' data='144' />
					<value target='DeviceFamily' data='ESP' />
					<value target='InstRate' data='180000000' />
					<value target='Direct' data='0' />
					<value target='T0HN' data='350.000000' />
					<value target='T0LN' data='800.000000' />
					<value target='T1HN' data='700.000000' />
					<value target='T1LN' data='600.000000' />
					<value target='LED_Arrangement' data='000' />
					<value target='LED_Count' data='2' />
					<value target='sequence' data='000' />
					<value target='LED_Cols' data='1' />
					<value target='x_spacing' data='10.000000' />
					<value target='LED_Rows' data='1' />
					<value target='y_spacing' data='10.000000' />
					<value target='LED_Layers' data='1' />
					<value target='z_spacing' data='10.000000' />
					<value target='FlipX' data='0' />
					<value target='FlipY' data='' />
					<value target='FlipZ' data='0' />
					<value target='MOSI' data='$PORTA.26' />
					<value target='InvertData' data='0' />
					<value target='Instance' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='ce086f9b-c365-4471-b6e4-1760a53a7bfb' vmin='0' vmaj='1' codename='power_enable' panelId='0' x='92' y='-29.5' z='4' xsz='72.4138' ysz='26.8182' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='FlowcodeType' data='0' />
					<value target='Type' data='002' />
					<value target='Pin' data='$PORTB.0' />
					<value target='ConnectionLabels' data='1' />
					<value target='ShowPinValue' data='0' />
					<value target='ComponentLabel' data='000' />
					<value target='GdiText2::sText' data='power_enable' />
					<value target='Polarity' data='001' />
					<value target='Enabled' data='1' />
					<value target='Product' data='ESP' />
					<value target='AutoColourOff' data='1' />
					<value target='OnColour' data='65408' />
					<value target='OffColour' data='21802' />
					<value target='GdiShape1::colFillGradient' data='16777215' />
					<value target='GdiShape1::nGradientStyle' data='  0' />
					<value target='GdiShape1::fThickness' data='3.000000' />
					<value target='GdiShape1::colOutline' data='0' />
					<value target='GdiShape1::colOutlineGradient' data='0' />
					<value target='GdiShape1::nOutlineStyle' data='0' />
					<value target='GdiImage1::nImageIdx' data='  1' />
					<value target='GdiImage1::sFilename' data='' />
					<value target='GdiImage2::nImageIdx' data='  0' />
					<value target='GdiImage2::sFilename' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='GdiText' codename='Text3' panelId='0' x='455' y='-315' z='5' xsz='96.875' ysz='18.75' zsz='0' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='8' comp2dType='46' >
				<resources />
				<properties />
				<values >
					<value target='sText' data='S1/B7/io39     S2/B4/io36     S3/B3/io35' />
					<value target='bWordWrap' data='0' />
					<value target='nHorizontalAlignment' data='  0' />
					<value target='nVerticalAlignment' data='2' />
					<value target='nAngle' data='0' />
					<value target='fntFamily' data='Calibri' />
					<value target='bFixedScale' data='0' />
					<value target='dScale' data='1.00000' />
					<value target='bScaleWidth' data='0' />
					<value target='iFontSize' data='12' />
					<value target='bBold' data='0' />
					<value target='bItalic' data='0' />
					<value target='bUnderline' data='0' />
					<value target='bStrikethrough' data='0' />
					<value target='colTextColour' data='0' />
					<value target='colTextGradient' data='9868950' />
					<value target='nGradient' data='0' />
					<value target='nTextOpacity' data='1.0' />
					<value target='colBackgroundColour' data='-1' />
					<value target='colBackgroundGradient' data='-1' />
					<value target='nBackgroundGradient' data='0' />
					<value target='nBackgroundOpacity' data='1.0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='8be2ce64-4860-468a-aa8a-eac443274da3' vmin='0' vmaj='1' codename='Bluetooth_SPP_ESP32' panelId='0' x='256.5' y='-415' z='6' xsz='25.18' ysz='25.1392' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='DevName' data='IMU-Brux_Recorder' />
					<value target='ReceiveBuffer' data='100' />
					<value target='DataRxInt' data='1' />
					<value target='DataRxMacro' data='BT_interrupt' />
					<value target='Verbose' data='000' />
					<value target='COMPort1::COM_port' data='025' />
					<value target='COMPort1::Refresh' data='0' />
					<value target='COMPort1::baud_rate' data='9600' />
					<value target='COMPort1::ConsoleData' data='1' />
					<value target='FirstRun' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='ce086f9b-c365-4471-b6e4-1760a53a7bfb' vmin='0' vmaj='1' codename='Testpoint1' panelId='0' x='91.5' y='-179' z='7' xsz='73.2759' ysz='27.2727' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='FlowcodeType' data='0' />
					<value target='Type' data='002' />
					<value target='Pin' data='$PORTB.1' />
					<value target='ConnectionLabels' data='1' />
					<value target='ShowPinValue' data='0' />
					<value target='ComponentLabel' data='000' />
					<value target='GdiText2::sText' data='Testpoint1' />
					<value target='Polarity' data='001' />
					<value target='Enabled' data='1' />
					<value target='Product' data='ESP' />
					<value target='AutoColourOff' data='1' />
					<value target='OnColour' data='65408' />
					<value target='OffColour' data='21802' />
					<value target='GdiShape1::colFillGradient' data='16777215' />
					<value target='GdiShape1::nGradientStyle' data='  0' />
					<value target='GdiShape1::fThickness' data='3.000000' />
					<value target='GdiShape1::colOutline' data='0' />
					<value target='GdiShape1::colOutlineGradient' data='0' />
					<value target='GdiShape1::nOutlineStyle' data='0' />
					<value target='GdiImage1::nImageIdx' data='  1' />
					<value target='GdiImage1::sFilename' data='' />
					<value target='GdiImage2::nImageIdx' data='  0' />
					<value target='GdiImage2::sFilename' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='ce086f9b-c365-4471-b6e4-1760a53a7bfb' vmin='0' vmaj='1' codename='Testpoint4' panelId='0' x='92' y='-279' z='8' xsz='74.1379' ysz='27.2727' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='FlowcodeType' data='0' />
					<value target='Type' data='002' />
					<value target='Pin' data='$PORTA.18' />
					<value target='ConnectionLabels' data='1' />
					<value target='ShowPinValue' data='0' />
					<value target='ComponentLabel' data='000' />
					<value target='GdiText2::sText' data='Testpoint4' />
					<value target='Polarity' data='001' />
					<value target='Enabled' data='1' />
					<value target='Product' data='ESP' />
					<value target='AutoColourOff' data='1' />
					<value target='OnColour' data='65408' />
					<value target='OffColour' data='21802' />
					<value target='GdiShape1::colFillGradient' data='16777215' />
					<value target='GdiShape1::nGradientStyle' data='  0' />
					<value target='GdiShape1::fThickness' data='3.000000' />
					<value target='GdiShape1::colOutline' data='0' />
					<value target='GdiShape1::colOutlineGradient' data='0' />
					<value target='GdiShape1::nOutlineStyle' data='0' />
					<value target='GdiImage1::nImageIdx' data='  1' />
					<value target='GdiImage1::sFilename' data='' />
					<value target='GdiImage2::nImageIdx' data='  0' />
					<value target='GdiImage2::sFilename' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='GdiText' codename='Text4' panelId='0' x='210' y='-180' z='9' xsz='37.5' ysz='37.5' zsz='0' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='8' comp2dType='46' >
				<resources />
				<properties />
				<values >
					<value target='sText' data='Testpoint1
33' />
					<value target='bWordWrap' data='0' />
					<value target='nHorizontalAlignment' data='  0' />
					<value target='nVerticalAlignment' data='  0' />
					<value target='nAngle' data='0' />
					<value target='fntFamily' data='Calibri' />
					<value target='bFixedScale' data='0' />
					<value target='dScale' data='1.00000' />
					<value target='bScaleWidth' data='0' />
					<value target='iFontSize' data='12' />
					<value target='bBold' data='0' />
					<value target='bItalic' data='0' />
					<value target='bUnderline' data='0' />
					<value target='bStrikethrough' data='0' />
					<value target='colTextColour' data='0' />
					<value target='colTextGradient' data='9868950' />
					<value target='nGradient' data='0' />
					<value target='nTextOpacity' data='1.0' />
					<value target='colBackgroundColour' data='-1' />
					<value target='colBackgroundGradient' data='-1' />
					<value target='nBackgroundGradient' data='0' />
					<value target='nBackgroundOpacity' data='1.0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='GdiText' codename='Text7' panelId='0' x='210' y='-280' z='10' xsz='37.5' ysz='37.5' zsz='0' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='8' comp2dType='46' >
				<resources />
				<properties />
				<values >
					<value target='sText' data='Testpoint4
18
sck' />
					<value target='bWordWrap' data='0' />
					<value target='nHorizontalAlignment' data='  0' />
					<value target='nVerticalAlignment' data='  0' />
					<value target='nAngle' data='0' />
					<value target='fntFamily' data='Calibri' />
					<value target='bFixedScale' data='0' />
					<value target='dScale' data='1.00000' />
					<value target='bScaleWidth' data='0' />
					<value target='iFontSize' data='12' />
					<value target='bBold' data='0' />
					<value target='bItalic' data='0' />
					<value target='bUnderline' data='0' />
					<value target='bStrikethrough' data='0' />
					<value target='colTextColour' data='0' />
					<value target='colTextGradient' data='9868950' />
					<value target='nGradient' data='0' />
					<value target='nTextOpacity' data='1.0' />
					<value target='colBackgroundColour' data='-1' />
					<value target='colBackgroundGradient' data='-1' />
					<value target='nBackgroundGradient' data='0' />
					<value target='nBackgroundOpacity' data='1.0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='GdiText' codename='Text10' panelId='0' x='300' y='-215' z='11' xsz='31.25' ysz='18.75' zsz='0' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='8' comp2dType='46' >
				<resources />
				<properties />
				<values >
					<value target='sText' data='S5/A19/io19' />
					<value target='bWordWrap' data='0' />
					<value target='nHorizontalAlignment' data='2' />
					<value target='nVerticalAlignment' data='2' />
					<value target='nAngle' data='0' />
					<value target='fntFamily' data='Calibri' />
					<value target='bFixedScale' data='0' />
					<value target='dScale' data='1.00000' />
					<value target='bScaleWidth' data='0' />
					<value target='iFontSize' data='12' />
					<value target='bBold' data='0' />
					<value target='bItalic' data='0' />
					<value target='bUnderline' data='0' />
					<value target='bStrikethrough' data='0' />
					<value target='colTextColour' data='4325631' />
					<value target='colTextGradient' data='9868950' />
					<value target='nGradient' data='0' />
					<value target='nTextOpacity' data='1.0' />
					<value target='colBackgroundColour' data='-1' />
					<value target='colBackgroundGradient' data='-1' />
					<value target='nBackgroundGradient' data='0' />
					<value target='nBackgroundOpacity' data='1.0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='GdiShape' codename='Shape1' panelId='0' x='325' y='-175' z='0' xsz='9.375' ysz='9.375' zsz='0' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='8' comp2dType='46' >
				<resources />
				<properties />
				<values >
					<value target='nType' data=' 12' />
					<value target='iSubStyle' data='0' />
					<value target='iRounding' data='25' />
					<value target='colFill' data='4325631' />
					<value target='colFillGradient' data='16777215' />
					<value target='nGradientStyle' data='  8' />
					<value target='nFillOpacity' data='0.4' />
					<value target='nStyle' data='0' />
					<value target='bFixedScale' data='0' />
					<value target='fThickness' data='1.00000' />
					<value target='iOutlineSize' data='1' />
					<value target='colOutline' data='255' />
					<value target='colOutlineGradient' data='0' />
					<value target='nOutlineStyle' data='0' />
					<value target='nOutlineOpacity' data='1.0' />
					<value target='bTooltipEnable' data='0' />
					<value target='sTooltipText' data='' />
					<value target='sTooltipDesc' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='GdiText' codename='Text5' panelId='0' x='425' y='-180' z='12' xsz='46.875' ysz='37.5' zsz='0' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='8' comp2dType='46' >
				<resources />
				<properties />
				<values >
					<value target='sText' data='Single key
On/ Rec /Stop
Active high depounce 0!!!' />
					<value target='bWordWrap' data='0' />
					<value target='nHorizontalAlignment' data='  0' />
					<value target='nVerticalAlignment' data='  0' />
					<value target='nAngle' data='0' />
					<value target='fntFamily' data='Calibri' />
					<value target='bFixedScale' data='0' />
					<value target='dScale' data='1.00000' />
					<value target='bScaleWidth' data='0' />
					<value target='iFontSize' data='12' />
					<value target='bBold' data='0' />
					<value target='bItalic' data='0' />
					<value target='bUnderline' data='0' />
					<value target='bStrikethrough' data='0' />
					<value target='colTextColour' data='0' />
					<value target='colTextGradient' data='9868950' />
					<value target='nGradient' data='0' />
					<value target='nTextOpacity' data='1.0' />
					<value target='colBackgroundColour' data='-1' />
					<value target='colBackgroundGradient' data='-1' />
					<value target='nBackgroundGradient' data='0' />
					<value target='nBackgroundOpacity' data='1.0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label1' panelId='-1' x='0' y='10' z='-2.298' xsz='8' ysz='8' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='0' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='0' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='Multi-color LED' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='1911d96c-78dd-414a-b23c-6691fb19f63f' vmin='2' vmaj='1' codename='AutoVersionID1' panelId='0' x='105.5' y='-556' z='13' xsz='25.18' ysz='25' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='BuildNumber' data='847' />
					<value target='DateDivider' data='/' />
					<value target='TimeDivider' data=':' />
					<value target='DateFormat' data='000' />
					<value target='LastBuildDate' data='09/05/25' />
					<value target='LastBuildTime' data='15:57:06' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7160ceaf-dac1-4049-a984-98ba4ab83790' vmin='1' vmaj='1' codename='LSM6' panelId='-1' x='0' y='0' z='0' xsz='25' ysz='25' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='-1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='GyroRange' data='000' />
					<value target='AccelRange' data='000' />
					<value target='DeviceAddress' data='106' />
					<value target='cal_i2c1::CHANNEL' data='001' />
					<value target='cal_i2c1::SDA' data='$PORTA.1' />
					<value target='cal_i2c1::SDAPins' data='001' />
					<value target='cal_i2c1::SCL' data='$PORTA.2' />
					<value target='cal_i2c1::SCLPins' data='002' />
					<value target='cal_i2c1::BAUD_LIST' data='001' />
					<value target='cal_i2c1::BAUD' data='100000' />
					<value target='cal_i2c1::StopDel' data='0' />
					<value target='SimulationGUI' data='000' />
					<value target='cal_i2c1::ScopeTraces' data='1' />
					<value target='cal_i2c1::ConsoleData' data='1' />
					<value target='cal_i2c1::Injector' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7160ceaf-dac1-4049-a984-98ba4ab83790' vmin='1' vmaj='1' codename='LSM6' panelId='-1' x='0' y='0' z='0' xsz='25' ysz='25' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='-1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='GyroRange' data='000' />
					<value target='AccelRange' data='000' />
					<value target='DeviceAddress' data='106' />
					<value target='cal_i2c1::CHANNEL' data='001' />
					<value target='cal_i2c1::SDA' data='$PORTA.1' />
					<value target='cal_i2c1::SDAPins' data='001' />
					<value target='cal_i2c1::SCL' data='$PORTA.2' />
					<value target='cal_i2c1::SCLPins' data='002' />
					<value target='cal_i2c1::BAUD_LIST' data='001' />
					<value target='cal_i2c1::BAUD' data='100000' />
					<value target='cal_i2c1::StopDel' data='0' />
					<value target='SimulationGUI' data='000' />
					<value target='cal_i2c1::ScopeTraces' data='1' />
					<value target='cal_i2c1::ConsoleData' data='1' />
					<value target='cal_i2c1::Injector' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='d5f0360d-ba69-4cc4-af4a-c2621fd2d77d' vmin='0' vmaj='1' codename='CellGauge1' panelId='0' x='669' y='-184.5' z='14' xsz='18.2801' ysz='25' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='CellCount' data='000' />
					<value target='VoltagePerBit' data='0.001250' />
					<value target='AlertThreshold' data='031' />
					<value target='I2C_Master1::cal_i2c::CHANNEL' data='001' />
					<value target='I2C_Master1::cal_i2c::BAUD_LIST' data='003' />
					<value target='I2C_Master1::cal_i2c::BAUD' data='1000000' />
					<value target='I2C_Master1::cal_i2c::SDA' data='$PORTA.21' />
					<value target='I2C_Master1::cal_i2c::SDAPins' data='021' />
					<value target='I2C_Master1::cal_i2c::SCL' data='$PORTA.22' />
					<value target='I2C_Master1::cal_i2c::SCLPins' data='022' />
					<value target='SimComms' data='0' />
					<value target='I2C_Master1::cal_i2c::ScopeTraces' data='0' />
					<value target='I2C_Master1::cal_i2c::ConsoleData' data='1' />
					<value target='I2C_Master1::cal_i2c::Injector' data='001' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='24219805-113d-4b12-b6bd-e1b0b0c33981' vmin='4' vmaj='1' codename='I2C_Master1' panelId='0' x='611.538' y='-414' z='15' xsz='25.1778' ysz='25.1392' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='cal_i2c::CHANNEL' data='001' />
					<value target='cal_i2c::BAUD_LIST' data='003' />
					<value target='cal_i2c::BAUD' data='1000000' />
					<value target='cal_i2c::StopDel' data='0' />
					<value target='cal_i2c::SRC' data='000' />
					<value target='cal_i2c::SMB' data='000' />
					<value target='cal_i2c::ClockStretching' data='1' />
					<value target='cal_i2c::SDA' data='$PORTA.21' />
					<value target='cal_i2c::SDAPins' data='021' />
					<value target='cal_i2c::SCL' data='$PORTA.22' />
					<value target='cal_i2c::SCLPins' data='022' />
					<value target='label' data='I2C Master' />
					<value target='cal_i2c::ScopeTraces' data='0' />
					<value target='cal_i2c::ConsoleData' data='1' />
					<value target='cal_i2c::Injector' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='GdiText' codename='Text1' panelId='0' x='850' y='-100' z='16' xsz='31.25' ysz='62.5' zsz='0' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='8' comp2dType='46' >
				<resources />
				<properties />
				<values >
					<value target='sText' data='0x6A TOP with mod
This is Optional
Sometimes connected' />
					<value target='bWordWrap' data='0' />
					<value target='nHorizontalAlignment' data='  0' />
					<value target='nVerticalAlignment' data='  0' />
					<value target='nAngle' data='0' />
					<value target='fntFamily' data='Calibri' />
					<value target='bFixedScale' data='0' />
					<value target='dScale' data='2' />
					<value target='bScaleWidth' data='0' />
					<value target='iFontSize' data='12' />
					<value target='bBold' data='0' />
					<value target='bItalic' data='0' />
					<value target='bUnderline' data='0' />
					<value target='bStrikethrough' data='0' />
					<value target='colTextColour' data='0' />
					<value target='colTextGradient' data='9868950' />
					<value target='nGradient' data='0' />
					<value target='nTextOpacity' data='1.0' />
					<value target='colBackgroundColour' data='-1' />
					<value target='colBackgroundGradient' data='-1' />
					<value target='nBackgroundGradient' data='0' />
					<value target='nBackgroundOpacity' data='1.0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='GdiText' codename='Text6' panelId='0' x='875' y='-250' z='17' xsz='46.875' ysz='62.5' zsz='0' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='8' comp2dType='46' >
				<resources />
				<properties />
				<values >
					<value target='sText' data='0x6B BOT no mod (default)
This is Main Sensor  (lower Jaw)
Allways connected
' />
					<value target='bWordWrap' data='0' />
					<value target='nHorizontalAlignment' data='  0' />
					<value target='nVerticalAlignment' data='  0' />
					<value target='nAngle' data='0' />
					<value target='fntFamily' data='Calibri' />
					<value target='bFixedScale' data='0' />
					<value target='dScale' data='2' />
					<value target='bScaleWidth' data='0' />
					<value target='iFontSize' data='12' />
					<value target='bBold' data='0' />
					<value target='bItalic' data='0' />
					<value target='bUnderline' data='0' />
					<value target='bStrikethrough' data='0' />
					<value target='colTextColour' data='0' />
					<value target='colTextGradient' data='9868950' />
					<value target='nGradient' data='0' />
					<value target='nTextOpacity' data='1.0' />
					<value target='colBackgroundColour' data='-1' />
					<value target='colBackgroundGradient' data='-1' />
					<value target='nBackgroundGradient' data='0' />
					<value target='nBackgroundOpacity' data='1.0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' >
		<background rgb='7292207' img='' style='0' />
		<camera xe='0' ye='0' ze='10.4258' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<viewport dx='642' dy='384' zoom='7450.97' fix_topleft='0' />
		<page x='1000' y='1000' show='0' rgb='16777215' />
		<winpos ID='7005' RectRecentFloat='3890,120,5607,1619' RectRecentDocked='0,0,642,413' RecentFrameAlignment='16384' RecentRowIndex='0' IsFloating='0' MRUWidth='32767' PinState='0' IsMaximized='0' IsVisible='0' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='1' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='0' />
		<camera xe='6.43215' ye='13.669' ze='81.2265' xt='6.43215' yt='13.669' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey0 xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey1 xe='-3.67394e-14' ye='0' ze='-300' xt='0' yt='0' zt='0' xquat='0' yquat='1' zquat='0' wquat='6.12323e-17' />
		<camerakey2 xe='0' ye='-300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.707107' yquat='0' zquat='0' wquat='0.707107' />
		<camerakey3 xe='-3.67394e-14' ye='300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-4.32978e-17' yquat='0.707107' zquat='0.707107' wquat='4.32978e-17' />
		<camerakey4 xe='-300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='0.5' zquat='0.5' wquat='0.5' />
		<camerakey5 xe='300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='-0.5' zquat='-0.5' wquat='0.5' />
		<camerakey6 xe='-173.205' ye='-173.205' ze='173.205' xt='0' yt='0' zt='0' xquat='-0.424708' yquat='0.17592' zquat='0.339851' wquat='0.820473' />
		<winpos ID='7004' RectRecentFloat='3841,404,4480,1045' RectRecentDocked='2521,183,3167,2030' RecentFrameAlignment='16384' RecentRowIndex='0' IsFloating='0' MRUWidth='32767' PinState='0' IsMaximized='0' IsVisible='0' />
	</panel3d>
	<panels2d count='1' >
		<panel2d_0 id='0' name='2D Panel' >
			<winpos ID='1171' RectRecentFloat='4707,440,5982,1312' RectRecentDocked='1873,183,2515,2030' RecentFrameAlignment='16384' RecentRowIndex='0' IsFloating='1' MRUWidth='32767' PinState='0' IsMaximized='0' IsVisible='1' />
			<background fill='288230376151053813' showgrid='1' gridstyle='1' gridsize='50' gridbrush='71776119075099603' snaptogrid='1' />
		</panel2d_0>
	</panels2d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAGAgAADIHAAA' zoom='240' scrollx='0' scrolly='2448' flags='0' />
		<view type='0' name='Rec_esp32' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAGAgAADIHAAA' zoom='260' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='lsm6_read_AC_GY' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAGAgAADIHAAA' zoom='180' scrollx='0' scrolly='1227' flags='0' />
		<view type='0' name='Write_SD' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAGAgAADIHAAA' zoom='140' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Init_IRQ_sampelrate' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAGAgAADIHAAA' zoom='130' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='timer1_irq' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAGAgAADIHAAA' zoom='260' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Sleep' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAGAgAADIHAAA' zoom='160' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Init' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAGAgAADIHAAA' zoom='260' scrollx='0' scrolly='655' flags='0' />
		<view type='0' name='lsm6_set_AC_GY' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAGAgAADIHAAA' zoom='135' scrollx='0' scrolly='414' flags='0' />
		<view type='0' name='IMU_test_lsm6' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAGAgAADIHAAA' zoom='150' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Info' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAGAgAADIHAAA' zoom='220' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Send' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAGAgAADIHAAA' zoom='105' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SetupSensor' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAGAgAADIHAAA' zoom='240' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='WriteReg' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAGAgAADIHAAA' zoom='240' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ReadData' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAGAgAADIHAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
