mirror of
https://github.com/opentx/opentx.git
synced 2025-07-13 19:40:20 +03:00
Bsongis/adc rtc temperature (#6537)
RTC voltage + CPU temperature + RTC voltage alarm (thanks @schwabe)
This commit is contained in:
parent
6ba4b84a45
commit
3a0960c1e3
49 changed files with 568 additions and 447 deletions
|
@ -553,6 +553,14 @@ uint16_t anaIn(uint8_t chan)
|
|||
#else
|
||||
else if (chan == TX_VOLTAGE)
|
||||
return 1500;
|
||||
#endif
|
||||
#if defined(PCBTARANIS)
|
||||
else if (chan == TX_INTREF)
|
||||
return 826; // 3V VDD
|
||||
else if (chan == TX_TEMPERATURE)
|
||||
return 520;
|
||||
else if (chan == TX_RTC_VOLTAGE)
|
||||
return 800; // 2.34V
|
||||
#endif
|
||||
else
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue