Spashscreen updated

This commit is contained in:
Sven Vogel 2021-08-08 15:05:12 +02:00
parent 54ece7e1f3
commit e0b321b61d
10 changed files with 15 additions and 21 deletions

View File

@ -153,18 +153,30 @@ void config() {
}
}
void upload() {
return;
}
void info() {
Serial.write((uint8_t) 91);
Serial.write((uint8_t) 0b01000000);
Serial.write("ATmega328P Arduino");
}
FNPTR_t opcodeTable[] = {
scale, // opcode 0x00
single, // opcode 0x01
image, // opcode 0x02
fill, // opcode 0x03
config // opcode 0x04
config, // opcode 0x04
upload,
info
};
void setup() {
ledCount = STD_LED_MAX_COUNT;
Serial.begin(48000);
Serial.begin(9600);
FastLED.addLeds<LED_TYPE, DATA_PIN, GRB>(leds, ledCount);
FastLED.setCorrection(TypicalLEDStrip);
@ -190,7 +202,7 @@ void loop() {
Serial.println(opcode);
#endif
if (opcode <= 4) {
if (opcode <= 6) {
opcodeTable[opcode]();
Serial.write(75);
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 241 KiB

After

Width:  |  Height:  |  Size: 245 KiB

View File

@ -85,7 +85,6 @@ namespace Matrix_App.forms
this.label3.Size = new System.Drawing.Size(88, 17);
this.label3.TabIndex = 6;
this.label3.Text = "Serial Port";
this.label3.Click += new System.EventHandler(this.label3_Click);
//
// groupBox1
//
@ -115,7 +114,6 @@ namespace Matrix_App.forms
this.label5.Size = new System.Drawing.Size(129, 17);
this.label5.TabIndex = 10;
this.label5.Text = "USB";
this.label5.Click += new System.EventHandler(this.label5_Click);
//
// label4
//
@ -133,7 +131,6 @@ namespace Matrix_App.forms
this.label2.Size = new System.Drawing.Size(127, 25);
this.label2.TabIndex = 8;
this.label2.Text = "Features";
this.label2.Click += new System.EventHandler(this.label2_Click);
//
// button1
//

View File

@ -227,24 +227,9 @@ namespace Matrix_App.forms
}
}
private void label3_Click(object sender, EventArgs e)
{
throw new System.NotImplementedException();
}
private void WritePortCombobox_SelectedIndexChanged_1(object sender, EventArgs e)
{
ValidatePortSelection(WritePortCombobox, port);
}
private void label2_Click(object sender, EventArgs e)
{
throw new System.NotImplementedException();
}
private void label5_Click(object sender, EventArgs e)
{
throw new System.NotImplementedException();
}
}
}