MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
28 for (uint8_t segment = startOn; segment < startOff; segment++)
47 uint16_t x_start =
x + round((
float)
innerRadius * sin(angle) / 2);
48 uint16_t y_start =
y - round((
float)
innerRadius * cos(angle) / 2);
50 uint16_t x_end =
x + round((
float)
innerRadius * sin(angle));
51 uint16_t y_end =
y - round((
float)
innerRadius * cos(angle));
const static float angleSpacing
An interface for elements that draw to a display.
virtual void drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color)=0
Draw a line between two points.
An interface for displays.
Names and note and controller numbers for the Mackie Control Universal (MCU) protocol.
uint8_t getStartOff() const
Get the first segment that should be off.
#define BEGIN_CS_NAMESPACE
void drawVPotSegment(uint8_t segment)
bool getCenterLed() const
Return the status of the center LED of the V-Pot ring.
A simple struct representing a pixel with integer coordinates.
virtual void fillCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color)
Draw a disk (filled circle).
VPotDisplay(DisplayInterface &display, IVPotRing &vpot, PixelLocation loc, uint16_t radius, uint16_t innerRadius, uint16_t color)
DisplayInterface & display
void draw() override
Draw this DisplayElement to the display buffer.
uint8_t getStartOn() const
Get the first segment that should be on.
virtual void drawCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color)
Draw a circle.