代码搜索结果
找到约 21,386 项符合
Switch 的代码
switch.jhd
MODULE switch
switch.vhd
-- 库声明
library IEEE;
use IEEE.STD_LOGIC_1164.all;
-- 实体声明
entity switch is
port (
din1 : in STD_LOGIC;
din2 : in STD_LOGIC;
sel : in STD_LOGIC;
dout : out STD_LO
switch.jhd
MODULE switch
switch.vhd
-- 库声明
library IEEE;
use IEEE.STD_LOGIC_1164.all;
-- 实体声明
entity switch is
port (
din1 : in STD_LOGIC;
din2 : in STD_LOGIC;
sel : in STD_LOGIC;
dout : out STD_LO
switch.c
#include "hpa449lib.h"
#include "sblcd_hpa449_sblcd.h"
void WaitForSwitch2()
{
// turn down arrow on
LCDM2 |= 0x08;
// wait for switch 2 to go low
while (P1IN & SWITCH_2_BIT)
modify-switch.xml
Alt+S
Modify
Switch
switch.txt
<mark>SWITCH</mark>语句:
语法:
<mark>SWITCH</mark>(变量名){
CASE 值1:
语句段1
CASE 值2:
语句段2
。。。。
DEFAULT:
语句段N
}
说明:
<mark>SWITCH</mark>分支语句用来实现多支判断,根据变量名指定的变量的变量值和CASE语句后面的值是否
相等来决定是否执行后面的语句,如果都不相等,则执行DEFAULT后面的语句。
注意:
如果变量中 ...
switch.java
package com.javapatterns.command.lightandfan;
public class Switch {
private Command UpCommand, DownCommand;
public Switch( Command Up, Command Down) {
UpCommand =
switch.jhd
MODULE switch
switch.vhd
-- 库声明
library IEEE;
use IEEE.STD_LOGIC_1164.all;
-- 实体声明
entity switch is
port (
din1 : in STD_LOGIC;
din2 : in STD_LOGIC;
sel : in STD_LOGIC;
dout : out STD_LO