int shut_systems() { i2c_close(); // Zavri i2c soubory // motor_close(); // Zavri motory (pid, zavirat pred enc) enc_close(); // Zavri encodery input_event_close(); // Klavesnice led_close(); var_save(CONFIG_FILE); //Uloz vsechny promenne return 0; }
void add_text_to_book(char *filename,int odst) { FILE *txt; ENCFILE fl; set_font(H_FKNIHA,NOSHADOW(0)); if (all_text == NULL) all_text = create_list(256); txt = enc_open(filename,&fl); if (txt == NULL) return; seek_section(txt,odst); read_text(txt); next_line(1000); enc_close(&fl); }