Modified version of the UKESF lab source which can be carried out with no knowledge of C
Fork of PsiSwarm-Headstart by
Diff: eprom.cpp
- Revision:
- 1:060690a934a9
- Parent:
- 0:d6269d17c8cf
- Child:
- 2:c6986ee3c7c5
--- a/eprom.cpp Thu Feb 04 21:48:54 2016 +0000 +++ b/eprom.cpp Thu Mar 03 23:21:47 2016 +0000 @@ -88,6 +88,23 @@ char firmware_string [8]; sprintf(firmware_string,"%d.%d",firmware_bytes[9],firmware_bytes[10]); firmware_version = atof(firmware_string); + char pcb_version_string [8]; + sprintf(pcb_version_string,"%d.%d",firmware_bytes[7],firmware_bytes[8]); + pcb_version = atof(pcb_version_string); + char serial_number_string [8]; + sprintf(serial_number_string,"%d.%d",firmware_bytes[5],firmware_bytes[6]); + serial_number = atof(serial_number_string); + has_compass = firmware_bytes[11]; + has_side_ir = firmware_bytes[12]; + has_base_ir = firmware_bytes[13]; + has_base_colour_sensor= firmware_bytes[14]; + has_top_colour_sensor= firmware_bytes[15]; + has_wheel_encoders= firmware_bytes[16]; + has_audio_pic= firmware_bytes[17]; + has_ultrasonic_sensor= firmware_bytes[18]; + has_temperature_sensor= firmware_bytes[19]; + has_recharging_circuit= firmware_bytes[20]; + has_433_radio= firmware_bytes[21]; return 1; } return 0;