'Error: call of overloaded 'drawPixel(int&, int, int)' is ambiguous

      switch (wifiCheckPoints)
      {
      case 9:
        matrix->drawPixel(x, y + 4, 0xf800);
      case 8:
        matrix->drawPixel(x - 1, y + 3, 0xf800);
      case 7:
        matrix->drawPixel(x - 2, y + 2, 0xf800);
      case 6:
        matrix->drawPixel(x - 3, y + 1, 0xf800);
      case 5:
        matrix->drawPixel(x - 4, y, 0xf800);
      case 4:
        matrix->drawPixel(x - 4, y + 4, 0xf800);
      case 3:
        matrix->drawPixel(x - 3, y + 3, 0xf800);
      case 2:
        matrix->drawPixel(x - 2, y + 2, 0xf800);
      case 1:
        matrix->drawPixel(x - 1, y + 1, 0xf800);
      case 0:
        matrix->drawPixel(x, y, 0xf800);
        break;
      }

I am working with awtrix (https://awtrixdocs.blueforcer.de/#/en-en/README) code and an esp2866 but when I try to compile don't work. I don´t have any idea what is the problem...



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source