Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
CurrentSense.h
00001 #include "mbed.h" 00002 00003 #ifndef CURRENT_SENSE_H 00004 #define CURRENT_SENSE_H 00005 00006 // 3.3V max ADC reading / 0.525V/A from the current amp 00007 #define ADC_TO_CURRENT_SCALE (3.3/.525) 00008 00009 class CurrentSense { 00010 public: 00011 CurrentSense(PinName current_pin); 00012 00013 float get_current(void); 00014 00015 private: 00016 AnalogIn current_pin_; 00017 }; 00018 00019 #endif
Generated on Wed Jul 13 2022 02:31:51 by
1.7.2