### Basic Gyverntc Temperature Reading Example (C++) Source: https://github.com/gyverlibs/gyverntc/blob/main/README_EN.md A simple Arduino sketch demonstrating how to initialize the Gyverntc library with specific parameters (pin 0, 10k ballast, 3435 beta) and continuously read and print the temperature to the Serial monitor every 500 milliseconds. ```C++ #include Gyverntc Therm (0, 10000, 3435); VOID setup () { Serial.Begin (9600); } VOID loop () { Serial.print ("Temperature"); Serial.print (Therm.gettemp ()); Serial.println (" *c"); Delay (500); } ``` -------------------------------- ### Reading Multiple Thermistors with Gyverntc (C++) Source: https://github.com/gyverlibs/gyverntc/blob/main/README_EN.md An example demonstrating how to use a single instance of the Gyverntc class to read temperature from multiple thermistors connected to different analog pins. It shows configuring the thermistor parameters once and then using `setpin()` before reading temperature from each pin. ```C++ #include Gyverntc therm; VOID setup () { Serial.Begin (9600); Therm.config (1000, 3435); } VOID loop () { Therm.setpin (0); Serial.print ("TEMP (PIN 0):"); Serial.print (Therm.gettemp ()); Serial.println (" *c"); Delay (500); Therm.Setpin (2); Serial.print ("TEMP (PIN 2):"); Serial.print (Therm.gettemp ()); Serial.println (" *c"); Delay (500); } ``` -------------------------------- ### Initializing Gyverntc Class (C++) Source: https://github.com/gyverlibs/gyverntc/blob/main/README_EN.md Demonstrates the constructors for the Gyverntc class. Shows the default empty constructor and the parameterized constructor for initializing with pin, ballast resistor, beta coefficient, base temperature, base resistance, and ADC resolution. ```C++ Gyverntc therm;// empty designer Gyverntc therm (uint8_t pin, uint32_t r, uint16_t b, uint8_t t = 25, uint32_t rt = 10000, uint8_t res = 10); // PIN - analog PIN to which the termistor is connected // r - resistance of a ballast resistor, ohm // B-beta-coefficient of thermistor (see Datashit) [number in the region of 1000-5000] // t - the basic temperature of the termistor, Celsius degrees (see Datashit) [usually 25 degrees] // RT - resistance of thermistor at the base temperature, ohm (see Datashit) // res - resolution of ADC, bit.By default 10 ``` -------------------------------- ### Using Gyverntc Class Methods (C++) Source: https://github.com/gyverlibs/gyverntc/blob/main/README_EN.md Lists the public methods available in the Gyverntc class for configuring the thermistor parameters, setting the analog pin and ADC resolution, reading temperature directly, reading averaged temperature, and computing temperature from a raw ADC signal. ```C++ // Configure the termistor: R resistor, b termistor, t termistor, r termistor Void Config (Uint32_t R, Uint16_t B, Uint8_t T = 25, Uint32_T RT = 10000); // configure PIN and resolution of ADC VOID setpin (uint8_t pin, uint8_t res = 10); // Read the temperature with PIN Float gettemp (); // Read the average temperature from the pin, you can indicate the value of Float Gettempaverage (Uint8_t Samples = 20); // get the temperature from the ADC signal, you can specify the resolution of the ADC Float Computetemp (Float ANALOG, UINT8_T Res = 10); ``` -------------------------------- ### Performing Direct NTC Temperature Calculation (C++) Source: https://github.com/gyverlibs/gyverntc/blob/main/README_EN.md Provides two overloaded functions for calculating temperature directly from ADC readings without using a class instance. One version uses the ratio of ballast to thermistor resistance, while the other uses the individual resistance values. Both allow specifying beta, base temperature, and ADC resolution. ```C++ // signal ACP, (R resistor / r termistoRA), b termistor, t termistor, resolution of ADC Float ntc_compute (Float analog, Float basediv, uint16_t b, uint8_t t = 25, uint8_t res = 10); // signal ADC, R resistor, B termistor, t thermistor, R termistor, ACP resolution Float ntc_compute (Float analog, uint32_t r, uint16_t b, uint8_t t = 25, uint32_t RT = 10000, uint8_t res = 10); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.