Mbed Error - HELP

  • I do not think it is good practice connect Morpho headers to breadboards.
  • You also wrote about some library, but you do not include any library and also you not have any library in your project.
  • Methods, what you call in the context of SPI do not make sense. SPI does not have such methods. So you probably copied and rewrote the constructor from a Graphic library.
        spi.text_width(1);
        spi.text_height(1);
        //
        spi.filled_circle(bx, by, 2, 0xffffff);
        spi.filled_rectangle(0, P1y1, 3, P1y2, 0xffffff);
        spi.filled_rectangle(124, P2y1, 127, P2y2, 0xffffff);
        spi.filled_rectangle(0, 9, 3, P1y1-1, 0);
        spi.filled_rectangle(0, P1y2+1, 3, 127, 0);
        spi.filled_rectangle(124, 9, 127, P2y1-1, 0);
        spi.filled_rectangle(124, P2y2+1, 127, 127, 0);
        spi.line(5, 8, 122, 8, 0xffffff);
        //
        spi.locate(2,0);
        spi.printf("P1: %d    P2: %d",P1S,P2S);

BR, Jan