Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of PsiSwarm-BeaconDemo_Bluetooth by
Diff: PsiSwarm/psiswarm.cpp
- Revision:
- 4:25039ea5eb09
- Parent:
- 3:cd048f6e544e
- Child:
- 5:598298aa4900
--- a/PsiSwarm/psiswarm.cpp Mon Oct 05 20:42:37 2015 +0000
+++ b/PsiSwarm/psiswarm.cpp Mon Oct 12 12:39:35 2015 +0000
@@ -118,6 +118,8 @@
if(read_firmware() == 1){
debug("Version %3.2f\n",firmware_version);
}else debug("INVALID\n");
+ debug("- Setting up PIC microcontroller\n");
+ // IF_check_pic_firmware();
debug("- Setting up LED drivers\n");
IF_init_leds();
if(IF_setup_led_expansion_ic() != 0) {
@@ -198,6 +200,7 @@
if(lwe == 0 && lwep==2) left_encoder--;
if(rwe == 0 && rwep==1) right_encoder++;
if(rwe == 0 && rwep==2) right_encoder--;
+ if(left_encoder % 100 == 0) pc.printf("L:%d\n",left_encoder);
}
void IF_update_user_id()
