📄 traffic.inc
字号:
PORT3 &= ~0x0001; /* set P3.0 to zero: Key Input */
/* define a debug function for the pedestrian push button */
signal void push_key (void) {
PORT3 |= 0x0001; /* set P3.0 */
twatch (`Clock*0.05); /* wait 50 msec */
PORT3 &= ~0x0001; /* reset P3.0 */
}
/* define a toolbar button to call push_key */
define button "Push for Walk", "push_key ()"
RADIX=10 // decimal output in watch window
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -