This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] MSP430FR2633:尝试将变量分配给".ui16ConversionCount"

Guru**** 2386350 points
Other Parts Discussed in Thread: MSP430FR2633
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/943692/msp430fr2633-trying-to-assign-variable-to-ui16conversioncount

器件型号:MSP430FR2633

您好!
我使用 MSP430FR2633设计了带 LCD 显示屏的键盘、工作正常。
现在正在尝试通过从键盘输入参数来控制灵敏度。
我应用了以下代码、但它生成错误"#28 expression must have a constant value"
是否有任何关于如何解决此问题的建议?

AM 共享编写供参考的代码:

此致、

Himani

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Himani、

    有一个定义的 BTN00结构、所以您只能分配常量、您可以在定义之后将灵敏度变量分配给程序中的 BTN00.ui16ConversionCount。

    此致

    Johnson

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    哦、是的、我没有注意到、现在提出这个问题感觉很愚蠢。

    感谢您的约翰逊。