请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TCA6424A 主题中讨论的其他器件:MSP430G2553
#include <msp430.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include "TCA6424A.h"
unsigned char TCA6424A_ADDRESS = 0x22;
unsigned char LED_config1 = 0x84; //LEDs 1-4
unsigned char LED_config2 = 0x85; //LEDs 5-12
unsigned char LED_config3 = 0x85; //LEDs 13-20
short value = 0xF300;
//short value = ReceiveBuffer
int main ()
{
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer
unsigned char regVal = 0x10;
I2C_Write_Byte(TCA6424A_ADDRESS, LED_config1, regVal);
}
根据所包含的代码、我看到了几个错误、我似乎无法找到解决我所看到问题的解决方案。