Jump to content

leinadrik

Members
  • Content Count

    2
  • Joined

  • Last visited

  1. This is the code, it only run the setup not the loop #include <Wire.h> byte reg_battery; byte battery; void setup() { Wire.begin(); Wire.beginTransmission(0x6A); Wire.write(0x02); Wire.write(B11011101); Wire.endTransmission(); Serial.begin(9600); // comprobando cambios } void loop() { Wire.beginTransmission(0x6A); Wire.write(0x02); Wire.write(B11011101); Wire.endTransmission(); Wire.beginTransmission(0x6A); Wire.write(0x0E); Wire.endTransmission(); Wire.requestFrom(0x6A, 1); reg_battery = Wire.read(); battery = reg_battery & B01111111; battery = (battery*20) + 2304; if (battery <= 3104) { Wire.beginTransmission(0x6A); Wire.write(0x09); Wire.write(B01100100); Wire.endTransmission(); } Serial.print(battery); }
  2. Hello I'm have two problem with the version 18 of energia. 1.- When I try to program my msp430g2553 the IDE show the message: exec: "C:\\Users\\CORE RIKMED\\Downloads\\energia-1.6.10E18\\hardware\\tools\\msp430/bin/msp430-g++": file does not exist Error compilaci
×
×
  • Create New...