User Tools

Site Tools


en:examples-py

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:examples-py [2017/11/26 21:23]
writer
en:examples-py [2017/12/03 16:44] (current)
writer
Line 172: Line 172:
     cc = battery_get_charging_current() ​      # charging current     cc = battery_get_charging_current() ​      # charging current
     dc = battery_get_discharging_current() ​   # discharging current     dc = battery_get_discharging_current() ​   # discharging current
-    print 'Ёмкость батареи: %g A-H' % ah      # output the data +    print 'Battery capacity: %g A-H' % ah      # output the data 
-    print 'Ток заряда: %g mA' % cc +    print 'Charging current: %g mA' % cc 
-    print 'Ток разряда: %g mA' % dc +    print 'Discharging current: %g mA' % dc 
     return [ah, cc, dc]                       # return values     return [ah, cc, dc]                       # return values
 </​code>​ </​code>​
  
en/examples-py.txt · Last modified: 2017/12/03 16:44 by writer