コード例 #1
0
ファイル: sceneshow.cpp プロジェクト: eduardok/rockbot
void sceneShow::show_text(int n)
{
    if (text_list.size() <= n) {
        std::cout << "ERROR: Scene Text[" << n << "] invalid. List size is " << image_scenes.size() << "." << std::endl;
        exit(-1);
    }
    run_text(text_list.at(n));
}
コード例 #2
0
void ThTelecommand::run()
{
	I2C_1.init(400000);
	ADC_2.config(ADC_PARAMETER_RESOLUTION, 12);
	lightSensor.init();

#ifdef PROTOCOL_BINARY
		run_binary();
#else
		run_text();
#endif

}