Jump to content

manro

Members
  • Content Count

    5
  • Joined

  • Last visited

  1. @Rei Vilo as i wrote, i know about Weather Sensors Library and implementing communication with i2c sensors is straightforward. I was just wondering why I'm getting this error.
  2. yes, i forgot convert value to millivolts, whole code is: #include <driverlib/aon_batmon.h> ... void setup() { AONBatMonEnable(); ... } void loop() { int BATstatus = AONBatMonBatteryVoltageGet(); BATstatus = (BATstatus * 125) >> 5; ... } so I started researching libraries in ...\power\hardware\cc13xx\4.9.1\system\source folder. I know that even you @Rei Vilo,are the author of libraries for several sensors, but I tried to import #include <ti/mw/sensors/SensorBmp280.h> and then call SensorBmp280_init() in setup function but something is wrong: undefined reference to `SensorBmp280_init'
  3. just like this? #include <driverlib/aon_batmon.h> ... void setup() { AONBatMonEnable(); ... } void loop() { int BATstatus = AONBatMonBatteryVoltageGet(); ... }
  4. Ok, I understand but how can i read BATMON Registers in energia?
  5. Hi everyone, how can i read VCC on cc1310 launchpad respectively cc1350 sensortag with energia? I tried this, but without success: int getVCC() { analogReference(INTERNAL2V5); int data = (int)map(analogRead(A0), 0, 1023, 0, 5000); return data; } @Rei Vilo what do you think?
×
×
  • Create New...