Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Dystans(void) {
- d_etapu = lok * d_kola; //długość etapu w metrach
- de_km = d_etapu / 1000;
- de_int = int(de_km); //długość etapu w km
- if (de_int > de_int1) {
- d_total++; //zwiększenie licznika kilometrów całkowit.
- EEPROM.write(0, 145);
- EEPROM.write(1, highByte(d_total));
- EEPROM.write(2, lowByte(d_total));
- }
- de_dz = int((de_km - de_int) * 100);
- strcpy(de_str, u8x8_u8toa(de_int, 2));
- strcpy(de1_str, u8x8_u8toa(de_dz, 2));
- de_int1 = de_int;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement