INA219 getcurrent example

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
paolo_monza
 
Posts: 11
Joined: Wed Dec 09, 2020 10:50 am

INA219 getcurrent example

Post by paolo_monza »

Hi.
Referring to the example "Adafruit ina219 getcurrent" example, line 15 reports:
uint32_t currentFrequency;
may you explain what does it mean?
It seems to me that the program works even if you delete the line.
Thanks
Paolo

User avatar
Franklin97355
 
Posts: 23940
Joined: Mon Apr 21, 2008 2:33 pm

Re: INA219 getcurrent example

Post by Franklin97355 »

uint32_t currentFrequency; is telling the program to use an Unsigned INTeger 32 bits long on the variable instead of whatever the default is. Most times the default works but the result is unknown and may cause problems.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”