参数资料
型号: 20-151-0178
厂商: Rabbit Semiconductor
文件页数: 77/162页
文件大小: 0K
描述: CABLE CONVERTER RS-232 TO USB
标准包装: 1
附件类型: USB 至 RS232 适配器
适用于相关产品: 基于 Rabbit 的板
产品目录页面: 619 (CN2011-ZH PDF)
其它名称: 20-151-0178-ND
316-1181
Note that the keypad’s software name is always flex_keypad .
Next, you should configure the keys on your keypad. This is what the flexKeyConfig() function
does. When a key is pressed, the flexKeyGet() function will get a specific key code before returning
which key was pressed. The keycode is calculated as follows:
[output #] * [num outputs] + [input #]
The flexKeyConfig() function takes the key code as a parameter to determine which key you are
configuring. The other parameters let you configure the actual char value that flexKeyGet() will
report when the corresponding key is pressed, as well as whether or not a key should repeat if held down.
To drive the keypad driver, you must continuously call the flexKeyProcess() function.
6.3.7 LCD
All LCD functions begin with “flexDisp.” To use the LCD software support, you must first initialize the
LCD. Use the flexDispInit() function. Here is an example:
flexDispInit(&flex_lcd, NULL);
Note that the LCD’s software name is always flex_lcd .
Also note the second parameter in flexDispInit() . Your LCD display may have different properties
from the standard LCDs that we support. The second parameter lets you configure some of the parameters
for your attached LCD. This initialization parameter is of type Flex_LCDConf . Here is the structure
definition for Flex_LCDConf :
typedef struct {
char num_cols;
char num_rows;
char row_addresses[4];
float anaout_contrast_min;
float anaout_contrast_max;
int pwm_contrast_min;
int pwm_contrast_max;
char def_contrast;
//
//
//
//
//
//
//
//
Number of columns on the display
Number of rows on the display
Starting address of each row (up to 4 rows)
Minimum voltage for contrast control
Maximum voltage for contrast control
Minimum duty cycle for contrast control
Maximum duty cycle for contrast control
Default scaled value for contrast control (0-255)
} Flex_LCDConf;
If your display has a specific number of columns and rows, then you can set that with the num_cols and
num_rows parameters. The documentation for your LCD module should indicate at which address each
row begins—these can be specified with the row_addresses array. The anaout_contrast_min
and anaout_contrast_max parameters can be ignored—contrast on the RabbitFLEX BL300F is cur-
rently set via a PWM output. pwm_contrast_min and pwm_contrast_max can be used to restrict
the range of the contrast settings, whereas def_contrast can be used to set the default contrast value.
So, for a 2x20 display, you might initialize it as follows:
Flex_LCDConf my_lcd;
// Number of columns on the display
my_lcd.num_cols = 20;
RabbitFLEX User’s Manual
71
相关PDF资料
PDF描述
MAX11200EVKIT+ KIT EVALUATION FOR MAX11200
HCC06DRTF-S13 CONN EDGECARD 12POS .100 EXTEND
HK1608R47J-T INDUCTOR HI FREQ 470NH 5% 0603
PCM16XD0 PROCESSOR MODULE FOR MPLAB-ICE
SDR1006-681KL INDUCTOR POWER 680UH 0.28A SMD
相关代理商/技术参数
参数描述
20-151-0183 功能描述:处理器配件 UNIVL PWRSUPLY 12VDC 1A/W MOLEX MICROFIT3 RoHS:否 制造商:Olimex Ltd. 产品:Cable 用于:
2015103-1 制造商:TE CONNECTIVITY 功能描述:RF C/A, RT ANG QMA/DIN 1.0/2.3 CONN
2015-104 制造商:The Bergquist Company 功能描述:THERMAL PAD TO-3P PK5 制造商:The Bergquist Company 功能描述:THERMAL PAD, TO-3P, PK5 制造商:The Bergquist Company 功能描述:THERMAL PAD, TO-3P, PK5; Insulator Body Material:Silicone Elastomer; Thermal Conductivity:3.5W/m.K; Breakdown Voltage Vbr:4kV; Thickness:0.508mm; Volume Resistivity:100000Mohm-m; SVHC:No SVHC (19-Dec-2012); Electrical Property Ins /
2015-104 制造商:The Bergquist Company 功能描述:THERMAL PAD TO-3P 制造商:The Bergquist Company 功能描述:THERMAL PAD, TO-3P
201511 制造商:Phoenix Contact 功能描述:Misc Products