Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

51 строка
1.6 KiB

  1. #include "spilcd.h"
  2. /*
  3. * Draw one pixel on the currently active display.
  4. * The color intensity scale for a normal pixel is from 0 to 255.
  5. * The color intensity scale for the reduced pixel is from 0 to 15.
  6. *
  7. * Parameters:
  8. * x - The X parameter of the pixel.
  9. * y - The Y parameter of the pixel.
  10. * r - The intensity of the red color.
  11. * g - The intensity of the green color.
  12. * b - The intensity of the blue color.
  13. *
  14. * Return: void
  15. */
  16. void lcd_drawPixel(lcd_t* lcd, uint8 x, uint8 y, uint8 r, uint8 g, uint8 b);
  17. /*
  18. * Draw a filled rectangle on the currently active display.
  19. * The color intensity scale for a normal pixel is from 0 to 255.
  20. * The color intensity scale for the reduced pixel is from 0 to 15.
  21. *
  22. * Parameters:
  23. * x - Parameter X of the upper left corner of the rectangle.
  24. * y - Parameter Y of the upper left corner of the rectangle.
  25. * w - The width of the rectangle.
  26. * h - The height of the rectangle.
  27. * r - The intensity of the red color.
  28. * g - The intensity of the green color.
  29. * b - The intensity of the blue color.
  30. *
  31. * Return: void
  32. */
  33. void lcd_fillRect(lcd_t* lcd, uint8 x, uint8 y, uint8 w, uint8 h, uint8 r, uint8 g, uint8 b);
  34. /*
  35. * Fill the entire screen with one color of the currently active display.
  36. * The color intensity scale for a normal pixel is from 0 to 255.
  37. * The color intensity scale for the reduced pixel is from 0 to 15.
  38. *
  39. * Parameters:
  40. * r - The intensity of the red color.
  41. * g - The intensity of the green color.
  42. * b - The intensity of the blue color.
  43. *
  44. * Return: void
  45. */
  46. void lcd_fillScreen(lcd_t* lcd, uint8 r, uint8 g, uint8 b);