<root>
<document scada='0' projtype='1' schema='103' license='1,66718025,8998ZB' title='New Embedded Project' description='' fcversion='720897' target='ESP.ESP32.ESP32-S3_MINI' >
	<config data='' clkspd='240000000' simspd='0' usewdt='0' constif='0' commport='6' 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;esp_system.h&quot;
#include &quot;esp_pm.h&quot;
#include &lt;esp_private/esp_clk.h&gt;
#include &quot;esp_mac.h&quot;

#include &quot;esp_bt.h&quot;
#include &quot;esp_bt_main.h&quot;
#include &quot;esp_system.h&quot;
#include &quot;esp_log.h&quot;' 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='946d6fce-a2a7-4bbe-b737-f21945fa0678' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' category2='' category3='' bIs2dOnly='0' bIs3dOnly='0' bIsWysiwyg='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' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='y1' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='7' setinit='7' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='count' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</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='BLE_MAC' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot; 0 &quot;' setinit='{0}' >
						<array size='6' />
					</def>
				</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='send_strg' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='All_data_send' type='s16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='{0}' >
						<array size='30' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ret_byte' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='charge' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='receive_ble' type='u8' description='0= not 1=yes' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='received_strg' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
						<array size='40' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='x3' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='4' setinit='4' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='led_red_on' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='sensor_nr' type='u8' description='Sensor number for calibration' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='x2' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='2' setinit='2' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='x1' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='count_akku' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='10' setinit='10' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='y4' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='103' setinit='103' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='y3' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='71' setinit='71' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='recorder_nr' type='u8' 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='y2' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='39' setinit='39' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='ReadMAC_FC11' description='' statediag='0' >
						<return name='Return' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<param name='send_to_uart_MAC_Adress' type='u8' description='0=dont send//1=send to uart' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<param name='send_to_uart_Sensor_nr' type='u8' description='0=dont send//1=send to uart' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='MAC_strg_temp' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
							<array size='20' />
						</local>
						<local name='mac_string' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
							<array size='20' />
						</local>
						<local name='i' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='MAC' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
							<array size='20' />
						</local>
						<command class_type='comment' title='' comment='#include &quot;esp_mac.h&quot;' textarea='12,0,12,0' />
						<command class_type='native' title='read MAC Adress local' textmode='0' ccode='  esp_efuse_mac_get_default(FCL_MAC);

' language='C' />
						<command class_type='calculation' title='reset strg' >
							<exp exp='.mac_string = &quot;&quot;' />
							<exp exp='' />
							<exp exp='' />
						</command>
						<command class_type='loop' title='set a string in a Loop' type='2' forvar='.i' exp='6' >
							<flowline >
								<command class_type='calculation' title='Loop set string' textmode='0' >
									<exp exp='.MAC_strg_temp = NumberToHex$(.MAC[.i])' />
									<exp exp='.MAC_strg_temp = RemoveFromString$(.MAC_strg_temp,2,0)' />
									<exp exp='.mac_string = .mac_string + .MAC_strg_temp' />
									<exp exp='' />
									<exp exp='' />
								</command>
								<command class_type='decision' title='Decision' exp='.i &lt; 5' swap='0' >
									<flowline >
										<command class_type='calculation' title='add :' >
											<exp exp='.mac_string = .mac_string + &quot;:&quot;' />
											<exp exp='' />
											<exp exp='' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision  sensor 1' exp='.mac_string = &quot;94:B9:7E:8B:D9:F4&quot;' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Return = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision  sensor 2' exp='.mac_string = &quot;E8:9F:6D:08:95:C4&quot;' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Return = 2' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision  sensor 3' exp='.mac_string = &quot;4C:75:25:C6:93:BC&quot;' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Return = 3' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision sensor 4' exp='.mac_string = &quot;D4:D4:DA:9D:56:50&quot;' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Return = 4' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision  sensor 3' exp='.mac_string = &quot;4C:75:25:E9:D6:0C&quot;' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Return = 5' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Sleep' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='#include &lt;esp_sleep.h&gt;
#include &quot;esp_task_wdt.h&quot;
#include &quot;esp_system.h&quot;
#include &quot;esp_pm.h&quot;
#include &lt;esp_private/esp_clk.h&gt;' textarea='12,0,12,0' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='count_down = 0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_ST7789V1' macro='BacklightOff' />
						<command class_type='call' title='Component Macro' component='power_on_neopix' macro='TurnOff' />
						<command class_type='call' title='Component Macro' component='power_on_tft' macro='TurnOff' />
						<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' />
						<command class_type='native' title='Code' disable='1' ccode='  esp_sleep_enable_gpio_wakeup();      //ok
  gpio_wakeup_enable(GPIO_NUM_1, GPIO_INTR_LOW_LEVEL);        //wakeup source ok
' language='C' />
						<command class_type='native' title='Code' ccode='  esp_sleep_enable_gpio_wakeup();      //ok
  gpio_wakeup_enable(GPIO_NUM_1, GPIO_INTR_HIGH_LEVEL);      //wakeup source ok
' language='C' />
						<command class_type='native' title='Code' ccode='  esp_light_sleep_start();' language='C' />
						<command class_type='comment' title='' comment='************** ************ *************   after sleep' textarea='12,0,12,0' />
						<command class_type='comment' title='' comment='************** ************ *************   after sleep' textarea='12,0,12,0' />
						<command class_type='call' title='Component Macro' component='gLCD_ST7789V1' macro='BacklightOn' />
						<command class_type='call' title='Component Macro' component='power_on_neopix' macro='TurnOn' />
						<command class_type='call' title='Component Macro' component='power_on_tft' macro='TurnOn' />
						<command class_type='call' title='Component Macro' component='led_red' macro='TurnOn' />
						<command class_type='delay' title='Delay' exp='100' type='1' />
						<command class_type='call' title='User Macro' macro='init' />
					</flowline>
				</macro>
				<macro >
					<flowline name='init' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Component Macro' component='BLE_GATT_SPP_ESP32' macro='Initialise' />
						<command class_type='call' title='Component Macro' component='gLCD_ST7789V1' macro='Initialise' />
						<command class_type='call' title='Component Macro' component='CellGauge1' macro='Initialise' >
							<return exp='ret_byte' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Sw_D2' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='led_red_on = 1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Sw_D1' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Sw_D0' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='led_red_on = 0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='array_init' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='count' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='loop' title='Loop' type='2' forvar='.count' exp='30' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='All_data_send[.count] = .count' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Fix nummer 4' >
							<exp exp='All_data_send[28] = 4' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Int_BLE' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='receive_ble = 1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ReadMAC_FC11_BLE' description='' statediag='0' >
						<return name='Return' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<param name='send_to_uart_MAC_Adress' type='u8' description='0=dont send//1=send to uart' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<param name='send_to_uart_Sensor_nr' type='u8' description='0=dont send//1=send to uart' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='MAC_strg_temp' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
							<array size='20' />
						</local>
						<local name='mac_string' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
							<array size='20' />
						</local>
						<local name='i' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='MAC' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
							<array size='20' />
						</local>
						<local name='dislay_strg' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
							<array size='60' />
						</local>
						<command class_type='comment' title='' comment='#include &quot;esp_mac.h&quot;' textarea='12,0,12,0' />
						<command class_type='comment' title='' comment='uint8_t ble_mac[6];
esp_read_mac(ble_mac, ESP_MAC_BT);

' textarea='12,0,12,0' />
						<command class_type='native' title='Code' ccode='  // Enter C code below this comment

  //FCV_RET_Byte = esp_read_mac(FCV_BLE_MAC, ESP_MAC_BT);
   esp_read_mac(FCV_BLE_MAC, ESP_MAC_BT);' language='C' />
						<command class_type='calculation' title='reset strg' >
							<exp exp='.mac_string = &quot;&quot;' />
							<exp exp='' />
							<exp exp='' />
						</command>
						<command class_type='loop' title='set a string in a Loop' type='2' forvar='.i' exp='6' >
							<flowline >
								<command class_type='calculation' title='Loop set string' textmode='0' >
									<exp exp='.MAC_strg_temp = NumberToHex$(BLE_MAC[.i])' />
									<exp exp='//.MAC_strg_temp = NumberToHex$(.MAC[.i])' />
									<exp exp='.MAC_strg_temp = RemoveFromString$(.MAC_strg_temp,2,0)' />
									<exp exp='.mac_string = .mac_string + .MAC_strg_temp' />
									<exp exp='' />
									<exp exp='' />
								</command>
								<command class_type='decision' title='Decision' exp='.i &lt; 5' swap='0' >
									<flowline >
										<command class_type='calculation' title='add :' >
											<exp exp='.mac_string = .mac_string + &quot;:&quot;' />
											<exp exp='' />
											<exp exp='' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision sensor 1' totalfolded='1' exp='.mac_string = &quot;94:B9:7E:8B:D9:F4&quot;' swap='0' >
							<flowline folded='1' totalfolded='1' >
								<command class_type='calculation' title='Calculation' hiddenFromFold='1' >
									<exp exp='.Return = 1' />
								</command>
							</flowline>
							<flowline folded='1' totalfolded='1' />
						</command>
						<command class_type='decision' title='Decision  sensor 2' totalfolded='1' exp='.mac_string = &quot;E8:9F:6D:08:95:C4&quot;' swap='0' >
							<flowline folded='1' totalfolded='1' >
								<command class_type='calculation' title='Calculation' hiddenFromFold='1' >
									<exp exp='.Return = 2' />
								</command>
							</flowline>
							<flowline folded='1' totalfolded='1' />
						</command>
						<command class_type='decision' title='Decision  sensor 3' totalfolded='1' exp='.mac_string = &quot;4C:75:25:C6:93:BC&quot;' swap='0' >
							<flowline folded='1' totalfolded='1' >
								<command class_type='calculation' title='Calculation' hiddenFromFold='1' >
									<exp exp='.Return = 3' />
								</command>
							</flowline>
							<flowline folded='1' totalfolded='1' />
						</command>
						<command class_type='decision' title='Decision sensor 4' exp='.mac_string = &quot;D0:CF:13:0A:A0:6A&quot;' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Return = 4' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision sensor 5' totalfolded='1' exp='.mac_string = &quot;4C:75:25:E9:D6:0C&quot;' swap='0' >
							<flowline folded='1' totalfolded='1' >
								<command class_type='calculation' title='Calculation' hiddenFromFold='1' >
									<exp exp='.Return = 5' />
								</command>
							</flowline>
							<flowline folded='1' totalfolded='1' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.dislay_strg = ToString$(.Return) + &quot; &quot; + .mac_string' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_ST7789V1' macro='Print' >
							<argument exp='.dislay_strg' />
							<argument exp='x2' />
							<argument exp='y4' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Display_test' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Handymode Mode  USB on TOP' disable='1' component='gLCD_ST7789V1' macro='SetDisplayOrientation' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='Flatscreen Mode 16:10 USB on LEFT' disable='1' component='gLCD_ST7789V1' macro='SetDisplayOrientation' >
							<argument exp='1' />
						</command>
						<command class_type='call' title='Flatscreen Mode 16:10 USB on Right' component='gLCD_ST7789V1' macro='SetDisplayOrientation' >
							<argument exp='3' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_ST7789V1' macro='Print' >
							<argument exp='&quot;7&quot;' />
							<argument exp='x2' />
							<argument exp='7' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_ST7789V1' macro='Print' >
							<argument exp='&quot;39&quot;' />
							<argument exp='x2' />
							<argument exp='y2' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_ST7789V1' macro='Print' >
							<argument exp='&quot;71&quot;' />
							<argument exp='x2' />
							<argument exp='y3' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_ST7789V1' macro='Print' >
							<argument exp='&quot;103&quot;' />
							<argument exp='x2' />
							<argument exp='y4' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='C:\c#_sourcecode\_#FC10\Macro' textarea='12,0,12,0' />
						<command class_type='native' title='Code' ccode='  // Enter C code below this comment
  gpio_pullup_en(GPIO_NUM_0);
  gpio_pulldown_en(GPIO_NUM_1);
  gpio_pulldown_en(GPIO_NUM_2);' language='C' />
						<command class_type='interrupt' title='Interrupt sw_D2' enable='1' name='GPIO2' call='Sw_D2' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='1' 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>
						<command class_type='interrupt' title='Interrupt sw_D1 Sleep wake up' enable='1' name='GPIO1' call='Sw_D1' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='1' ppsport='-1' ppspin='-1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='0' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='interrupt' title='Interrupt sw_D0 (Boot)' enable='1' name='GPIO0' call='Sw_D0' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='2' 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>
						<command class_type='call' title='User Macro' macro='array_init' />
						<command class_type='call' title='Component Macro' component='led_red' macro='TurnOn' />
						<command class_type='call' title='Component Macro' component='power_on_neopix' macro='TurnOn' />
						<command class_type='call' title='Component Macro' component='power_on_tft' macro='TurnOn' />
						<command class_type='delay' title='Delay' exp='100' type='1' />
						<command class_type='call' title='Component Macro' component='LED_WS2811' macro='Initialise' />
						<command class_type='delay' title='Delay' exp='100' type='1' />
						<command class_type='call' title='Component Macro' component='LED_WS2811' macro='SetLEDColour' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='30' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='LED_WS2811' macro='Refresh' />
						<command class_type='call' title='User Macro' macro='init' />
						<command class_type='delay' title='Delay' exp='100' type='1' />
						<command class_type='call' title='Flatscreen Mode 16:10 USB on Right' component='gLCD_ST7789V1' macro='SetDisplayOrientation' >
							<argument exp='3' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_ST7789V1' macro='ClearDisplay' />
						<command class_type='call' title='Component Macro' component='UART1' macro='Initialise' />
						<command class_type='delay' title='Delay' exp='500' type='1' />
						<command class_type='call' title='Component Macro' component='gLCD_ST7789V1' macro='ClearDisplay' />
						<command class_type='call' title='Component Macro' 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' component='LED_WS2811' macro='Refresh' />
						<command class_type='call' title='Component Macro' component='led_red' macro='TurnOff' />
						<command class_type='call' title='User Macro' macro='ReadMAC_FC11_BLE' >
							<return exp='recorder_nr' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='loop' title='Loop' type='3' exp='1' >
							<flowline >
								<command class_type='loop' title='Loop' type='2' exp='1000' >
									<flowline >
										<command class_type='native' title='Code' ccode='      uart_write_bytes(UART_NUM_0, &quot;Hallo PC!\n&quot;, 11);' language='C' />
										<command class_type='call' title='Component Macro' component='UART1' macro='SendString' >
											<argument exp='&quot;hallo&quot;' />
										</command>
										<command class_type='call' title='Component Macro' disable='1' component='BLE_GATT_SPP_ESP32' macro='ReceiveString' >
											<return exp='received_strg' />
											<argument exp='3' />
											<argument exp='10' />
										</command>
										<command class_type='call' title='Component Macro' disable='1' component='gLCD_ST7789V1' macro='Print' >
											<argument exp='received_strg' />
											<argument exp='10' />
											<argument exp='80' />
											<argument exp='1' />
											<argument exp='0' />
										</command>
										<command class_type='decision' title='Decision' exp='receive_ble == 1' swap='0' >
											<flowline >
												<command class_type='call' title='Component Macro' component='BLE_GATT_SPP_ESP32' macro='ReceiveString' >
													<return exp='received_strg' />
													<argument exp='3' />
													<argument exp='10' />
												</command>
												<command class_type='call' title='Component Macro' component='gLCD_ST7789V1' macro='Print' >
													<argument exp='&quot;                     &quot;' />
													<argument exp='x2' />
													<argument exp='y3' />
													<argument exp='1' />
													<argument exp='0' />
												</command>
												<command class_type='call' title='Component Macro' component='gLCD_ST7789V1' macro='Print' >
													<argument exp='received_strg' />
													<argument exp='x2' />
													<argument exp='y3' />
													<argument exp='1' />
													<argument exp='0' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='receive_ble = 0' />
												</command>
											</flowline>
											<flowline >
												<command class_type='call' title='Component Macro' component='gLCD_ST7789V1' macro='Print' >
													<argument exp='&quot;no data            &quot;' />
													<argument exp='x2' />
													<argument exp='y3' />
													<argument exp='1' />
													<argument exp='0' />
												</command>
											</flowline>
										</command>
										<command class_type='call' title='Component Macro' component='led_red' macro='SetState' >
											<argument exp='led_red_on' />
										</command>
										<command class_type='decision' title='Decision' exp='count_akku &gt;= 10' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='count_akku = 0' />
												</command>
												<command class_type='call' title='Component Macro' component='gLCD_ST7789V1' macro='Print' >
													<argument exp='&quot;              &quot;' />
													<argument exp='x2' />
													<argument exp='y1' />
													<argument exp='1' />
													<argument exp='0' />
												</command>
												<command class_type='call' title='Component Macro' component='CellGauge1' macro='ReadStateOfCharge' >
													<return exp='charge' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='send_strg = ToString$(charge)' />
												</command>
												<command class_type='call' title='Component Macro' component='gLCD_ST7789V1' macro='Print' >
													<argument exp='send_strg' />
													<argument exp='x2' />
													<argument exp='y1' />
													<argument exp='1' />
													<argument exp='0' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='send_strg = send_strg + &quot;\r\n&quot;' />
												</command>
												<command class_type='call' title='Component Macro' disable='1' component='BLE_GATT_SPP_ESP32' macro='SendString' >
													<argument exp='send_strg' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='count_akku = count_akku + 1' />
													<exp exp='' />
													<exp exp='' />
												</command>
											</flowline>
										</command>
										<command class_type='call' title='Component Macro' component='gLCD_ST7789V1' macro='Print' >
											<argument exp='&quot;              &quot;' />
											<argument exp='x2' />
											<argument exp='y2' />
											<argument exp='1' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Component Macro' component='gLCD_ST7789V1' macro='PrintNumber' >
											<argument exp='led_red_on' />
											<argument exp='x2' />
											<argument exp='y2' />
											<argument exp='1' />
											<argument exp='0' />
										</command>
										<command class_type='comment' title='' comment='Comment' textarea='12,0,12,0' />
										<command class_type='call' title='Component Macro' component='BLE_GATT_SPP_ESP32' macro='SendINTArray' >
											<argument exp='All_data_send' />
											<argument exp='30' />
											<argument exp='0' />
										</command>
										<command class_type='delay' title='Delay' exp='500' type='1' />
										<command class_type='comment' title='' comment='Comment' textarea='12,0,12,0' />
									</flowline>
								</command>
								<command class_type='call' title='User Macro' disable='1' macro='Sleep' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='d977c3ef-c7dc-4683-a1be-76e17e6ba12b' vmin='0' vmaj='2' codename='LED_WS2811' panelId='0' x='308.4' y='-46.4' z='0' xsz='23.0769' ysz='22' 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' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='LED_Controller' data='001' />
					<value target='DataOrder' data='0' />
					<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='3' />
					<value target='x_spacing' data='1' />
					<value target='LED_Rows' data='3' />
					<value target='y_spacing' data='5' />
					<value target='LED_Layers' data='3' />
					<value target='z_spacing' data='5' />
					<value target='FlipX' data='0' />
					<value target='FlipY' data='' />
					<value target='FlipZ' data='0' />
					<value target='MOSI' data='$GPIO33' />
					<value target='InvertData' data='0' />
					<value target='Instance' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='44f82374-a417-40d5-bd42-23a177a390d2' vmin='0' vmaj='19' codename='power_on_tft' panelId='0' x='441.2' y='-150.694' z='1' xsz='25.4217' ysz='25.8736' 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' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='AppDevDetected' data='0' />
					<value target='SimulationOnly' data='0' />
					<value target='Pin' data='$GPIO7' />
					<value target='ComponentLabel' data='000' />
					<value target='GdiText2::sText' data='power_on_tft' />
					<value target='ComponentLabelPosition' data='000' />
					<value target='ComponentLabelXPostion' data='0' />
					<value target='ComponentLabelYPostion' data='20.000000' />
					<value target='LabelColour' data='7895160' />
					<value target='Polarity' data='001' />
					<value target='ShowConnectionLabel' data='1' />
					<value target='ShowPinValue' data='0' />
					<value target='PinLabelPosition' data='001' />
					<value target='PinLabelXPostion' data='0' />
					<value target='PinLabelYPostion' data='-25.000000' />
					<value target='Shape' data='000' />
					<value target='Colour' data='000' />
					<value target='Style' data='001' />
					<value target='AutoOffColour' data='1' />
					<value target='OnColour' data='65280' />
					<value target='OffColour' data='10752' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='44f82374-a417-40d5-bd42-23a177a390d2' vmin='0' vmaj='19' codename='power_on_neopix' panelId='0' x='249.2' y='-45.4947' z='2' xsz='25.4217' ysz='25.5893' 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' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='AppDevDetected' data='0' />
					<value target='SimulationOnly' data='0' />
					<value target='Pin' data='$GPIO21' />
					<value target='ComponentLabel' data='000' />
					<value target='GdiText2::sText' data='power_on_neopix' />
					<value target='ComponentLabelPosition' data='000' />
					<value target='ComponentLabelXPostion' data='0' />
					<value target='ComponentLabelYPostion' data='20.000000' />
					<value target='LabelColour' data='7895160' />
					<value target='Polarity' data='001' />
					<value target='ShowConnectionLabel' data='1' />
					<value target='ShowPinValue' data='0' />
					<value target='PinLabelPosition' data='001' />
					<value target='PinLabelXPostion' data='0' />
					<value target='PinLabelYPostion' data='-25.000000' />
					<value target='Shape' data='000' />
					<value target='Colour' data='000' />
					<value target='Style' data='001' />
					<value target='AutoOffColour' data='1' />
					<value target='OnColour' data='65280' />
					<value target='OffColour' data='10752' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='4e30b15e-2507-4583-995d-b2056e04a286' vmin='6' vmaj='1' codename='gLCD_ST7789V1' panelId='0' x='561.172' y='-384' z='3' xsz='74.2466' ysz='77.6786' 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' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='pixel_width' data='135' />
					<value target='pixel_height' data='240' />
					<value target='XOffset' data='50' />
					<value target='YOffset' data='40' />
					<value target='monochrome' data='0' />
					<value target='foreground_colour' data='16777215' />
					<value target='background_colour' data='16711698' />
					<value target='InvColours' data='1' />
					<value target='colour_bit_depth' data='16' />
					<value target='red_bit_depth' data='5' />
					<value target='green_bit_depth' data='6' />
					<value target='blue_bit_depth' data='5' />
					<value target='FGCOL' data='65535' />
					<value target='BGCOL' data='4127' />
					<value target='UseSPI' data='1' />
					<value target='cal_spi1::CHANNEL' data='001' />
					<value target='cal_spi1::PR_SCALE' data='800' />
					<value target='cal_spi1::MOSI' data='$PORTB.3' />
					<value target='cal_spi1::MOSIPins' data='027' />
					<value target='cal_spi1::MISO' data='$PORTB.5' />
					<value target='cal_spi1::MISOPins' data='037' />
					<value target='cal_spi1::CLK' data='$PORTB.4' />
					<value target='cal_spi1::CLKPins' data='028' />
					<value target='QueueFastPixels' data='1' />
					<value target='PixelQueueSize' data='240' />
					<value target='data_pin' data='$PORTD.1' />
					<value target='clock_pin' data='$PORTD.0' />
					<value target='UseCS' data='1' />
					<value target='ToggleCS' data='1' />
					<value target='chip_sel_pin' data='$GPIO42' />
					<value target='DCPin' data='$GPIO40' />
					<value target='UseReset' data='1' />
					<value target='ResetPin' data='$GPIO41' />
					<value target='UseBacklight' data='1' />
					<value target='BacklightPin' data='$GPIO45' />
					<value target='Base_GLCD::FontCount' data='003' />
					<value target='Base_GLCD::gLCD_Font1::Font' data='019' />
					<value target='Base_GLCD::gLCD_Font1::CustomFontFile' data='C:\Users\BenR\Desktop\customfont.h.c' />
					<value target='Base_GLCD::gLCD_Font1::BytesRequired' data='3178' />
					<value target='Base_GLCD::gLCD_Font1::FontSpace' data='3' />
					<value target='Base_GLCD::gLCD_Font1::SpaceWidth' data='5' />
					<value target='Base_GLCD::gLCD_Font2::Font' data='020' />
					<value target='Base_GLCD::gLCD_Font2::CustomFontFile' data='C:\Users\BenR\Desktop\customfont.h.c' />
					<value target='Base_GLCD::gLCD_Font2::BytesRequired' data='5462' />
					<value target='Base_GLCD::gLCD_Font2::FontSpace' data='001' />
					<value target='Base_GLCD::gLCD_Font2::SpaceWidth' data='5' />
					<value target='Base_GLCD::gLCD_Font3::Font' data='021' />
					<value target='Base_GLCD::gLCD_Font3::CustomFontFile' data='C:\Users\BenR\Desktop\customfont.h.c' />
					<value target='Base_GLCD::gLCD_Font3::BytesRequired' data='8359' />
					<value target='Base_GLCD::gLCD_Font3::FontSpace' data='001' />
					<value target='Base_GLCD::gLCD_Font3::SpaceWidth' data='38' />
					<value target='Base_GLCD::gLCD_Font4::Font' data='015' />
					<value target='Base_GLCD::gLCD_Font4::CustomFontFile' data='C:\Users\BenR\Desktop\customfont.h.c' />
					<value target='Base_GLCD::gLCD_Font4::BytesRequired' data='' />
					<value target='Base_GLCD::gLCD_Font4::FontSpace' data='001' />
					<value target='Base_GLCD::gLCD_Font4::SpaceWidth' data='004' />
					<value target='Base_GLCD::gLCD_Font5::Font' data='008' />
					<value target='Base_GLCD::gLCD_Font5::CustomFontFile' data='' />
					<value target='Base_GLCD::gLCD_Font5::BytesRequired' data='' />
					<value target='Base_GLCD::gLCD_Font5::FontSpace' data='001' />
					<value target='Base_GLCD::gLCD_Font5::SpaceWidth' data='004' />
					<value target='Base_GLCD::gLCD_Font6::Font' data='010' />
					<value target='Base_GLCD::gLCD_Font6::CustomFontFile' data='' />
					<value target='Base_GLCD::gLCD_Font6::BytesRequired' data='' />
					<value target='Base_GLCD::gLCD_Font6::FontSpace' data='001' />
					<value target='Base_GLCD::gLCD_Font6::SpaceWidth' data='004' />
					<value target='Base_GLCD::gLCD_Font7::Font' data='021' />
					<value target='Base_GLCD::gLCD_Font7::CustomFontFile' data='' />
					<value target='Base_GLCD::gLCD_Font7::BytesRequired' data='' />
					<value target='Base_GLCD::gLCD_Font7::FontSpace' data='001' />
					<value target='Base_GLCD::gLCD_Font7::SpaceWidth' data='004' />
					<value target='Base_GLCD::gLCD_Font8::Font' data='003' />
					<value target='Base_GLCD::gLCD_Font8::CustomFontFile' data='' />
					<value target='Base_GLCD::gLCD_Font8::BytesRequired' data='' />
					<value target='Base_GLCD::gLCD_Font8::FontSpace' data='001' />
					<value target='Base_GLCD::gLCD_Font8::SpaceWidth' data='004' />
					<value target='Base_GLCD::ComponentLabel' data='000' />
					<value target='Base_GLCD::GdiText1::sText' data='gLCD_ST7789V1' />
					<value target='Base_GLCD::GdiText1::dScale' data='1.000000' />
					<value target='DisplayMethod' data='000' />
					<value target='Base_GLCD::PhysicalOrientation' data='000' />
					<value target='SimComms' data='0' />
					<value target='cal_spi1::ConsoleData' data='1' />
					<value target='cal_spi1::ScopeTraces' data='1' />
					<value target='cal_spi1::Injector' data='000' />
					<value target='cal_spi1::InjectorCS' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='44f82374-a417-40d5-bd42-23a177a390d2' vmin='0' vmaj='19' codename='led_red' panelId='0' x='66' y='-45.4933' z='4' xsz='25.4217' ysz='26.1579' 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' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='AppDevDetected' data='0' />
					<value target='SimulationOnly' data='0' />
					<value target='Pin' data='$GPIO13' />
					<value target='ComponentLabel' data='000' />
					<value target='GdiText2::sText' data='led_red' />
					<value target='ComponentLabelPosition' data='000' />
					<value target='ComponentLabelXPostion' data='0' />
					<value target='ComponentLabelYPostion' data='20.000000' />
					<value target='LabelColour' data='7895160' />
					<value target='Polarity' data='001' />
					<value target='ShowConnectionLabel' data='1' />
					<value target='ShowPinValue' data='0' />
					<value target='PinLabelPosition' data='001' />
					<value target='PinLabelXPostion' data='0' />
					<value target='PinLabelYPostion' data='-25.000000' />
					<value target='Shape' data='000' />
					<value target='Colour' data='000' />
					<value target='Style' data='001' />
					<value target='AutoOffColour' data='1' />
					<value target='OnColour' data='65280' />
					<value target='OffColour' data='10752' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='e2698f3e-1168-4f25-9c50-24a74ea7e34a' vmin='0' vmaj='21' codename='Switch_Push_Button_D0' panelId='0' x='73.6' y='-287.983' z='5' xsz='30.8548' ysz='38.8336' 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' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='AppDevDetected' data='0' />
					<value target='SimulationOnly' data='0' />
					<value target='Pin' data='$GPIO0' />
					<value target='Polarity' data='001' />
					<value target='debounce' data='5' />
					<value target='Latching' data='1' />
					<value target='ComponentLabel' data='000' />
					<value target='GdiText2::sText' data='Switch_Push_Button_D0' />
					<value target='ComponentLabelPosition' data='000' />
					<value target='ComponentLabelXPostion' data='0' />
					<value target='ComponentLabelYPostion' data='0.800000' />
					<value target='LabelColour' data='7895160' />
					<value target='ShowConnectionLabel' data='0' />
					<value target='ShowPinValue' data='0' />
					<value target='PinLabelPosition' data='001' />
					<value target='PinLabelXPostion' data='0' />
					<value target='PinLabelYPostion' data='-1.000000' />
					<value target='Style' data='000' />
					<value target='GdiSwitch1::nType' data='  2' />
					<value target='GdiSwitch1::sLabelOn' data='On' />
					<value target='GdiSwitch1::sLabelOff' data='Off' />
					<value target='FontType' data='Calibri' />
					<value target='GdiSwitch1::dScale' data='0.65' />
					<value target='GdiText2::dScale' data='0.65' />
					<value target='GdiText1::dScale' data='0.65' />
					<value target='GdiSwitch1::brOutline' data='71776119061217280' />
					<value target='GdiSwitch1::brOuterFillOn' data='251262225375821824' />
					<value target='GdiSwitch1::brFill' data='251262225375821824' />
					<value target='GdiSwitch1::brOutlineThumb' data='71917408452870144' />
					<value target='GdiSwitch1::brFillThumb' data='288090190566653952' />
					<value target='GdiSwitch1::brFillOn' data='648292728253186048' />
					<value target='GdiSwitch1::brLabelOn' data='0' />
					<value target='GdiSwitch1::brFillOff' data='648237171995574272' />
					<value target='GdiSwitch1::brLabelOff' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='e2698f3e-1168-4f25-9c50-24a74ea7e34a' vmin='0' vmaj='21' codename='Switch_Push_Button_D1' panelId='0' x='73.6' y='-201.198' z='6' xsz='30.8548' ysz='38.3357' 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' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='AppDevDetected' data='0' />
					<value target='SimulationOnly' data='0' />
					<value target='Pin' data='$GPIO1' />
					<value target='Polarity' data='000' />
					<value target='debounce' data='5' />
					<value target='Latching' data='1' />
					<value target='ComponentLabel' data='000' />
					<value target='GdiText2::sText' data='Switch_Push_Button_D1' />
					<value target='ComponentLabelPosition' data='000' />
					<value target='ComponentLabelXPostion' data='0' />
					<value target='ComponentLabelYPostion' data='0.800000' />
					<value target='LabelColour' data='7895160' />
					<value target='ShowConnectionLabel' data='0' />
					<value target='ShowPinValue' data='0' />
					<value target='PinLabelPosition' data='001' />
					<value target='PinLabelXPostion' data='0' />
					<value target='PinLabelYPostion' data='-1.000000' />
					<value target='Style' data='000' />
					<value target='GdiSwitch1::nType' data='  2' />
					<value target='GdiSwitch1::sLabelOn' data='On' />
					<value target='GdiSwitch1::sLabelOff' data='Off' />
					<value target='FontType' data='Calibri' />
					<value target='GdiSwitch1::dScale' data='0.65' />
					<value target='GdiText2::dScale' data='0.65' />
					<value target='GdiText1::dScale' data='0.65' />
					<value target='GdiSwitch1::brOutline' data='71776119061217280' />
					<value target='GdiSwitch1::brOuterFillOn' data='251262225375821824' />
					<value target='GdiSwitch1::brFill' data='251262225375821824' />
					<value target='GdiSwitch1::brOutlineThumb' data='71917408452870144' />
					<value target='GdiSwitch1::brFillThumb' data='288090190566653952' />
					<value target='GdiSwitch1::brFillOn' data='648292728253186048' />
					<value target='GdiSwitch1::brLabelOn' data='0' />
					<value target='GdiSwitch1::brFillOff' data='648237171995574272' />
					<value target='GdiSwitch1::brLabelOff' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='e2698f3e-1168-4f25-9c50-24a74ea7e34a' vmin='0' vmaj='21' codename='Switch_Push_ButtonD2' panelId='0' x='74.4' y='-119.752' z='7' xsz='30.8548' ysz='43.8122' 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' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='AppDevDetected' data='0' />
					<value target='SimulationOnly' data='0' />
					<value target='Pin' data='$GPIO2' />
					<value target='Polarity' data='000' />
					<value target='debounce' data='5' />
					<value target='Latching' data='1' />
					<value target='ComponentLabel' data='000' />
					<value target='GdiText2::sText' data='Switch_Push_ButtonD2' />
					<value target='ComponentLabelPosition' data='000' />
					<value target='ComponentLabelXPostion' data='0' />
					<value target='ComponentLabelYPostion' data='0.800000' />
					<value target='LabelColour' data='7895160' />
					<value target='ShowConnectionLabel' data='0' />
					<value target='ShowPinValue' data='0' />
					<value target='PinLabelPosition' data='001' />
					<value target='PinLabelXPostion' data='0' />
					<value target='PinLabelYPostion' data='-1.000000' />
					<value target='Style' data='000' />
					<value target='GdiSwitch1::nType' data='  2' />
					<value target='GdiSwitch1::sLabelOn' data='On' />
					<value target='GdiSwitch1::sLabelOff' data='Off' />
					<value target='FontType' data='Calibri' />
					<value target='GdiSwitch1::dScale' data='0.65' />
					<value target='GdiText2::dScale' data='0.65' />
					<value target='GdiText1::dScale' data='0.65' />
					<value target='GdiSwitch1::brOutline' data='71776119061217280' />
					<value target='GdiSwitch1::brOuterFillOn' data='251262225375821824' />
					<value target='GdiSwitch1::brFill' data='251262225375821824' />
					<value target='GdiSwitch1::brOutlineThumb' data='71917408452870144' />
					<value target='GdiSwitch1::brFillThumb' data='288090190566653952' />
					<value target='GdiSwitch1::brFillOn' data='648292728253186048' />
					<value target='GdiSwitch1::brLabelOn' data='0' />
					<value target='GdiSwitch1::brFillOff' data='648237171995574272' />
					<value target='GdiSwitch1::brLabelOff' data='0' />
				</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='845.6' y='-417.6' z='8' xsz='25.2788' ysz='43.3949' 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' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='CellCount' data='000' />
					<value target='VoltagePerBit' data='0.001250' />
					<value target='AlertThreshold' data='028' />
					<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.3' />
					<value target='I2C_Master1::cal_i2c::SDAPins' data='003' />
					<value target='I2C_Master1::cal_i2c::SCL' data='$PORTA.4' />
					<value target='I2C_Master1::cal_i2c::SCLPins' data='004' />
					<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='a9fd95ee-27f4-42ef-8abb-3e810ec9711f' vmin='0' vmaj='1' codename='BLE_GATT_SPP_ESP32' panelId='0' x='75.2' y='-640.8' z='9' xsz='25.3137' ysz='25.3713' 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' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='DevName' data='FC Ada S3 BLE' />
					<value target='ReceiveBuffer' data='100' />
					<value target='ServiceUUID' data='65504' />
					<value target='CharUUID' data='65505' />
					<value target='DataRxInt' data='1' />
					<value target='DataRxMacro' data='Int_BLE' />
					<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='a61211f1-3718-4d37-b4a4-c6193646ccfd' vmin='9' vmaj='9' codename='File_ESP32_SDMode1' panelId='0' x='70.7984' y='-429.33' z='10' xsz='25.0205' ysz='25.2166' 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' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='Frequency' data='200' />
					<value target='FileCount' data='2' />
					<value target='SDMode' data='004' />
					<value target='BufferSize' data='512' />
					<value target='BufferSize_1' data='32' />
					<value target='CLK_PIN' data='$PORTA.0' />
					<value target='CMD_PIN' data='$PORTA.0' />
					<value target='D0_PIN' data='$PORTA.0' />
					<value target='D1_PIN' data='$PORTA.0' />
					<value target='D2_PIN' data='$PORTA.0' />
					<value target='D3_PIN' data='$PORTA.0' />
					<value target='Remap' data='1' />
					<value target='SimRootFolder' data='$(srcdir)' />
					<value target='IsSim' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='GdiText' codename='Text1' panelId='0' x='244.8' y='-441.6' z='11' xsz='69' ysz='132' 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' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='46' >
				<resources />
				<properties />
				<values >
					<value target='sText' data='SD‑Signal GPIO (ESP32‑S3 mini)
SD_CLK GPIO 36
SD_CM DGPIO 35
SD_D0 GPIO 37
SD_D1 GPIO 38
SD_D2 GPIO 08
SD_D3 GPIO 14' />
					<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='c73616d1-7ad0-45d9-aada-69ccfa4c5efc' vmin='0' vmaj='3' codename='UART1' panelId='0' x='275.2' y='-208.8' z='12' xsz='25.1778' ysz='25.3713' 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' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' 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='$PORTB.11' />
					<value target='cal_uart::OutputPins' data='035' />
					<value target='cal_uart::TXAlt' data='0' />
					<value target='cal_uart::UseRX' data='1' />
					<value target='cal_uart::RX' data='$PORTB.12' />
					<value target='cal_uart::InputPins' data='044' />
					<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>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' >
		<background rgb='7292207' img='' style='0' />
		<camera xe='0' ye='0' ze='504.797' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<viewport dx='200' dy='1708' zoom='47.9401' fix_topleft='0' />
		<page x='1000' y='1000' show='0' rgb='7360576' />
		<winpos ID='7005' RectRecentFloat='272,148,1255,722' RectRecentDocked='0,0,200,1741' 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='0' ye='0' ze='781.66' xt='0' yt='0' 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='0,630,650,1080' RectRecentDocked='0,0,442,1333' 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' type='0' >
			<winpos ID='1171' RectRecentFloat='4021,90,5427,1179' RectRecentDocked='2191,220,2765,1553' RecentFrameAlignment='16384' RecentRowIndex='0' IsFloating='1' MRUWidth='32767' PinState='0' IsMaximized='0' IsVisible='1' />
			<background fill='288230376151053813' showgrid='1' gridstyle='1' gridsize='10' gridbrush='71776119075691740' snaptogrid='1' fitcomp='0' disp_x='300' disp_y='400' scale='125' disp_col='16777215' />
		</panel2d_0>
	</panels2d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAqggAAHAHAAA' zoom='130' scrollx='0' scrolly='2968' flags='0' />
		<view type='0' name='init' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAqggAAHAHAAA' zoom='260' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Sleep' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAqggAAHAHAAA' zoom='160' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Sw_D2' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAqggAAHAHAAA' zoom='260' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Sw_D0' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAqggAAHAHAAA' zoom='180' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='array_init' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAqggAAHAHAAA' zoom='240' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Int_BLE' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAqggAAHAHAAA' zoom='200' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ReadMAC_FC11' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAqggAAHAHAAA' zoom='140' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ReadMAC_FC11_BLE' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAqggAAHAHAAA' zoom='190' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Display_test' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAqggAAHAHAAA' zoom='140' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
