Skip to content

Commit df7c0fa

Browse files
committed
Remove unused variable
1 parent 1c627de commit df7c0fa

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

Factory_Tests/Qualia_ESP32S3_RGB666_FactoryTest/Qualia_ESP32S3_RGB666_FactoryTest.ino

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ extern Adafruit_TestBed TB;
1010
Arduino_XCA9554SWSPI *expander = new Arduino_XCA9554SWSPI(
1111
PCA_TFT_RESET, PCA_TFT_CS, PCA_TFT_SCK, PCA_TFT_MOSI,
1212
&Wire, 0x3F);
13-
13+
1414
Arduino_ESP32RGBPanel *rgbpanel = new Arduino_ESP32RGBPanel(
1515
TFT_DE, TFT_VSYNC, TFT_HSYNC, TFT_PCLK,
1616
TFT_R1, TFT_R2, TFT_R3, TFT_R4, TFT_R5,
@@ -26,20 +26,20 @@ Arduino_RGB_Display *gfx = new Arduino_RGB_Display(
2626
expander, GFX_NOT_DEFINED /* RST */, TL021WVC02_init_operations, sizeof(TL021WVC02_init_operations));
2727

2828
uint16_t *colorWheel;
29-
29+
3030
void setup(void)
31-
{
31+
{
3232
Serial.begin(115200);
3333
//while (!Serial) delay(100);
34-
34+
3535
#ifdef GFX_EXTRA_PRE_INIT
3636
GFX_EXTRA_PRE_INIT();
3737
#endif
3838

3939
Serial.println("Beginning");
4040
// Init Display
4141

42-
Wire.setClock(1000000); // speed up I2C
42+
Wire.setClock(1000000); // speed up I2C
4343
if (!gfx->begin()) {
4444
Serial.println("gfx->begin() failed!");
4545
}
@@ -61,7 +61,7 @@ uint8_t allpins[] = {SS, SCK, MOSI, MISO, A1, A0};
6161

6262
bool test = false;
6363
void loop()
64-
{
64+
{
6565
if (!test) {
6666
gfx->draw16bitRGBBitmap(0, 0, colorWheel, 480, 480);
6767
delay(100);
@@ -83,7 +83,7 @@ void loop()
8383

8484
gfx->setCursor(100, gfx->height() / 2 - 75);
8585
gfx->println("I2C OK!");
86-
86+
8787
gfx->setCursor(100, gfx->height() / 2 - 25);
8888
gfx->setTextColor(RED);
8989
gfx->println("RED");
@@ -104,11 +104,10 @@ void loop()
104104
void generateColorWheel(uint16_t *colorWheel) {
105105
float angle;
106106
uint8_t r, g, b;
107-
int index, scaled_index;
107+
int scaled_index;
108108

109109
for(int y = 0; y < 240; y++) {
110110
for(int x = 0; x < 240; x++) {
111-
index = y * 240 + x;
112111
angle = atan2(y - 120, x - 120);
113112
r = uint8_t(127.5 * (cos(angle) + 1));
114113
g = uint8_t(127.5 * (sin(angle) + 1));

0 commit comments

Comments
 (0)