C++ Library for the PsiSwarm Robot - Version 0.8

Dependents:   PsiSwarm_V8_Blank_CPP Autonomia_RndmWlk

Fork of PsiSwarmV7_CPP by Psi Swarm Robot

Revision:
9:dde9e21030eb
Parent:
8:6c92789d5f87
Child:
10:e58323951c08
diff -r 6c92789d5f87 -r dde9e21030eb psiswarm.cpp
--- a/psiswarm.cpp	Sun Oct 16 12:54:33 2016 +0000
+++ b/psiswarm.cpp	Sun Oct 16 14:12:49 2016 +0000
@@ -26,6 +26,7 @@
 Display display;  //Connects to i2c(p28,p27), reset(p29), backlight(p30)
 Motors motors;
 Eprom eprom;
+Led led;
 
 //Setup MBED connections to PsiSwarm Robot
 Serial pc(USBTX,USBRX);
@@ -201,7 +202,7 @@
     debug("- Setting up PIC microcontroller\n");
     // IF_check_pic_firmware();
     debug("- Setting up LED drivers\n");
-    IF_init_leds();
+    led.IF_init_leds();
     if(IF_setup_led_expansion_ic() != 0) {
         debug("- WARNING: No I2C acknowledge for LED driver\n");
         system_warnings += 1;