[$jimu_video_lesson] id:invert_pin url=invert_pin|what_s_IO [$group] 输入输出 [$last_ver_update_time] 2021-04-03 [$min_need_ver] 1.23 [$p_list] [$short_show_UIname] [$code_area_type] codes,exe_per_1ms,init_code [$blocks_type] [$name] [$cs] if( IO_Readoutput( [($_xgm$value4),type=pin] ) == 0){ IO_Write([($_xgm$value4),type=pin] ,1) ; }else{ IO_Write( [($_xgm$value4),type=pin] ,0) ; } [$cs_sim] if(API_funcs_for_sim.get_stm32_IO( p_item1_ref , "[($_xgm$value4),type=pin]" ) == 0){ API_funcs_for_sim.set_stm32_IO(p_item1_ref , "[($_xgm$value4),type=pin]" ,1 , 1) ; }else{ API_funcs_for_sim.set_stm32_IO(p_item1_ref , "[($_xgm$value4),type=pin]" ,0 , 1) ; } //API_funcs_for_sim.alert_to_js_tishi_cannot_sim_this_ele(p_item1_ref , "不支持反转积木"); //API_funcs_for_sim.alert_to_js_tishi_cannot_sim_this_ele(p_item1_ref , "不支持反转111111积木123"); [$replace_map] $_xgm$value4 = $field$combox1 ,mytype|pin, ptype|TIMES [$init_code_for_init_val] #get_P口_to_PxM1_PxM0_set_code(group_xml,rand1,block_name,ref_complier,extinfo,"[($_xgm$value4),type=pin]","1","io1")% [$toolbox_block_code]