Esempio n. 1
0
 void IoGPIO::setup(const StringMap & settings)
 {
     Io::setup(settings);
     setOutputPin(std::atoi(settings.at("ios.GPIO.pin").c_str()));
     setPeriods(std::atoi(settings.at("ios.GPIO.periods").c_str()));
     setPeriodTime(std::atoi(settings.at("ios.GPIO.periodTime").c_str()));
 }
Esempio n. 2
0
    void IoGPIO::setup(const StringMap & settings)
    {
        Io::setup(settings);
        setOutputPin(std::atoi(settings.at("ios.GPIO.pin").c_str()));
        setPeriods(std::atoi(settings.at("ios.GPIO.periods").c_str()));
        setPeriodTime(std::atoi(settings.at("ios.GPIO.periodTime").c_str()));

        // -------------
        // Set throttler

        throttle.setRate(std::stoi(settings.at("ios.GPIO.throttler")));
    }