S&B Volcano vaporizer remote control with Pi Pico W
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

lipo.h 865B

12345678910111213141516171819202122232425262728
  1. /*
  2. * lipo.h
  3. *
  4. * https://github.com/raspberrypi/pico-examples/blob/master/adc/read_vsys/power_status.c
  5. *
  6. * Copyright (c) 2023 Thomas Buck (thomas@xythobuz.de)
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * See <http://www.gnu.org/licenses/>.
  19. */
  20. #ifndef __LIPO_H__
  21. #define __LIPO_H__
  22. bool lipo_charging(void);
  23. float lipo_voltage(void);
  24. float lipo_percentage(float voltage);
  25. #endif // __LIPO_H__