Jump to content
43oh

liyutao

Members
  • Content Count

    3
  • Joined

  • Last visited

About liyutao

  • Rank
    Noob Class

Recent Profile Visitors

730 profile views
  1. Hello! I am compiling the following code through CCS 6.1.3, it is an imported sketch first then I add some thing else for it. But it seems It stuck in the setup function because it goes to LPM4 when it tries to use any USCI related function( For example: Wire.begin(),write to ()). Can some one help me with it? Thanks. The attach file is the ino file from energia 17 and the following is the Code? The uc is MSP430F5529, and it is trying to use I2C to communicate with ADXL345, UART to communicate with ESP8266. The reset is ADC stuff. And we have a button to do some control. Each of these par
  2. Hello! I am using Energia 17 & 18 to code for the MSP430F5529 and ADXL345. The following is the code I used. //Add the SPI library so we can communicate with the ADXL345 sensor #include <SPI.h> //Assign the Chip Select signal to pin 2. int CS = 2; //This is a list of some of the registers available on the ADXL345. //To learn more about these and the rest of the registers on the ADXL345, read the datasheet! char POWER_CTL = 0x2D; //Power Control Register char DATA_FORMAT = 0x31; char DATAX0 = 0x32; //X-Axis Data 0 char DATAX1 = 0x33; //X-Axis Data 1 char DATAY0
  3. Hello! I am using your code recently and I can communicating with the module. But the outputs are really wired. They are all -1,-1,-1. If I move the ADXL345 module, the outputs would become 0,0,0 or like -2,-1,-768723 or -240,0,1. Can someone help me to see what might be wrong? Thanks.
×
×
  • Create New...